It’s popular among students, hobbyist and even engineers because it’s cheap. I got it for only RM23 and oddly enough that’s cheaper than its’ little brother I mentioned in a previous post, the PIC16F84A. Another reason is the sheer amount of input and output pins available on this MCU. Among other things, this MCU also has Analog to Digital conversion capability without the need of an external chip.
Together with this MCU, I also got myself two crystal oscillators, 4MHz and 20MHz. These frequencies are very common, or at least what I’ve seen so far.
As usual, I’m going to test the MCU by doing the blink test. For randomness, I’m going to use the 4MHz crystal to build my circuit. Accompanying the crystal are two 15pF capacitors.
Checking the datasheet, I should use XT for the Oscillator mode.
Here’s a video of the PIC16F877A in action.
Maybe I’ll test out the ADC and report back in the next post.