aduc7033bstz-8l-rl Analog Devices, Inc., aduc7033bstz-8l-rl Datasheet - Page 126
aduc7033bstz-8l-rl
Manufacturer Part Number
aduc7033bstz-8l-rl
Description
Integrated Precision Battery Sensor For Automotive
Manufacturer
Analog Devices, Inc.
Datasheet
1.ADUC7033BSTZ-8L-RL.pdf
(136 pages)
- Current page: 126 of 136
- Download datasheet (2Mb)
ADuC7033
Example LIN Hardware Synchronization Routine
Consider the following C-Source Code LIN initialization routine.
void LIN_INIT(void )
{
}
Using this configuration, LHSVAL1 begins to count on the first
falling edge received on the LIN bus. If LHSVAL1 exceeds the
value written to LHSVAL1, in this case 0x3F, a break compare
interrupt is generated.
On the next falling edge, LHSVAL0 begins counting. LHSVAL0
monitors the number of falling edges and compares this to the
value written to LHSCON1[7:4]. In this example, the number of
edges to monitor is the sixth falling edge of the LIN frame, or
char HVstatus;
GPCON = 0x110000;
LHSCON0 = 0x1;
do{
while (!(HVstatus & 0x4));
while((LHSSTA & 0x20) == 0 )
{
}
LHSCON1 = 0x062;
LHSCON0 = 0x0114;
LHSVAL1 = 0x03F;
HVDAT = 0x02;
HVCON = 0x08;
}
do{
while(HVstatus & 0x1);// Wait until command is finished
}
HVstatus = HVCON;
// Enable LHS on GPIO pins
// Reset LHS interface
// Enable normal LIN TX mode
// Write to Config0
// Transmit command is correct
// Wait until the LHS hardware is reset
// Sets Stop Edge as the fifth falling edge
// and the Start Edge as the first falling
// edge in the sync byte
// Gates UART RX line, ensure no interference
// from the LIN into the UART
// Selects the stop condition as a falling edge
// Enables generation of an Interrupt on the
// stop condition
// Enables the interface
// Set number of 131 kHz periods to generate
// a break interrupt 0x3F / 131 kHz ~ 480 μs
// which is just over 9.5 tbits
Rev. 0 | Page 126 of 136
the fifth falling edge of the sync byte. When this number of
falling edges is received, a stop condition interrupt is generated.
It is at this point that the UART is configured to receive the
protected identifier.
The UART must not be ungated (through LHSCON0[8]) before
the LIN bus returns high. If this occurs, UART communication
errors can occur. This process is shown in detail in Figure 49.
Example code to ensure this is as follows:
Related parts for aduc7033bstz-8l-rl
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Integrated, Precision Battery Sensor For Automotive
Manufacturer:
Analog Devices
Part Number:
Description:
Analog Divider
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Analog Front End For Adsl
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Lc2mos Complete, 12-bit Analog I/o System
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Cmos 4/8 Channel Analog Multiplexers
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Low Cost, Low Power Cmos General Purpose Analog Front End
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
2.5 V To 5.0 V Micropower, Precision Series Mode Voltage References
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Stereo, Single-supply 18-bit Integrated Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Multichannel 24-bit, 192 Khz, Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Ac?97 Soundmax Codec
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Complete Dual 18-bit 16 X Fs Audio Dac
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Sampleport Stereo Asynchronous Sample Rate Converters
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
U.s./international Modem Daa Line Codec Chipset
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
Low Distortion 750 Mhz Closed-loop Buffer Amp
Manufacturer:
Analog Devices, Inc.
Datasheet:
Part Number:
Description:
High Speed Active Load With Inhibit Mode
Manufacturer:
Analog Devices, Inc.
Datasheet: