PDA

View Full Version : digital I/O



igeorge
- 27th December 2005, 21:37
Hello,
I need to know what to write in a program at start to make all the ports on the chip 16f877 and 18f4620 digital I/O , and not analog or other special functions which might be embedded on the same pin

Thank you
Ion George

beto
- 27th December 2005, 21:51
put this on top of your source file
(analog disable)
ADCON1 = $07

igeorge
- 27th December 2005, 23:46
Thanks Beto,
What i shoud do for port E to make it digital too ?
Thank you
Ion george

beto
- 28th December 2005, 00:56
this set all analog inputs to digital i/o mode, (also port E)