Order Tray | Contact Us | Home | SIG Lists

[picsig] USART Problems

J.P. Rouland jprouland at comcast.net
Fri Jan 14 06:52:12 UTC 2005


Dumb stab in the dark:
Big-endian first versus little-endian?
Could your LCD expect data in the reverse order you send it?
I've been bitten by this kind of stuff, in a previous life, LOL!
J.P. NQ6T

Andrew Rich wrote:
> Steve,
> 
> 
>>I had all sorts of problems with my LCD until I put a capacitor across the
> 
> voltage rail.
> 
> My goal is to build an APRS weather station off the back of the garage.
> 
> 
>>Cool , I just got RTTY running and plan to use that for my weather station
> 
> 
> Unfortunately, I'm still having difficulty getting the LCD to display what
> I'm sending from the 16F628A.  From Microchip's literature and Rich's code I
> understand that it is not necessary to disable the USART to stop
> transmitting.  Is this correct?  I have had to reset TXSTA,TXEN or the
> display continuously runs over with what appears to be the character for
> sending zero.
> 
> 
>>What you are supposed to do is send, check the sent flag, and then proceed
> 
> 
> Also, I consistantly get "ougga" when I try to send "HELLO".  Although I can
> make the chip output erattic by touching it during operation I do not
> believe the "ougga" is due to noise.  It looks like a letter substitution
> but I can't find the pattern.
> 
> 
>>The fact you are getting ougga which looks like "HELLO" says something.
>>You then need to look very closely at what is being sent on the data lines
>>The fact you are getting charcters to the screen and it is 4 indicates
> 
> that your
> 
>>Sending routine is good, just the values of the chars are wrong
>>I have now got the ascii table in front of me, and I see that
>>o is 1101 1111 and H is 0100 1000 (not obvious) must be something else
> 
> 
> Is the internal 4MHz oscillator reliable for serial communications?
> 
> 
>>Yes it is I used it for weeks at 4800 and 9600 no probs.
> 
> 
> 
> Any help would be much appreciated.
> 
> Thanks, Steve (KC0GBK)
> 
> 
> 
> 
> ________________________________________________________________
> Sent via the WebMail system at stbeng.com
> 
> 
> 
> 
> 
> _______________________________________________
> picsig mailing list
> picsig at lists.tapr.org
> https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig
> 
> 
> 
> _______________________________________________
> picsig mailing list
> picsig at lists.tapr.org
> https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig
> 






More information about the picsig mailing list