Shalrajas The microcontroller is an electronic component, which is programmed to perform various control operations. Very useful, uncovered, honest and clear. These registers are used for general purpose only as the name implies. What Pic16fa pin diagram description need to know is how to program each new IC to one frequency each?
|Published (Last):||23 June 2012|
|PDF File Size:||19.91 Mb|
|ePub File Size:||9.39 Mb|
|Price:||Free* [*Free Regsitration Required]|
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.
It supports both hardware pin interrupts and timer interrupts. In the next section, I am gonna explain all of these Pin features one by one. If you want to turn ON fan then what will you do? So, now we know that we need to design the basic circuit and this basic circuit contains power as well as the frequency at which it will work. The above circuit may seem you a bit complex but it is really not, let me explain it pin by pin: Pin 1: This Pin is called MCLR Master Clear and we need to provide 5V to this pin through a 10k-ohm resistance.
After the Crystal Oscillator, we have 33pF capacitors and then they are grounded. Port C: It has 8 Pins in total. Port D: It has 8 Pins in total. First of all what you need to decide is whether you want your Port Pins to be Input or Output. Sensor is sending the value and PIC is receiving it.
TRISD decides whether the Port is output or input and we can also assign values to each pin separately. PortD register contain the actual value and this value is actually the combination of all the 8 pins.
We write code in PIC Compilers and then compile it. After compilation a hex file is generated which we upload in PIC Microcontroller.
AS you can see in the above figure that: Pin 25 is acting as TX as well so if you want to do Serial Communication then it will be used for sending the serial data. Pin 26 is acting as RX as well so if you want to do Serial Communication then it will be used for receiving the serial data.
Now you can see we have Serial Port and I2C Port in Port C, so we can use Port C as a simple Port but can also do these two communications with its pins, so its totally on the programmer. PIC16Fa has total 8 interrupt sources in it. An interrupt source is some event which generates interrupt, this source could be a timer like interrupts are generate after every 1 sec, or it could also be pin state change event, like if pin state is changed then interrupt will be generated.
PIC16F877A PIN DIAGRAM DESCRIPTION DOWNLOAD