I saw that, but I am talking about RC7, which is the RX pin.
The RC6 Pin (TX) which you are talking about seems to work as a general I/O. I was wondering why the RC7 / RX Pin won't work.
I saw that, but I am talking about RC7, which is the RX pin.
The RC6 Pin (TX) which you are talking about seems to work as a general I/O. I was wondering why the RC7 / RX Pin won't work.
You can't if you're using HSEROUTNote 1: When the SPEN bit is set the RX/DT I/O pin
is automatically configured as an input,
regardless of the state of the corresponding
TRIS bit and whether or not the EUSART
receiver is enabled. The RX/DT pin data
can be read via a normal PORT read but
PORT latch data output is precluded.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Are you using hserout or hserin?
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
I am using neither hserout or hserin. I just want to use ports c.0 - c.7 for general output.
Have I configured my pic incorrectly?
I think NO! ADCON = 7 is the same as ADCON = %00000111. so you have enabled the a/d and turned it on. Please correct this and see if it helps. It looks like you DO have the serial disabled as you wanted to.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Ok, I changed the ADCON0 and ADCON1 to 0, still have the same problem. Portc.0-portc.6 work fine, it is just the last pin portc.7 that doesn't seem to change no matter what I send to it.
I don't see any reason for it not to work. Maybe the circuit is bad? Breadboard or SIM? How do you know it is not working?
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks