Do you have a schematic? What's RC.6 connected to?
Do you have a schematic? What's RC.6 connected to?
Hi,
I have NEVER used the USART to transmit so if I am wrong, . . . well here is my try . . .
TXSTA.5 = 1 'which is transmit enable bit.
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.
this is from the datasheet
Bit SPEN (RCSTA<7>) and bits TRISC<7:6> have to be
set in order to configure pins RC6/TX/CK and RC7/RX/DT
as the Universal Synchronous Asynchronous Receiver
Transmitter.
So maybe you need to set trisc.6=1 also?
-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, Just a Doh check for me, but I assume you DO have some kind of osc hooked up? xtal,resonator, something?
-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!
Maybe the extra space between the T and the [ is messing things up?
If that is not the problem then double check the speed of your OSC. Receiving works, yes. But receiving is more tolerant than sending.. At least it seems that way. Are you using a crystal with caps or a resonator?Code:HSEROUT ["AT",10,13]
Dave
Always wear safety glasses while programming.
Bookmarks