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.
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.
Unless my glasses are not thick enough, the hserin appears to be missing a variable to store value. Have you tried a single character? Maybe hserout will only send a string from an array ? Just thinking out loud . . .
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.
Back to basics... do an HSEROUT loop, use a scope see if there's something happening on PIC pin... then on the TX of the MAX232. If so, check on the computer side.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks