Features
?High-performance, Low-power AVR? 8-bit Microcontroller
?Advanced RISC Architecture
–133 Powerful Instructions – Most Single Clock Cycle Execution
–32 x 8 General Purpose Working Registers + Peripheral Control Registers
–Fully Static Operation
–Up to 16 MIPS Throughput at 16 MHz
–On-chip 2-cycle Multiplier
?Non volatile Program and Data Memories
–32K/64K/128K Bytes of In-System Reprogrammable Flash (AT90CAN32/64/128)
?Endurance: 10,000 Write/Erase Cycles
–Optional Boot Code Section with Independent Lock Bits
?Selectable Boot Size: 1K Bytes, 2K Bytes, 4K Bytes or 8K Bytes
?In-System Programming by On-Chip Boot Program (CAN, UART)
?True Read-While-Write Operation
–1K/2K/4K Bytes EEPROM (Endurance: 100,000 Write/Erase Cycles) (AT90CAN32/64/128)–2K/4K/4K Bytes Internal SRAM (AT90CAN32/64/128)
–Up to 64K Bytes Optional External Memory Space
–Programming Lock for Software Security
?JTAG (IEEE std. 1149.1 Compliant) Interface
–Boundary-scan Capabilities According to the JTAG Standard
–Programming Flash (Hardware ISP), EEPROM, Lock & Fuse Bits
–Extensive On-chip Debug Support
?CAN Controller 2.0A & 2.0B - ISO 16845 Certified
–15 Full Message Objects with Separate Identifier Tags and Masks
–Transmit, Receive, Automatic Reply and Frame Buffer Receive Modes
–1Mbits/s Maximum Transfer Rate at 8 MHz
–Time stamping, TTC & Listening Mode (Spying or Autobaud)
?Peripheral Features
–Programmable Watchdog Timer with On-chip Oscillator
–8-bit Synchronous Timer/Counter-0
?10-bit Prescaler
?External Event Counter
?Output Compare or 8-bit PWM Output
–8-bit Asynchronous Timer/Counter-2
?10-bit Prescaler
?External Event Counter
?Output Compare or 8-Bit PWM Output
?32Khz Oscillator for RTC Operation
–Dual 16-bit Synchronous Timer/Counters-1 & 3
?10-bit Prescaler
?Input Capture with Noise Canceler
?External Event Counter
?3-Output Compare or 16-Bit PWM Output
?Output Compare Modulation
–8-channel, 10-bit SAR ADC
?8 Single-ended Channels
?7 Differential Channels
?2 Differential Channels With Programmable Gain at 1x, 10x, or 200x Microcontroller 32K/64K/128K Bytes of
ISP Flash
CAN Controller AT90CAN32
AT90CAN64
AT90CAN128 Summary
2
7679BS–CAN–11/06
AT90CAN32/64/128
–On-chip Analog Comparator
–Byte-oriented Two-wire Serial Interface –Dual Programmable Serial USART –
Master/Slave SPI Serial Interface
?Programming Flash (Hardware ISP)
?
Special Microcontroller Features
–Power-on Reset and Programmable Brown-out Detection –Internal Calibrated RC Oscillator –8 External Interrupt Sources
–5 Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down & Standby –Software Selectable Clock Frequency –Global Pull-up Disable ?
I/O and Packages
–53 Programmable I/O Lines –64-lead TQFP and 64-lead QFN ?Operating Voltages –2.7 - 5.5V
?Operating temperature –Industrial (-40°C to +85°C)?
Maximum Frequency
–8 MHz at 2.7V - Industrial range –16 MHz at 4.5V - Industrial range
1.Description
1.1
Comparison Between AT90CAN32, AT90CAN64 and AT90CAN128
AT90CAN32, AT90CAN64 and AT90CAN128 are all hardware and software compatible with each other, the only difference is the memory size. 1.2Part Desription
The AT90CAN32/64/128 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the AT90CAN32/64/128 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.
The AVR core combines a rich instruction set with 32 general purpose working registers. All 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than con-ventional CISC microcontrollers.
Table 1-1.
Memory Size Summary
Device Flash EEPROM RAM AT90CAN3232K Bytes 1K Byte 2K Bytes AT90CAN6464K Bytes 2K Bytes 4K Bytes AT90CAN128
128K Bytes
4K Byte
4K Bytes
3
7679BS–CAN–11/06
AT90CAN32/64/128
The AT90CAN32/64/128 provides the following features: 32K/64K/128K bytes of In-System Pro-grammable Flash with Read-While-Write capabilities, 1K/2K/4K bytes EEPROM, 2K/4K/4K bytes SRAM, 53 general purpose I/O lines, 32 general purpose working registers, a CAN con-troller, Real Time Counter (RTC), four flexible Timer/Counters with compare modes and PWM, 2 USARTs, a byte oriented Two-wire Serial Interface, an 8-channel 10-bit ADC with optional differ-ential input stage with programmable gain, a programmable Watchdog Timer with Internal Oscillator, an SPI serial port, IEEE std. 1149.1 compliant JTAG test interface, also used for accessing the On-chip Debug system and programming and five software selectable power sav-ing modes.
The Idle mode stops the CPU while allowing the SRAM, Timer/Counters, SPI/CAN ports and interrupt system to continue functioning. The Power-down mode saves the register contents but freezes the Oscillator, disabling all other chip functions until the next interrupt or Hardware Reset. In Power-save mode, the asynchronous timer continues to run, allowing the user to main-tain a timer base while the rest of the device is sleeping. The ADC Noise Reduction mode stops the CPU and all I/O modules except Asynchronous Timer and ADC, to minimize switching noise during ADC conversions. In Standby mode, the Crystal/Resonator Oscillator is running while the rest of the device is sleeping. This allows very fast start-up combined with low power consumption.
The device is manufactured using Atmel’s high-density nonvolatile memory technology. The On-chip ISP Flash allows the program memory to be reprogrammed in-system through an SPI serial interface, by a conventional nonvolatile memory programmer, or by an On-chip Boot program running on the AVR core. The boot program can use any interface to download the application program in the application Flash memory. Software in the Boot Flash section will continue to run while the Application Flash section is updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel AT90CAN32/64/128 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications.
The AT90CAN32/64/128 AVR is supported with a full suite of program and system development tools including: C compilers, macro assemblers, program debugger/simulators, in-circuit emula-tors, and evaluation kits.
4
7679BS–CAN–11/06
AT90CAN32/64/128
1.3Block Diagram
5
7679BS–CAN–11/06
AT90CAN32/64/128
1.4
Pin Configurations
Figure 1-2.
Pinout AT90CAN32/64/128 - TQFP
6
7679BS–CAN–11/06
AT90CAN32/64/128
Figure 1-3.Pinout AT90CAN32/64/128 - QFN
Note:
The large center pad underneath the QFN package is made of metal and internally connected to GND. It should be soldered or glued to the board to ensure good mechanical stability. If the center pad is left unconnected, the package might loosen from the board.
7
7679BS–CAN–11/06
AT90CAN32/64/128
1.5
Pin Descriptions
1.5.1
VCC
Digital supply voltage.
1.5.2GND
Ground.
1.5.3
Port A (PA7..PA0)
Port A is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port A output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port A pins that are externally pulled low will source current if the pull-up resistors are activated. The Port A pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port A also serves the functions of various special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.4
Port B (PB7..PB0)
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port B also serves the functions of various special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.5
Port C (PC7..PC0)
Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port C output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port C pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port C also serves the functions of special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.6
Port D (PD7..PD0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port D also serves the functions of various special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.7
Port E (PE7..PE0)
Port E is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port E output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port E pins that are externally pulled low will source current if the pull-up
8
7679BS–CAN–11/06
AT90CAN32/64/128
resistors are activated. The Port E pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port E also serves the functions of various special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.8
Port F (PF7..PF0)
Port F serves as the analog inputs to the A/D Converter.
Port F also serves as an 8-bit bi-directional I/O port, if the A/D Converter is not used. Port pins can provide internal pull-up resistors (selected for each bit). The Port F output buffers have sym-metrical drive characteristics with both high sink and source capability. As inputs, Port F pins that are externally pulled low will source current if the pull-up resistors are activated. The Port F pins are tri-stated when a reset condition becomes active, even if the clock is not running.Port F also serves the functions of the JTAG interface. If the JTAG interface is enabled, the pull-up resistors on pins PF7(TDI), PF5(TMS), and PF4(TCK) will be activated even if a reset occurs.
1.5.9
Port G (PG4..PG0)
Port G is a 5-bit I/O port with internal pull-up resistors (selected for each bit). The Port G output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port G pins that are externally pulled low will source current if the pull-up resistors are activated. The Port G pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port G also serves the functions of various special features of the AT90CAN32/64/128 as listed on I/O-Ports paragraph of the complete Datasheet.
1.5.10
RESET
Reset input. A low level on this pin for longer than the minimum pulse length will generate a reset. The minimum pulse length is given in characteristics. Shorter pulses are not guaranteed to generate a reset. The I/O ports of the AVR are immediately reset to their initial state even if the clock is not running. The clock is needed to reset the rest of the AT90CAN32/64/128.
1.5.11
XTAL1
Input to the inverting Oscillator amplifier and input to the internal clock operating circuit.
1.5.12
XTAL2
Output from the inverting Oscillator amplifier.
1.5.13
AVCC
AVCC is the supply voltage pin for the A/D Converter on Port F. It should be externally con-nected to V CC , even if the ADC is not used. If the ADC is used, it should be connected to V CC through a low-pass filter.
1.5.14
AREF
This is the analog reference pin for the A/D Converter.
9
7679BS–CAN–11/06
AT90CAN32/64/128
2.Register Summary
Address
Name
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0Comment
(0xFF)Reserved (0xFE)Reserved (0xFD)Reserved (0xFC)Reserved (0xFB)Reserved (0xFA)CANMSG MSG 7MSG 6MSG 5MSG 4MSG 3MSG 2MSG 1MSG 0(0xF9)CANSTMH TIMSTM15TIMSTM14TIMSTM13TIMSTM12TIMSTM11TIMSTM10TIMSTM9TIMSTM8(0xF8)CANSTML TIMSTM7TIMSTM6TIMSTM5TIMSTM4TIMSTM3TIMSTM2TIMSTM1TIMSTM0(0xF7)CANIDM1IDMSK 28IDMSK 27IDMSK 26IDMSK 25IDMSK 24IDMSK 23IDMSK 22IDMSK 21(0xF6)CANIDM2IDMSK 20IDMSK 19IDMSK 18IDMSK 17IDMSK 16IDMSK 15IDMSK 14IDMSK 13(0xF5)CANIDM3IDMSK 12IDMSK 11IDMSK 10IDMSK 9IDMSK 8IDMSK 7IDMSK 6IDMSK 5(0xF4)CANIDM4IDMSK 4IDMSK 3IDMSK 2IDMSK 1IDMSK 0RTRMSK –IDEMSK (0xF3)CANIDT1IDT 28IDT 27IDT 26IDT 25IDT 24IDT 23IDT 22IDT 21(0xF2)CANIDT2IDT 20IDT 19IDT 18IDT 17IDT 16IDT 15IDT 14IDT 13(0xF1)CANIDT3IDT 12IDT 11IDT 10IDT 9IDT 8IDT 7IDT 6IDT 5(0xF0)CANIDT4IDT 4IDT 3IDT 2IDT 1IDT 0RTRTAG RB1TAG RB0TAG (0xEF)CANCDMOB CONMOB1CONMOB0RPLV IDE DLC3DLC2DLC1DLC0(0xEE)CANSTMOB DLCW TXOK RXOK BERR SERR CERR FERR AERR (0xED)CANPAGE MOBNB3MOBNB2MOBNB1MOBNB0AINC INDX2INDX1INDX0(0xEC)CANHPMOB HPMOB3HPMOB2HPMOB1HPMOB0CGP3CGP2CGP1CGP0(0xEB)CANREC REC7REC6REC5REC4REC3REC2REC1REC0(0xEA)CANTEC TEC7TEC6TEC5TEC4TEC3TEC2TEC1TEC0(0xE9)CANTTCH TIMTTC15TIMTTC14TIMTTC13TIMTTC12TIMTTC11TIMTTC10TIMTTC9TIMTTC8(0xE8)CANTTCL TIMTTC7TIMTTC6TIMTTC5TIMTTC4TIMTTC3TIMTTC2TIMTTC1TIMTTC0(0xE7)CANTIMH CANTIM15CANTIM14CANTIM13CANTIM12CANTIM11CANTIM10CANTIM9CANTIM8(0xE6)CANTIML CANTIM7CANTIM6CANTIM5CANTIM4CANTIM3CANTIM2CANTIM1CANTIM0(0xE5)CANTCON TPRSC7
TPRSC6TPRSC5TPRSC4TPRSC3TPRSC2TRPSC1TPRSC0(0xE4)CANBT3–PHS22PHS21PHS20PHS12PHS11PHS10SMP (0xE3)CANBT2–SJW1SJW0–PRS2PRS1PRS0–(0xE2)CANBT1–BRP5BRP4BRP3BRP2BRP1BRP0–(0xE1)CANSIT1–SIT14SIT13SIT12SIT11SIT10SIT9SIT8(0xE0)CANSIT2SIT7SIT6SIT5SIT4SIT3SIT2SIT1SIT0(0xDF)CANIE1–IEMOB14IEMOB13IEMOB12IEMOB11IEMOB10IEMOB9IEMOB8(0xDE)CANIE2IEMOB7
IEMOB6IEMOB5IEMOB4IEMOB3IEMOB2IEMOB1IEMOB0(0xDD)CANEN1–ENMOB14ENMOB13ENMOB12ENMOB11ENMOB10ENMOB9ENMOB8(0xDC)CANEN2ENMOB7ENMOB6ENMOB5ENMOB4ENMOB3ENMOB2ENMOB1ENMOB0(0xDB)CANGIE ENIT ENBOFF ENRX ENTX ENERR ENBX ENERG ENOVRT (0xDA)CANGIT CANIT BOFFIT OVRTIM
BXOK SERG CERG FERG AERG (0xD9)CANGSTA –OVRG –TXBSY RXBSY ENFG BOFF ERRP (0xD8)CANGCON ABRQ
OVRQ
TTC
SYNTTC
LISTEN
TEST
ENA/STB
SWRES
(0xD7)Reserved (0xD6)Reserved (0xD5)Reserved (0xD4)Reserved (0xD3)Reserved (0xD2)Reserved (0xD1)Reserved (0xD0)Reserved (0xCF)Reserved (0xCE)UDR1UDR17UDR16UDR15UDR14UDR13UDR12UDR11UDR10(0xCD)UBRR1H ––––UBRR111UBRR110UBRR19UBRR18(0xCC)UBRR1L UBRR17
UBRR16UBRR15UBRR14UBRR13UBRR12UBRR11UBRR10(0xCB)Reserved (0xCA)UCSR1C –UMSEL1UPM11UPM10USBS1UCSZ11UCSZ10UCPOL1(0xC9)UCSR1B RXCIE1TXCIE1UDRIE1RXEN1TXEN1UCSZ12RXB81TXB81(0xC8)UCSR1A RXC1TXC1UDRE1FE1DOR1UPE1U2X1MPCM1(0xC7)Reserved (0xC6)UDR0UDR07UDR06UDR05UDR04UDR03UDR02UDR01UDR00(0xC5)UBRR0H ––––UBRR011UBRR010UBRR09UBRR08(0xC4)UBRR0L UBRR07
UBRR06UBRR05UBRR04UBRR03UBRR02UBRR01UBRR00(0xC3)Reserved (0xC2)UCSR0C –UMSEL0UPM01UPM00USBS0UCSZ01UCSZ00UCPOL0(0xC1)UCSR0B RXCIE0TXCIE0UDRIE0RXEN0TXEN0UCSZ02RXB80TXB80(0xC0)UCSR0A RXC0
TXC0
UDRE0
FE0
DOR0
UPE0
U2X0
MPCM0
(0xBF)
Reserved
10
7679BS–CAN–11/06
AT90CAN32/64/128
(0xBE)Reserved (0xBD)Reserved (0xBC)TWCR TWINT TWEA TWSTA TWSTO TWWC TWEN –TWIE (0xBB)TWDR TWDR7TWDR6TWDR5TWDR4TWDR3TWDR2TWDR1TWDR0(0xBA)TWAR TWAR6TWAR5TWAR4TWAR3TWAR2TWAR1TWAR0TWGCE (0xB9)TWSR TWS7TWS6TWS5TWS4TWS3–TWPS1TWPS0(0xB8)TWBR TWBR7TWBR6TWBR5TWBR4TWBR3TWBR2TWBR1TWBR0(0xB7)Reserved (0xB6)ASSR –
–
–
EXCLK
AS2
TCN2UB
OCR2UB
TCR2UB
(0xB5)Reserved (0xB4)Reserved (0xB3)OCR2A OCR2A7OCR2A6OCR2A5OCR2A4OCR2A3OCR2A2OCR2A1OCR2A0(0xB2)TCNT2TCNT27TCNT26TCNT25TCNT24TCNT23TCNT22TCNT21TCNT20(0xB1)Reserved (0xB0)TCCR2A FOC2A
WGM20
COM2A1
COM2A0
WGM21
CS22
CS21
CS20
(0xAF)Reserved (0xAE)Reserved (0xAD)Reserved (0xAC)Reserved (0xAB)Reserved (0xAA)Reserved (0xA9)Reserved (0xA8)Reserved (0xA7)Reserved (0xA6)Reserved (0xA5)Reserved (0xA4)Reserved (0xA3)Reserved (0xA2)Reserved (0xA1)Reserved (0xA0)Reserved (0x9F)Reserved (0x9E)Reserved (0x9D)OCR3CH OCR3C15OCR3C14OCR3C13OCR3C12OCR3C11OCR3C10OCR3C9OCR3C8(0x9C)OCR3CL OCR3C7OCR3C6OCR3C5OCR3C4OCR3C3OCR3C2OCR3C1OCR3C0(0x9B)OCR3BH OCR3B15OCR3B14OCR3B13OCR3B12OCR3B11OCR3B10OCR3B9OCR3B8(0x9A)OCR3BL OCR3B7OCR3B6OCR3B5OCR3B4OCR3B3OCR3B2OCR3B1OCR3B0(0x99)OCR3AH OCR3A15OCR3A14OCR3A13OCR3A12OCR3A11OCR3A10OCR3A9OCR3A8(0x98)OCR3AL OCR3A7OCR3A6OCR3A5OCR3A4OCR3A3OCR3A2OCR3A1OCR3A0(0x97)ICR3H ICR315ICR314ICR313ICR312ICR311ICR310ICR39ICR38(0x96)ICR3L ICR37ICR36ICR35ICR34ICR33ICR32ICR31ICR30(0x95)TCNT3H TCNT315TCNT314TCNT313TCNT312TCNT311TCNT310TCNT39TCNT38(0x94)TCNT3L TCNT37TCNT36TCNT35TCNT34
TCNT33
TCNT32
TCNT31
TCNT30
(0x93)Reserved (0x92)TCCR3C FOC3A FOC3B FOC3C ––––(0x91)TCCR3B ICNC3ICES3–WGM33WGM32CS32CS31CS30(0x90)TCCR3A COM3A1
COM3A0
COM3B1
COM3B0
COM3C1
COM3C0
WGM31
WGM30
(0x8F)Reserved (0x8E)Reserved (0x8D)OCR1CH OCR1C15OCR1C14OCR1C13OCR1C12OCR1C11OCR1C10OCR1C9OCR1C8(0x8C)OCR1CL OCR1C7OCR1C6OCR1C5OCR1C4OCR1C3OCR1C2OCR1C1OCR1C0(0x8B)OCR1BH OCR1B15OCR1B14OCR1B13OCR1B12OCR1B11OCR1B10OCR1B9OCR1B8 (0x8A)OCR1BL OCR1B7OCR1B6OCR1B5OCR1B4OCR1B3OCR1B2OCR1B1OCR1B0(0x89)OCR1AH OCR1A15OCR1A14OCR1A13OCR1A12OCR1A11OCR1A10OCR1A9OCR1A8(0x88)OCR1AL OCR1A7OCR1A6OCR1A5OCR1A4OCR1A3OCR1A2OCR1A1OCR1A0(0x87)ICR1H ICR115ICR114ICR113ICR112ICR111ICR110ICR19ICR18(0x86)ICR1L ICR17ICR16ICR15ICR14ICR13ICR12ICR11ICR10(0x85)TCNT1H TCNT115TCNT114TCNT113TCNT112TCNT111TCNT110TCNT19TCNT18(0x84)TCNT1L TCNT17TCNT16TCNT15TCNT14
TCNT13
TCNT12
TCNT11
TCNT10
(0x83)Reserved (0x82)TCCR1C FOC1A FOC1B FOC1C –––––(0x81)TCCR1B ICNC1ICES1–WGM13WGM12CS12CS11CS10(0x80)TCCR1A COM1A1
COM1A0
COM1B1
COM1B0
COM1C1
COM1C0
WGM11WGM10(0x7F)DIDR1––––––AIN1D AIN0D (0x7E)DIDR0ADC7D
ADC6D
ADC5D
ADC4D
ADC3D
ADC2D
ADC1D
ADC0D
(0x7D)
Reserved
Address
Name
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0Comment
1
1
7679BS–CAN–11/06
AT90CAN32/64/128
(0x7C)ADMUX REFS1REFS0ADLAR MUX4MUX3MUX2MUX1MUX0(0x7B)ADCSRB –ACME –––ADTS2ADTS1ADTS0(0x7A)ADCSRA ADEN ADSC ADATE ADIF ADIE ADPS2ADPS1ADPS0(0x79)ADCH - / ADC9- / ADC8- / ADC7- / ADC6- / ADC5- / ADC4ADC9 / ADC3ADC8 / ADC2(0x78)ADCL ADC7 / ADC1
ADC6 / ADC0
ADC5 / -
ADC4 / -
ADC3 / -
ADC2 / -
ADC1 / -
ADC0 /
(0x77)Reserved (0x76)Reserved (0x75)XMCRB XMBK ––––XMM2XMM1XMM0(0x74)XMCRA SRE
SRL2
SRL1
SRL0
SRW11
SRW10
SRW01
SRW00
(0x73)Reserved (0x72)Reserved (0x71)TIMSK3––ICIE3–OCIE3C
OCIE3B
OCIE3A TOIE3(0x70)TIMSK2––––––OCIE2A TOIE2(0x6F)TIMSK1––ICIE1–OCIE1C
OCIE1B
OCIE1A TOIE1(0x6E)TIMSK0–
–
–
–
–
–
OCIE0A
TOIE0
(0x6D)Reserved (0x6C)Reserved (0x6B)Reserved (0x6A)EICRB ISC71ISC70ISC61ISC60ISC51ISC50ISC41ISC40(0x69)EICRA ISC31
ISC30
ISC21
ISC20
ISC11
ISC10
ISC01
ISC00
(0x68)Reserved (0x67)Reserved (0x66)OSCCAL –CAL6CAL5CAL4CAL3CAL2CAL1CAL0
(0x65)Reserved (0x64)Reserved (0x63)Reserved (0x62)Reserved (0x61)CLKPR CLKPCE
–––CLKPS3CLKPS2CLKPS1CLKPS0(0x60)WDTCR –––WDCE WDE WDP2WDP1WDP00x3F (0x5F)SREG I T H S V N Z C 0x3E (0x5E)SPH SP15SP14SP13SP12SP11SP10SP9SP80x3D (0x5D)SPL SP7SP6SP5SP4SP3SP2SP1SP00x3C (0x5C)Reserved 0x3B (0x5B)RAMPZ –
–
–
–
–
–
–
RAMPZ0
(1)
0x3A (0x5A)Reserved 0x39 (0x59)Reserved 0x38 (0x58)Reserved 0x37 (0x57)SPMCSR SPMIE RWWSB
–RWWSRE
BLBSET
PGWRT
PGERS SPMEN 0x36 (0x56)Reserved ––––––––0x35 (0x55)MCUCR JTD ––PUD ––IVSEL IVCE 0x34 (0x54)MCUSR –––JTRF WDRF BORF EXTRF PORF 0x33 (0x53)SMCR ––––SM2SM1SM0SE 0x32 (0x52)Reserved 0x31 (0x51)OCDR IDRD/OCDR7
OCDR6OCDR5OCDR4OCDR3OCDR2OCDR1OCDR00x30 (0x50)ACSR ACD ACBG ACO ACI ACIE ACIC ACIS1ACIS00x2F (0x4F)Reserved 0x2E (0x4E)SPDR SPD7SPD6SPD5SPD4SPD3SPD2SPD1SPD00x2D (0x4D)SPSR SPIF WCOL –––––SPI2X 0x2C (0x4C)SPCR SPIE SPE DORD MSTR CPOL CPHA SPR1SPR00x2B (0x4B)GPIOR2GPIOR27GPIOR26GPIOR25GPIOR24GPIOR23GPIOR22GPIOR21GPIOR200x2A (0x4A)GPIOR1GPIOR17
GPIOR16
GPIOR15
GPIOR14
GPIOR13
GPIOR12
GPIOR11
GPIOR10
0x29 (0x49)Reserved 0x28 (0x48)Reserved 0x27 (0x47)OCR0A OCR0A7OCR0A6OCR0A5OCR0A4OCR0A3OCR0A2OCR0A1OCR0A00x26 (0x46)TCNT0TCNT07TCNT06TCNT05TCNT04TCNT03TCNT02TCNT01TCNT000x25 (0x45)Reserved 0x24 (0x44)TCCR0A FOC0A WGM00
COM0A1
COM0A0
WGM01
CS02CS01CS000x23 (0x43)GTCCR TSM –––––PSR2PSR3100x22 (0x42)EEARH ––––EEAR11EEAR10EEAR9EEAR8(2)
0x21 (0x41)EEARL EEAR7EEAR6EEAR5EEAR4EEAR3EEAR2EEAR1EEAR00x20 (0x40)EEDR EEDR7EEDR6EEDR5EEDR4EEDR3EEDR2EEDR1EEDR00x1F (0x3F)EECR ––––EERIE EEMWE EEWE EERE 0x1E (0x3E)GPIOR0GPIOR07GPIOR06GPIOR05GPIOR04GPIOR03GPIOR02GPIOR01GPIOR000x1D (0x3D)EIMSK INT7INT6INT5INT4INT3INT2INT1INT00x1C (0x3C)EIFR INTF7
INTF6
INTF5
INTF4
INTF3
INTF2
INTF1
INTF0
0x1B (0x3B)
Reserved
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Comment
12
7679BS–CAN–11/06
AT90CAN32/64/128
Notes: 1.Address bits exceeding PCMSB (c.f. complete Datasheet) are don’t care.2.Address bits exceeding EEAMSB (c.f. complete Datasheet) are don’t care.
3.For compatibility with future devices, reserved bits should be written to zero if accessed. Reserved I/O memory addresses
should never be written.4.I/O Registers within the address range 0x00 - 0x1F are directly bit-accessible using the SBI and CBI instructions. In these
registers, the value of single bits can be checked by using the SBIS and SBIC instructions.5.Some of the status flags are cleared by writing a logical one to them. Note that, unlike most other AVRs, the CBI and SBI
instructions will only operate on the specified bit, and can therefore be used on registers containing such status flags. The CBI and SBI instructions work with registers 0x00 to 0x1F only.6.When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O
Registers as data space using LD and ST instructions, 0x20 must be added to these addresses. The AT90CAN32/64/128 is a complex microcontroller with more peripheral units than can be supported within the 64 location reserved in Opcode for the IN and OUT instructions. For the Extended I/O space from 0x60 - 0xFF in SRAM, only the ST/STS/STD and LD/LDS/LDD instructions can be used.
0x1A (0x3A)Reserved 0x19 (0x39)Reserved 0x18 (0x38)TIFR3––ICF3–OCF3C OCF3B OCF3A TOV30x17 (0x37)TIFR2––––––OCF2A TOV20x16 (0x36)TIFR1––ICF1–OCF1C OCF1B OCF1A TOV10x15 (0x35)TIFR0––––––OCF0A TOV00x14 (0x34)PORTG –––PORTG4PORTG3PORTG2PORTG1PORTG00x13 (0x33)DDRG –––DDG4DDG3DDG2DDG1DDG00x12 (0x32)PING –––PING4PING3PING2PING1PING00x11 (0x31)PORTF PORTF7PORTF6PORTF5PORTF4PORTF3PORTF2PORTF1PORTF00x10 (0x30)DDRF DDF7DDF6DDF5DDF4DDF3DDF2DDF1DDF00x0F (0x2F)PINF PINF7PINF6PINF5PINF4PINF3PINF2PINF1PINF00x0E (0x2E)PORTE PORTE7PORTE6PORTE5PORTE4PORTE3PORTE2PORTE1PORTE00x0D (0x2D)DDRE DDE7DDE6DDE5DDE4DDE3DDE2DDE1DDE00x0C (0x2C)PINE PINE7PINE6PINE5PINE4PINE3PINE2PINE1PINE00x0B (0x2B)PORTD PORTD7PORTD6PORTD5PORTD4PORTD3PORTD2PORTD1PORTD00x0A (0x2A)DDRD DDD7DDD6DDD5DDD4DDD3DDD2DDD1DDD00x09 (0x29)PIND PIND7PIND6PIND5PIND4PIND3PIND2PIND1PIND00x08 (0x28)PORTC PORTC7PORTC6PORTC5PORTC4PORTC3PORTC2PORTC1PORTC00x07 (0x27)DDRC DDC7DDC6DDC5DDC4DDC3DDC2DDC1DDC00x06 (0x26)PINC PINC7PINC6PINC5PINC4PINC3PINC2PINC1PINC00x05 (0x25)PORTB PORTB7PORTB6PORTB5PORTB4PORTB3PORTB2PORTB1PORTB00x04 (0x24)DDRB DDB7DDB6DDB5DDB4DDB3DDB2DDB1DDB00x03 (0x23)PINB PINB7PINB6PINB5PINB4PINB3PINB2PINB1PINB00x02 (0x22)PORTA PORTA7PORTA6PORTA5PORTA4PORTA3PORTA2PORTA1PORTA00x01 (0x21)DDRA DDA7DDA6DDA5DDA4DDA3DDA2DDA1DDA00x00 (0x20)
PINA
PINA7
PINA6
PINA5
PINA4
PINA3
PINA2
PINA1
PINA0
Address
Name
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0Comment
1
3
7679BS–CAN–11/06
AT90CAN32/64/128
3.Ordering Information
Notes:
1.These devices can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering informa-tion and minimum quantities.
4.Packaging Information
Ordering Code
(1)
Speed (MHz)
Power Supply (V)
Package Operation Range Product Marking AT90CAN32-16AI 16 2.7 - 5.564A Industrial (-40° to +85°C)AT90CAN32-IL AT90CAN32-16MI 16 2.7 - 5.564M1Industrial (-40° to +85°C)AT90CAN32-IL AT90CAN32-16AU 16 2.7 - 5.564A Industrial (-40° to +85°C) Green
AT90CAN32-UL AT90CAN32-16MU 16 2.7 - 5.564M1Industrial (-40° to +85°C) Green
AT90CAN32-UL AT90CAN64-16AI 16 2.7 - 5.564A Industrial (-40° to +85°C)AT90CAN64-IL AT90CAN64-16MI 16 2.7 - 5.564M1Industrial (-40° to +85°C)AT90CAN64-IL AT90CAN64-16AU 16 2.7 - 5.564A Industrial (-40° to +85°C) Green
AT90CAN64-UL AT90CAN64-16MU 16 2.7 - 5.564M1Industrial (-40° to +85°C) Green
AT90CAN64-UL AT90CAN128-16AI 16 2.7 - 5.564A Industrial (-40° to +85°C)AT90CAN128-IL AT90CAN128-16MI 16 2.7 - 5.564M1Industrial (-40° to +85°C)AT90CAN128-IL AT90CAN128-16AU 16 2.7 - 5.564A Industrial (-40° to +85°C) Green
AT90CAN128-UL AT90CAN128-16MU 16
2.7 - 5.5
64M1
Industrial (-40° to +85°C) Green
AT90CAN128-UL
Package Type
64A 64-Lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP)64M1
64-Lead, Quad Flat No lead (QFN)
14
7679BS–CAN–11/06
AT90CAN32/64/128
4.1
TQFP64
1
5
7679BS–CAN–11/06
7679BS–CAN–11/06
? Atmel Corporation 2006. All rights reserved. Atmel ?, logo and combinations thereof, are registered trademarks, and Everywhere You Are ?are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN-TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically providedot-herwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’sAtmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
Atmel Corporation
Atmel Operations
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311Fax: 1(408) 487-2600
Regional Headquarters
Europe
Atmel Sarl
Route des Arsenaux 41Case Postale 80CH-1705 Fribourg Switzerland
Tel: (41) 26-426-5555Fax: (41) 26-426-5500
Asia
Room 1219
Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong
Tel: (852) 2721-9778Fax: (852) 2722-1369
Japan
9F, Tonetsu Shinkawa Bldg.1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033Japan
Tel: (81) 3-3523-3551Fax: (81) 3-3523-7581
Memory
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311Fax: 1(408) 436-4314
Microcontrollers
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311Fax: 1(408) 436-4314
La Chantrerie BP 70602
44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18Fax: (33) 2-40-18-19-60
ASIC/ASSP/Smart Cards
Zone Industrielle
13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00Fax: (33) 4-42-53-60-01
1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300Fax: 1(719) 540-1759
Scottish Enterprise Technology Park Maxwell Building
East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000Fax: (44) 1355-242-743
RF/Automotive
Theresienstrasse 2Postfach 3535
74025 Heilbronn, Germany Tel: (49) 71-31-67-0
Fax: (49) 71-31-67-2340
1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300Fax: 1(719) 540-1759
Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom
Avenue de Rochepleine BP 123
38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00Fax: (33) 4-76-58-34-80
Literature Requests
https://www.wendangku.net/doc/e211979060.html,/literature