Hi there.
I want to set up a 16f872 so that all ports are digital. I have had trouble with analogue inputs on a 14 pin package and disabled it with this:
ANSEL = 0
What configuration do I need to make all ports digital i/o/ports.
Secondly. I am sending 2 bytes from a pc and I want to output these two bytes on portb and portc.
Is it ok to simply do this:
serin portb.2,6, mylowbyte
serin portb.2,6, myhihgbyte
portb = mylowbyte
portc = myhighbyte
AM I right in thinking that the pic will sit there doing nothing until it receives a character on the input pin? I am sending two bytes from my pc software every time someone pushes a foot pedal. Is there anything that I should know here/
Bookmarks