I'm working on trying to understand PIC architecture and assembly language, and having a heck of a time I might add.
I've been working on this project for a while using a schematic I've heavily modified from the original schematic, though the pin connections are the same to the PIC.
The end result is essentially an array of LEDs flashing alternately, much like police/fire type LED lights. Here is what I understand regarding the connections to the PIC pins:
PIC is 16F628A
Pin 4, MCLR is connected to +5V through a resistor (I kinda get this)
Pin 5, Vss to ground (gotta have ground, ok, I get that)
Pin 6, RB0 to MOSFET and Ground (output controlling flashes)
Pin 7, RB1 to MOSFET and Ground (same as above)
Pin 14, Vdd voltage in (I get it)
Pins 15 and 16 to crystal for timing (I get it)
What I'm confused over, are pins 17 and 18 RA0/AN0, RA1/AN1 respectively. Why make these connections? Are they being used as an I/O or analog comparators? Can someone explain why these are set up this way?
I've been working on this project for a while using a schematic I've heavily modified from the original schematic, though the pin connections are the same to the PIC.
The end result is essentially an array of LEDs flashing alternately, much like police/fire type LED lights. Here is what I understand regarding the connections to the PIC pins:
PIC is 16F628A
Pin 4, MCLR is connected to +5V through a resistor (I kinda get this)
Pin 5, Vss to ground (gotta have ground, ok, I get that)
Pin 6, RB0 to MOSFET and Ground (output controlling flashes)
Pin 7, RB1 to MOSFET and Ground (same as above)
Pin 14, Vdd voltage in (I get it)
Pins 15 and 16 to crystal for timing (I get it)
What I'm confused over, are pins 17 and 18 RA0/AN0, RA1/AN1 respectively. Why make these connections? Are they being used as an I/O or analog comparators? Can someone explain why these are set up this way?