115200 Baud to 9600 Baud Translator
Has anyone done a translation table for serial commands? What I want to do is receive data in at 115200 and send out a different string at 9600. maybe 8 to 10 different commands. Is it Possible?
Seems it is. I use Pic Basic Pro. I have done serial in, and serial out only, but never both at the same time, yet alone at different baud rates. I am still kinda new at this, and only delt with PIC16F84. If anyone can recommend a PIC, that would be great too!
From what I can gather so far, looks like I'll use a 16F873 and a 22.1184 XTAL.
Any ideas on how to go about this?
Thanks,
ScottC
115200 HSEROUT Not Working
I have been messing with this for a bit and no luck. I am using a 16F873A with UART. I see a burst of data on my scope, but PC does not see it. I also know that I have to invert the signal due to the nature of HSEROUT.
Is what I have code wise correct?
Any Ideas? I am using a 22.1184MHz Xtal. code is below.
Just using this as a test to see if I can get 115200 baud to work. Then I'll try to concour the above issue posted.
DEFINE OSC 20 ' 20MHz oscillator
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h
DEFINE HSER_BAUD 115200
DEFINE HSER_SPBRG 2
TRISA = 0
TRISB = 0
TRISC = 0
PORTB.0 = 1
START:
HSerout ["12345",10]
Pause 1000
GoTo START
End
Thanks,
Scott