Re: 18f14k22 portb.5 always high using hserout
There are threads in this forum which have addressed this, worth a search, that said HSERIN idles the input pin at high logic level. To switch it to an i/o port you need to turn it off before you try to use it. Look at pp184 of the data sheet as it addresses RCSTA register.
push goes to shove you might use Debug instead of HSER commands, it's pretty lean for bit bang serial port.
Last edited by Archangel; - 5th March 2015 at 08:06.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks