Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

89c52 variable baud rate

Status
Not open for further replies.

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Please let know that can we set desired baud rate in 89c52 uC.
I want to set baud rate 8129.
Another question is that if system is design on 8129 baud rate so
can we communicate with 9600 or 4800 baud rates or its necessary
to communicate on 8129 baud rate?
 
Last edited:

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
858
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,143
Is there some specific reason for odd baud rate !!
 
Last edited:

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
In General Motor car they use OBD-I protocol actually not protocol its Assembly Line Diagnostic Link (ALDL).
I am making a project for communicating data to Engine Control unit of my Daewoo Racer 1993 model.
Tranmit or receive data.
 

tpetar

Advanced Member level 5
Joined
Sep 27, 2010
Messages
6,427
Helped
1,712
Reputation
3,454
Reaction score
1,677
Trophy points
1,393
Location
Pancevo-Belgrade, Serbia
Activity points
37,376
You dont need uC for ALDL interface.

You need OBD 1.5 its also called GM ALDL interface. OBD1 want work, you must use OBD1.5, and definitely you dont need this exibitions with uC.

aldlif.jpg

Save 89S52 for some alarm circuit or some other things.
 

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Please refer any link i will soon study OBD-1.5.
Your posted picture of MAX232 ALDL interface will work on my daewoo racer car model 1993 and it has 12 pin connector, attached,
:grin:
 

Attachments

Last edited:

tpetar

Advanced Member level 5
Joined
Sep 27, 2010
Messages
6,427
Helped
1,712
Reputation
3,454
Reaction score
1,677
Trophy points
1,393
Location
Pancevo-Belgrade, Serbia
Activity points
37,376
Also check this:

Making Aldl Cable To Connect PC To OBD1 Ecu_1353358480229.jpg

- - - Updated - - -

Please refer any link i will soon study OBD-1.5.
You can search over Internet, I had fun with OBD earlier. :wink:

- - - Updated - - -

One more ALDL circuit:



- - - Updated - - -

http://en.wikipedia.org/wiki/On-board_diagnostics

OBD-1.5

OBD 1.5 refers to a partial implementation of OBD-II which General Motors used on some vehicles in 1994, 1995, & 1996. (GM did not use the term OBD 1.5 in the documentation for these vehicles - they simply have an OBD and an OBD-II section in the service manual.)

For example, the 94-95 Corvettes have one post-catalyst oxygen sensor (although they have two catalytic converters), and have a subset of the OBD-II codes implemented. For a 1994 Corvette the implemented OBD-II codes are P0116-P0118, P0131-P0135, P0151-P0155, P0158, P0160-P0161, P0171-P0175, P0420, P1114-P1115, P1133, P1153 and P1158.[5]

This hybrid system was present on the GM H-body cars in 94-95, W-body cars (Buick Regal, Chevrolet Lumina ('95 only), Chevrolet Monte Carlo ('95 only), Pontiac Grand Prix, Oldsmobile Cutlass Supreme) in 94-95, L-body (Chevrolet Beretta/Corsica) in 94-95, Y-body (Chevrolet Corvette) in 94-95, on the F-body (Chevrolet Camaro and Pontiac Firebird) in 95 and on the J-Body (Chevrolet Cavalier and Pontiac Sunfire) and N-Body (Buick Skylark, Oldsmobile Achieva, Pontiac Grand Am) in 95 and 96 and also on '94-'95 Saab vehicles with the normally aspirated 2.3.

For ALDL connections, pin 9 is the data stream, pins 4 and 5 are ground, and pin 16 is battery voltage.



An OBD 1.5 compatible scan tool is required to read codes generated by OBD 1.5.

Additional vehicle-specific diagnostic and control circuits are also available on this connector. For instance, on the Corvette there are interfaces for the Class 2 serial data stream from the PCM, the CCM diagnostic terminal, the radio data stream, the airbag system, the selective ride control system, the low tire pressure warning system, and the passive keyless entry system.[6]

- - - Updated - - -

http://www.gmforum.com/1992-1999-91/dreaded-obd-1-5-thread-got-94-95-pcm-look-here-260037/

- - - Updated - - -

Please refer any link i will soon study OBD-1.5.
Your posted picture of MAX232 ALDL interface will work on my daewoo racer car model 1993 and it has 12 pin connector, attached,
:grin:
I already imagine that you trying to chip tunning that car, and trying to convince the car that can go over 200km/h. :)
 

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Is there any software for reading real time data from ECU by using ALDL MAx232 interface.
 

tpetar

Advanced Member level 5
Joined
Sep 27, 2010
Messages
6,427
Helped
1,712
Reputation
3,454
Reaction score
1,677
Trophy points
1,393
Location
Pancevo-Belgrade, Serbia
Activity points
37,376
Check this:

- - - Updated - - -

Also check thise links :

http://www.techedge.com.au/vehicle/aldl160/aldl_sw.htm

http://winaldl.joby.se/

http://winaldl.joby.se/aldlcable.htm

- - - Updated - - -

I think you have now enough material to wind up car to go over 200km/h.
 

Attachments

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Please another question is that in my car`s DLC connector have 12-pins pin-G have 12v volt when ignition
and engine both on and pin M and pin B have 5 volts and pin A is ground.where i will connect ALDL interface wire for transmission.
 
Last edited:

tpetar

Advanced Member level 5
Joined
Sep 27, 2010
Messages
6,427
Helped
1,712
Reputation
3,454
Reaction score
1,677
Trophy points
1,393
Location
Pancevo-Belgrade, Serbia
Activity points
37,376
gm-aldl-connector.gif

The signaling of ALDL is very similar to the RS-232 standard; differing only in the voltages used to denote logical one (usually 0VDC) and logical zero (either +5VDC or +12VDC).

All implementations of ALDL transmit serial data, and the voltages on the ALDL connector are similar to those of the RS-232 standard. Because of these similarities, schematics are available on the internet for devices that can be used to convert the ALDL voltages to that of the RS-232 standard, allowing the raw data to be read with any computer having a serial port. It should be noted that because of the largely undocumented nature of ALDL, determining the meaning of the raw data is not a straightforward process, free software exists that is compatible with many ALDL implementations to convert the raw data to human-readable format.

http://en.wikipedia.org/wiki/ALDL

- - - Updated - - -

Its possible that someone change pins on connector. This is usually done for many reasons.

- - - Updated - - -

First try circuit from post #6, that should work.
 

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Do you have any idea about Suzuki Serial Data Link (SDL)?
Please i need Paramater ID`s of suzuki sdl what i can do?
 

tpetar

Advanced Member level 5
Joined
Sep 27, 2010
Messages
6,427
Helped
1,712
Reputation
3,454
Reaction score
1,677
Trophy points
1,393
Location
Pancevo-Belgrade, Serbia
Activity points
37,376
Suzuki SDL connector pins :

j1962.jpg


A brief description of the Suzuki Serial Data Link (Suzuki SDL)
http://www.rhinopower.org/diag/sdl.html

Suzuki ECU Diagnostics Explained
http://www.rhinopower.org/diag/diag_main.html

OBD1 on an OBD2 ECU aka "Suzuki Mode"
http://www.rhinopower.org/diag/obd1vobd2.html


Serial Data Link Interface
The ALDL connector has the SDL on pin M, Pins ? and ? provide 12V power and ground for a diagnostic scanner.
SDL uses pin 9 on the J1962 connector, ISO 9141-2 (OBD2) uses only the K-Line (pin 7).

Code:
Send To ECU

Header = $13
Message length = $04
Offset = $00 to unknown (will depend on ECU)
Checksum = all bytes sum to zero

ECU returns

Header = $13
Messsage Length = $04
Data = ?
Csum

The offset is defined by a look up table in the ECU. This implies that there may be commonality between ECUs. The list below shows the addresses that I have determined so far for the EE88 EPROM. The first column is the OBD address, the second column is the actual memory address being read. I have made a prototype scanner to create the hardware interface. Parameter definitions will be filled in as work progresses.

00 $0044 = Fault Codes
01 $0046 = Fault Codes
02 $0045 = Stored fault codes??
03 $0047 = Stored fault codes??
04 $0187
05 $004D = RPMH, RPM High Byte (RPMH + RPML = RPM/4
06 $004E = RPML, RPM Low Byte
07 $00D5
08 $0093
09 $00DF = WTS
0A $00E0 = ATS
0B $9803 = ECU variant
0C $0070 = TPS Angle (referenced from idle switch
0D $005B = TPS Position
0E $005A = O2 Sensor Volts*2
0F $00AF = ISC Duty Cycle
10 $00FE = Injector Pulse Width High byte
11 $00FF = Injector Pulse Width Low byte
12 $0066 = Manifold Pressure
13 $0040 = Cylinder filling??
14 $00BA = Ignition Timing (degs)
15 $00D8
16 $00F3 = Short term fuel trim
17 $00EB = Long term fuel trim
18 $00E1
19 $00D9
1A $0058 = Battery Voltage * 0.0737288
1B $0188
1C $0186 = Flags? Bit2 = Fuel Pump?
1D $0095
1E $0079
1F $0002 this is a PORT?


So to read the TPS position send:
$13, $04, $0D, $DC
The ECU will respond with:
$13, $04, Position, Csum
 
Last edited:

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Thank you very much sir, so, I cannot understand what shows $ sign and i have minor confusion about checksum please define me.In my knowledge checksum is a sum of all byte transmitted with 2`s complement.

SDLKWP
From some time around 2001 through to around 2010 Suzuki used an old European diagnostic protocol called KWP2000. This protocol was also adopted by the OBD2 specification but extended diagnostics were made available through Mode 21 - a mode reserved by the OBD2 specification for a manufacturer's own use. Mode 21 uses physical addressing and the manufacturer is not obliged to publish any details of data or functionality, this information is licensed to scan tool manufacturers at a cost of approx. $1000 per annum. OBD1 ECUS of this era use the same protocol but without the OBD2 modes.

According to above SDLKWP detail we cannot diagnose trouble codes from suzuki`s ECU or not.
Please clear my confusions.
 
Last edited:

imranahmed

Advanced Member level 3
Joined
Dec 4, 2011
Messages
731
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Karachi,Pakistan
Activity points
5,927
Dear tpeter,

In my car daewoo the ECU is SER NO:1227303
but in your given ALDL software there is no model 1227307 but different no are given.
What can i do for my car real time data seeing please reply.
 

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,312
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,436
Please let know that can we set desired baud rate in 89c52 uC.
I want to set baud rate 8129.
Another question is that if system is design on 8129 baud rate so
can we communicate with 9600 or 4800 baud rates or its necessary
to communicate on 8129 baud rate?
Yes we can for 9600 and 4800 but I'm not sure for 8129, may be 8192 ?
have a look on this one :
http://www.keil.com/c51/baudrate.asp

Baudrate depend on your crystal...

Cheers

- - - Updated - - -

Not easy mate for your 8129
May be you can not connect perfectly because the speed is not match
baud rate1.jpg
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top