PDA

View Full Version : 12F615 and PBP



Meriachee
- 8th April 2011, 05:26
Gang,

If somebody would be so kind, what do I look at on the datasheet to tell which (if any) pins can be used for serial I/O on a 12F615 ?

Thanks
Gary

HenrikOlsson
- 8th April 2011, 06:19
Hi,
Look at page 5 in the datasheet (http://ww1.microchip.com/downloads/en/DeviceDoc/41302D.pdf). There you'll see a table showing all the pins and what they "can do". The 12F615 doesn't have an USART so HSEROUT/HSERIN won't work but the bit banged routines (SEROUT(2), SERIN(2), DEBUG etc) will work.

GP3 (which is also MCLR) is marked Input only so that obviosuly won't work for SEROUT etc, apart from that all the GP pins should work find for serial input and output.

Remember to make sure to turn off the ADC and comparator for the pins you intend to use.

/Henrik.