How can I operate at 8192 baud?
I'd like to read the 8192 baud data from an older GM ECU (1989 BUick), OBDI. Thanks.
How can I operate at 8192 baud?
I'd like to read the 8192 baud data from an older GM ECU (1989 BUick), OBDI. Thanks.
I'm just starting out in data comm. so won't have much more info than recommending Mister E's PIC calculator for some of the setups required for USART and SERIN/OUT2. http://www.picbasic.co.uk/forum/show...light=mister-e
Just a quick peek for 8192 baud shows it's possible.
Louie
I believe the Pickit2 supports atypical baud rates using the UART tool. It must be connected to VDD, GND, and the serial line, and should work with 2.5 to 5V levels...but I haven't tested this function yet
In the PBP manual under SEROUT2 it shows formula for given baudrate
(1000000/8192)-20 = 102.07
So, even tho I haven't tried it personally, I reckon that setting a mode of 102 should be pretty damn close to what you are looking for?? (maybe). Anyway, worth a play?
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
If you are intending to read a odbi 8192 data stream I think u need to send some bytes to the ECM to get the 8192 baud data coming from the car. Excuse if this isnt about aldl car ecm communication, i'm looking for a way to interface my 18F4550 to a 95 Holden Commodore series II VR so that I can read the stream from the car (i beleive it's 22 bytes) in an 8n1 stream format...
if anyone is working on a usb 8192 odb1 interface using a 18F4550 I would be overjoyed to chat with you about your progress..
Use these external clock : 11.141 MHz
And these defines:
You have nice UATR in 18F4550 and it will be do the job.Code:DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1 DEFINE HSER_SPBRG 84 ' 8192 Baud @ 11.141MHz, 0.0% DEFINE HSER_CLROERR 1 ' Clear overflow automatically
Code is your side - see ADLD protocol on net - use the google.
Have nice job.
/Robert
Bookmarks