ATmega16M1 Automotive Atmel Corporation, ATmega16M1 Automotive Datasheet - Page 185

no-image

ATmega16M1 Automotive

Manufacturer Part Number
ATmega16M1 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATmega16M1 Automotive

Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
27
Ext Interrupts
27
Usb Speed
No
Usb Interface
No
Spi
1
Uart
1
Can
1
Lin
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
11
Adc Resolution (bits)
10
Adc Speed (ksps)
125
Analog Comparators
4
Resistive Touch Screen
No
Dac Channels
1
Dac Resolution (bits)
10
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 150
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
14
Input Capture Channels
1
Pwm Channels
10
32khz Rtc
No
Calibrated Rc Oscillator
Yes
16.8.2
7647G–AVR–09/11
CANSTMOB.6
CANSTMOB.5
CANSTMOB.4
CANSTMOB.3
CANSTMOB.2
CANSTMOB.1
CANSTMOB.0
CANGIT.4
CANGIT.3
CANGIT.2
CANGIT.1
CANGIT.0
CANGIT.6
CANGIT.5
Interrupt Behavior
OVRTIM
TXOK[i]
RXOK[i]
BERR[i]
CERR[i]
AERR[i]
SERR[i]
FERR[i]
BXOK
CERG
AERG
BOFFI
SERG
FERG
CANGIE.4
Figure 16-14. CAN Controller Interrupt Structure
When an interrupt occurs, an interrupt flag bit is set in the corresponding MOb-CANSTMOB
register or in the general CANGIT register. If in the CANIE register, ENRX / ENTX / ENERR bit
are set, then the corresponding MOb bit is set in the CANSITn register.
To acknowledge a MOb interrupt, the corresponding bits of CANSTMOB register (RXOK,
TXOK,...) must be cleared by the software application. This operation needs a read-mod-
ify-write software routine.
To acknowledge a general interrupt, the corresponding bits of CANGIT register (BXOK, BOF-
FIT,...) must be cleared by the software application. This operation is made writing a logical
one in these interrupt flags (writing a logical zero doesn’t change the interrupt flag value).
OVRTIM interrupt flag is reset as the other interrupt sources of CANGIT register and is also
reset entering in its dedicated interrupt handler.
When the CAN node is in transmission and detects a Form Error in its frame, a bit Error will
also be raised. Consequently, two consecutive interrupts can occur, both due to the same
error. When a MOb error occurs and is set in its own CANSTMOB register, no general error is
set in CANGIT register.
ENTX
CANGIE.5
ENRX
CANGIE.3
CANGIE.2
ENERR
ENBX
CANGIE.1
ENERG
CANSIT 1/2
SIT[i]
Atmel ATmega16/32/64/M1/C1
CANGIE.6
ENBOFF
CANIE 1/2
IEMOB[i]
0
i
CANGIT.7
CANIT
CANGIE.7
CANGIE.0
ENOVRT
ENIT
CAN IT
OVR IT
185

Related parts for ATmega16M1 Automotive