What Is A PIC Microcontroller?
What Is A PIC Microcontroller?
PIC microcontroller architecture consists of RAM, ROM, CPU, timers, counters and
supports the protocols such as SPI, CAN, and UART for interfacing with other peripherals.
At present PIC microcontrollers are extensively used for
1. industrial purpose due to low power consumption,
2. high performance ability and
3. easy of availability of its supporting hardware and software tools like compilers,
debuggers and simulators.
The 8-bit PIC microcontroller is classified into four types on the basis of internal
architecture,
1. Base Line PIC,
2. Mid Range PIC,
3. Enhanced Mid Range PIC and
4. PIC18
1. CPU,
2. I/O ports,
3. memory organization,
4. A/D converter,
5. timers/counters,
6. interrupts,
7. serial communication,
8. oscillator and
9. CCP module
Memory Organization:
Stack
I/O Ports
The series of PIC16 consists of five ports such as Port A, Port B, Port C,
Port D & Port E.
1. Port A is an 16-bit port that can be used as input or output port based
on the status of the TRISA (Tradoc Intelligence Support Activity)
register.
2. Port B is an 8- bit port that can be used as both input and output port.
3. Port C is an 8-bit and the input of output operation is decided by the
status of the TRISC register.
4. Port D is an 8-bit port acts as a slave port for connection to the
microprocessor BUS.
5. Port E is a 3-bit port which serves the additional function of the
control signals to the analog to digital converter.
BUS
BUS is used to transfer and receive the data from one peripheral to
another.
It is classified into two types such as
Address Bus:
A/D converters
Timers/ Counters
PIC microcontroller has four timer/counters wherein the one 8-bit timer
and the remaining timers have the choice to select 8 or 16-bit mode.
Timers are used for generating accuracy actions, for example, creating
specific time delays between two operations.
Interrupts
SPI Protocol: The term SPI stands for Serial Peripheral Interface. This
protocol is used to send data between PIC microcontroller and other
peripherals such as SD cards, sensors and shift registers.
PIC microcontroller support three wire SPI communications between
two devices on a common clock source. The data rate of SPI protocol is
more than that of the USART.
Oscillators