beautypg.com

10 lindat – lin data register – Rainbow Electronics ATmega64M1 User Manual

Page 224

background image

224

8209A–AVR–08/09

ATmega16M1/32M1/64M1

• Bits 7:4 - Res: Reserved

These bits are reserved for future use. For compatibility with future devices, they must be

written to zero when LINSEL is written.

• Bit 3 - LAINC: Auto Increment of Data Buffer Index

In LIN mode:

– 0 = Auto incrementation of FIFO data buffer index (default),

– 1 = No auto incrementation.

In UART mode this field is unused.

• Bits 2:0 - LINDX 2:0: FIFO LIN Data Buffer Index

In LIN mode: location (index) of the LIN response data byte into the FIFO data buffer. The

FIFO data buffer is accessed through LINDAT.

In UART mode this field is unused.

21.6.10

LINDAT – LIN Data Register

• Bits 7:0 - LDATA[7:0]: LIN Data In / Data out

In LIN mode: FIFO data buffer port.

In UART mode: data register (no data buffer - no FIFO).

– In Write access, data out.

– In Read access, data in.

Bit

7

6

5

4

3

2

1

0

LDATA7

LDATA6

LDATA5

LDATA4

LDATA3

LDATA2

LDATA1

LDATA0

LINDAT

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0