If you are new to PIC Microcontroller then I must suggest you to read this complete post carefully and ask your queries in comments. It has three Timers in it, two of which are 8 bit Timers while 1 is 16 Bit. It supports many communication protocols like: Serial Protocol. I2C Protocol.
|Published (Last):||6 May 2017|
|PDF File Size:||14.78 Mb|
|ePub File Size:||16.12 Mb|
|Price:||Free* [*Free Regsitration Required]|
Following are the main functions of PIC16F These timers can be used as a timer as well as a counter. The timer mode is mainly used to increment the instruction cycle while the counter mode plays a vital role to increment the rising and falling edge of the pin.
All three timers contain internal and external clock select capability. Watchdog Timer PIC16F comes with a built-in watchdog timer that takes the controller back to reset position if the program hangs up during compilation or gets stuck in the infinite loop. It is advised to reset this timer to the initial value after every 3 instructions in order to avoid it going to zero value in normal conditions.
The Watchdog Timer can be controlled only through configuration bits. It comes with its own RC oscillator for maximum reliability. The multiple voltage ranges are provided to secure the chip if the power drops at the voltage supply line. This pin is independent of the internal resets and is activated by keeping this pin at a LOW value.
Power On Reset Power On Reset function is a very useful function that resets the controller and prevents it from malfunctioning. When the module is powered on, the power-on reset will start the module from scratch once the Vdd raises above a certain threshold value. It comes with separate clock and data lines, layered with a select line to choose the device for communication.
I2C Communication The I2C is a two-wire interface communication that comes with two main lines known as SDA and SCL where former is s serial data line that carries the data and later is serial clock line that is used to synchronize all data transfers over the I2C bus.
The former is a software used to write the desired code for the module while later is used to transfer and burn the code on the module. You can get this compiler online from the Official Microchip Site. The code written in the compiler generates a hex file which is then transferred to the microcontroller using a burner.
It is mainly divided into three major types: Program Memory Flash Memory.
PIC16F877A – Interrupt Tutorial
PIC Tutorial – 16f877