English
Language : 

ADUC7033_15 Datasheet, PDF (129/140 Pages) Analog Devices – Integrated, Precision Battery Sensor for Automotive
ADuC7033
while((GP2DAT & 0x10 ) == 0 )
{}
LHSCON0 = 0x4;
IRQEN = 0x800;
// Wait until LIN Bus returns high
// Enable LHS to detect Break Condition Ungate RX Line
// Disable all Interrupts except Break Compare Interrupt
// Enable UART Interrupt
// The UART is now configured and ready to be used for LIN
LHSVAL1
RESET AND
STARTS
COUNTING
BREAK
COMPARE
INTERRUPT
GENERATED
LHSVAL0 STARTS
COUNTING
TBIT
LHSVAL0 STOPS UART CONFIGURED
BEGIN
COUNTING. STOP LHS INTERRUPTS RECEIVING DATA
INTERRUPT
DISABLED EXCEPT
VIA UART
GENERATED BREAK COMPARE
START
BIT
STOP
BIT
START
BIT
ID0
ID1
ID2
ID3
ID4
ID5
P0
P1
STOP
BIT
LHSVAL1 = 0x3F
Figure 51. Example LIN Configuration
LIN Diagnostics
The ADuC7033 features the capability to unintrusively monitor
the current state of the LIN pin. This readback functionality is
implemented using GPIO_11. The current state of the LIN pin
is contained in GP2DAT[4].
It is also possible to drive the LIN pin high and low through
user software, allowing the user to detect open-circuit conditions.
This functionality is implemented via GPIO_12. To enable this
functionality, GPIO_12 must be configured as a GPIO through
GP2CON[20]. After it is configured, the LIN pin can be pulled
high or low using GP2DAT.
The ADuC7033 also features short-circuit protection on the LIN
pin. If a short-circuit condition is detected on the LIN pin,
HVSTA[2] is set. This bit is cleared by re-enabling the LIN
driver using HVCFG1[3]. It is possible to disable this feature
through HVCFG1[2].
LIN Operation During Thermal Shutdown
When a thermal event occurs, that is, HVSTA[3] is set, LIN
communications continue uninterrupted.
Rev. B | Page 129 of 140