Lab 1 1
Lab 1 1
Lab 1 : Introduction to
Microcontrollers
By: Eng. Malak Ehab Al-Ashi
16/02/2021
What is a pic microcontroller?
•A pic microcontroller is a small computer in a single integrated circuit
containing a processor core, memory and programmable I/O peripherals.
Program memory is also often included on chip, as well as a typical small
amount of RAM. Pic Microcontrollers are designed for embedded
applications.
• Microcontrollers are manufactured by a number of companies with varying
features. As technology is advancing, not only new features are being added
in the previous controllers’ family but new families are also being
introduced. The most common controllers used are PIC, Atmel, AVR, Intel,
ATmega etc. Even in a single family you will find a lot many variations from
number of pins of the chip to number of features provided in it.
Microcontrollers programming
• Typically
pic microcontroller programs must fit in the available on-chip
program memory, since it would be costly to provide a system with external,
expandable memory.
• Compilers and assemblers are used to convert high-level language and
assembler language codes into a compact machine code for storage in the
microcontroller’s memory.
• Depending on the device, the program memory may be permanent, read-
only memory that can only be programmed at the factory or program
memory that may be field-alterable flash or erasable read-only memory.
• PIC Microcontrollers programming in c language (embedded c).
What Functionalities are provided by a
pic Microcontroller?
• As the name suggests, the compiler is intended for writing programs for PIC
microcontrollers programming in C language. It is provided with all data on
internal architecture of these microcontrollers, operation of particular
circuits, instruction set, names of registers, their accurate addresses, pin-
outs etc.
Instructions
• Every microcontroller
program you write should
include an infinite while
loop at the end.
Instructions
• Repeat the last task and take a screenshot for your work.
• (Bonus)Take a video for your practical work.