beautypg.com

Lin-uart interrupts and ei, Os ■ lin-uart ei, Os functions – FUJITSU F2MCTM-16LX User Manual

Page 424

background image

408

CHAPTER 20 LIN-UART

LIN Synchronization Field Edge Detection Interrupts

This paragraph is only relevant, if LIN-UART operates in mode 3 as a LIN slave. After LIN synch break
detection, the internal signal is set to "1" at first falling edge of the LIN synch field and to "0" after fifth
falling edge. When the internal signal is set in the capture side to be inputted to capture (ICV0/1) and to be
detected both edges, the interrupt occurs if the capture interrupt is enabled. The difference of the count
values detected in the capture is serial clock 8 bits for master, and new baud rate can be calculated.

When the falling edge of the start bit is detected, the reload counter restarts automatically.

LIN-UART Interrupts and EI

2

OS

LIN-UART EI

2

OS functions

LIN-UART has a circuit for operating EI

2

OS, which can be started up for either reception or transmission

interrupts.

For Reception

EI

2

OS can be used if other interrupt is not enabled because the UART shares the interrupt control registers

with transmission interrupt and other UART.

For Transmission

LIN-UART shares the interrupt control registers with the LIN-UART reception interrupts and other UART.

Therefore, EI

2

OS can be started up only when no LIN-UART reception interrupts are used.

Table 20.5-2 LIN-UART Interrupts and EI

2

OS

Channel

Interrupt

number

Interrupt control register

Vector table address

EI

2

OS

Register

name

Address

Lower

Upper

Bank

LIN-UART0 reception

#35(23

H

)

ICR12

0000BC

H

FFFF70

H

FFFF71

H

FFFF72

H

*1

LIN-UART0 transmission

#36(24

H

)

ICR12

0000BC

H

FFFF6C

H

FFFF6D

H

FFFF6E

H

*2

LIN-UART1 reception

#37(25

H

)

ICR13

0000BD

H

FFFF68

H

FFFF69

H

FFFF6A

H

*1

LIN-UART1 transmission

#38(26

H

)

ICR13

0000BD

H

FFFF64

H

FFFF65

H

FFFF66

H

*2

*1: Usable when ICR12 and ICR13 or interrupt causes that share an interrupt vector are not used. Provided with a function

that detects a LIN-UART reception error and stops EI

2

OS.

*2: Usable when ICR12 and ICR13 or interrupt causes that share an interrupt vector are not used.