
ADuC7032-8L
Rev. A | Page 106 of 120
LIN Hardware Synchronization Control Register 0
Name:
LHSCON0
Address:
0xFFFF0784
Default Value:
0x0000
Access:
Read/write
Function:
This LHS control register is a 16-bit register that, in conjunction with the LHSCON1 register, is used to configure the LIN
mode of operation.
Table 92. LHSCON0 MMR Bit Designations
Bit
Description
15 to 12
Reserved. These bits are reserved for future use and should be written as 0 by user software.
11
Break Timer Compare Interrupt Disable.
Set to 1 to disable the break timer compare interrupt.
Cleared to 0 to enable the break timer compare interrupt.
10
Break Timer Error Interrupt Disable.
Set to 1 to disable the break timer error interrupt.
Cleared to 0 to enable the break timer error interrupt.
9
LIN Transceiver, Standalone Test Mode.
Cleared to 0 by user code to operate the LIN in normal mode, driven directly from the on-chip UART.
Set to 1 by user code to enable external GPIO_7 and GPIO_8 pins to drive the LIN transceiver TxD and RxD, respectively,
independent of the UART. The functions of GPIO_7 and GPIO_8 should first be configured by user code via
GPIO Function Select Bit 0 and GPIO Function Select Bit 4 in the GP2CON register.
8
Gate UART Bit.
Set to 1 by user code to disable the internal UART RxD (receive data) by gating it high until both the break field and
subsequent LIN sync byte have been detected. This ensures the UART does not receive any spurious serial data during break
or sync field periods that need to be flushed out of the UART before valid data fields can be received.
Set to 0 by user code to enable the internal UART RxD (receive data) after the break field and subsequent LIN sync byte have
been detected so that the UART can receive the subsequent LIN data fields.
7
Sync Timer Stop Edge Type Bit.
Cleared to 0 by user code to stop the sync timer on the falling edge count configured via the LHSCON1[7:4] register.
Set to 1 by user code to stop the sync timer on the rising edge count configured via the LHSCON1[7:4] register.
6 to 5
Reserved. These bits are reserved for future use and should be written as 0 by user software.
4
Enable Stop Interrupt.
Cleared to 0 by user code to disable interrupts when a stop condition occurs.
Set to 1 by user code to generate an interrupt when a stop condition occurs.
3
Enable Start Interrupt.
Cleared to 0 by user code to disable interrupts when a start condition occurs.
Set to 1 by user code to generate an interrupt when a start condition occurs.
2
LIN Sync Enable Bit.
Cleared to 0 by user code to disable LHS functionality.
Set to 1 by user code to enable LHS functionality.
1
Edge Counter Clear Bit.
Cleared to 0 by user code to enable the rising or falling edge counters to function normally.
Set to 1 by user code to clear the internal edge counters in the LHS peripheral. This bit does not reset to 0 automatically and
requires user code to write 0 to re-enable the edge counters.
0
LHS Reset Bit.
Cleared to 0 automatically after 15 μs delay.
Set to 1 by user code to reset all LHS logic to default conditions.