EasyManuals Logo

Atmel ATmega32M1 User Manual

Atmel ATmega32M1
367 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #214 background imageLoading...
Page #214 background image
214
7647H–AVR–03/12
Atmel ATmega16/32/64/M1/C1
When the busy signal is set, some registers are locked, user writing is not allowed:
“LIN Control Register” - LINCR - except LCMD[2..0], LENA & LSWRES,
“LIN Baud Rate Registers” - LINBRRL & LINBRRH,
“LIN Data Length Register” - LINDLR,
“LIN Identifier Register” - LINIDR,
“LIN Data Register” - LINDAT.
If the busy signal is set, the only available commands are:
LCMD[1..0] = 00
b
, the abort command is taken into account at the end of the byte,
LENA = 0 and/or LCMD[2] = 0, the kill command is taken into account immediately,
LSWRES = 1, the reset command is taken into account immediately.
Note that, if another command is entered during busy signal, the new command is not validated
and the LOVRERR bit flag of the LINERR register is set. The on-going transfer is not
interrupted.
17.5.5.2 Busy Signal in UART Mode
During the byte transmission, the busy signal is set. This locks some registers from being
written:
“LIN Control Register” - LINCR - except LCMD[2..0], LENA & LSWRES,
“LIN Data Register” - LINDAT.
The busy signal is not generated during a byte reception.
17.5.6 Bit Timing
17.5.6.1 Baud rate Generator
The baud rate is defined to be the transfer rate in bits per second (bps):
BAUD: Baud rate (in bps),
fclk
i/o
: System I/O clock frequency,
LDIV[11..0]: Contents of LINBRRH & LINBRRL registers - (0-4095), the pre-scaler receives
clk
i/o
as input clock.
LBT[5..0]: Least significant bits of - LINBTR register- (0-63) is the number of samplings in a
LIN or UART bit (default value 32).
Equation for calculating baud rate:
BAUD = fclk
i/o
/ LBT[5..0] x (LDIV[11..0] + 1)
Equation for setting LINDIV value:
LDIV[11..0] = ( fclk
i/o
/ LBT[5..0] x BAUD ) - 1
Note that in reception a majority vote on three samplings is made.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel ATmega32M1 and is the answer not in the manual?

Atmel ATmega32M1 Specifications

General IconGeneral
BrandAtmel
ModelATmega32M1
CategoryMicrocontrollers
LanguageEnglish

Related product manuals