Datasheet
Table Of Contents
- 1. Description
- 2. About Code Examples
- 3. AVR CPU Core
- 4. Memories
- 5. System Clock
- 6. Power Management and Sleep Modes
- 7. System Control and Reset
- 8. Interrupts
- 9. I/O-Ports
- 10. External Interrupts
- 11. Timer/Counter3/1/0 Prescalers
- 12. 8-bit Timer/Counter0 with PWM
- 13. 16-bit Timer/Counter (Timer/Counter1 and Timer/Counter3)
- 14. 8-bit Timer/Counter2 with PWM and Asynchronous Operation
- 14.1 Features
- 14.2 Overview
- 14.3 Timer/Counter Clock Sources
- 14.4 Counter Unit
- 14.5 Output Compare Unit
- 14.6 Compare Match Output Unit
- 14.7 Modes of Operation
- 14.8 Timer/Counter Timing Diagrams
- 14.9 8-bit Timer/Counter Register Description
- 14.10 Asynchronous operation of the Timer/Counter2
- 14.11 Timer/Counter2 Prescaler
- 15. Output Compare Modulator - OCM
- 16. Serial Peripheral Interface - SPI
- 17. USART (USART0 and USART1)
- 17.1 Features
- 17.2 Overview
- 17.3 Dual USART
- 17.4 Clock Generation
- 17.5 Serial Frame
- 17.6 USART Initialization
- 17.7 Data Transmission - USART Transmitter
- 17.8 Data Reception - USART Receiver
- 17.9 Asynchronous Data Reception
- 17.10 Multi-processor Communication Mode
- 17.11 USART Register Description
- 17.12 Examples of Baud Rate Setting
- 18. Two-wire Serial Interface
- 19. Controller Area Network - CAN
- 20. Analog Comparator
- 21. Analog to Digital Converter - ADC
- 22. JTAG Interface and On-chip Debug System
- 23. Boundary-scan IEEE 1149.1 (JTAG)
- 24. Boot Loader Support - Read-While-Write Self-Programming
- 25. Memory Programming
- 26. Electrical Characteristics (1)
- 26.1 Absolute Maximum Ratings*
- 26.2 DC Characteristics
- 26.3 External Clock Drive Characteristics
- 26.4 Maximum Speed vs. VCC
- 26.5 Two-wire Serial Interface Characteristics
- 26.6 SPI Timing Characteristics
- 26.7 CAN Physical Layer Characteristics
- 26.8 ADC Characteristics
- 26.9 External Data Memory Characteristics
- 26.10 Parallel Programming Characteristics
- 27. Decoupling Capacitors
- 28. AT90CAN32/64/128 Typical Characteristics
- 28.1 Active Supply Current
- 28.2 Idle Supply Current
- 28.3 Power-down Supply Current
- 28.4 Power-save Supply Current
- 28.5 Standby Supply Current
- 28.6 Pin Pull-up
- 28.7 Pin Driver Strength
- 28.8 Pin Thresholds and Hysteresis
- 28.9 BOD Thresholds and Analog Comparator Offset
- 28.10 Internal Oscillator Speed
- 28.11 Current Consumption of Peripheral Units
- 28.12 Current Consumption in Reset and Reset Pulse Width
- 29. Register Summary
- 30. Instruction Set Summary
- 31. Ordering Information
- 32. Packaging Information
- 33. Errata
- 34. Datasheet Revision History for AT90CAN32/64/128
- 34.1 Changes from 7679G - 03/08 to 7679H - 08/08
- 34.2 Changes from 7679F - 11/07 to 7679G - 03/08
- 34.3 Changes from 7679E - 07/07 to 7679F - 11/07
- 34.4 Changes from 7679D - 02/07 to 7679E - 07/07
- 34.5 Changes from 7679C - 01/07 to 7679D - 02/07
- 34.6 Changes from 7679B - 11/06 to 7679C - 01/07
- 34.7 Changes from 7679A - 10/06 to 7679B - 11/06
- 34.8 Document Creation

18
7679H–CAN–08/08
AT90CAN32/64/128
4. Memories
This section describes the different memories in the AT90CAN32/64/128. The AVR architecture
has two main memory spaces, the Data Memory and the Program Memory space. In addition,
the AT90CAN32/64/128 features an EEPROM Memory for data storage. All three memory
spaces are linear and regular.
Notes: 1. Byte address.
2. Word (16-bit) address.
4.1 In-System Reprogrammable Flash Program Memory
The AT90CAN32/64/128 contains On-chip In-System Reprogrammable Flash memory for pro-
gram storage (see “Flash size”). Since all AVR instructions are 16 or 32 bits wide, the Flash is
organized as 16 bits wide. For software security, the Flash Program memory space is divided
into two sections, Boot Program section and Application Program section.
The Flash memory has an endurance of at least 10,000 write/erase cycles. The
AT90CAN32/64/128 Program Counter (PC) address the program memory locations. The opera-
tion of Boot Program section and associated Boot Lock bits for software protection are described
in detail in “Boot Loader Support – Read-While-Write Self-Programming” on page 321. “Memory
Programming” on page 336 contains a detailed description on Flash data serial downloading
using the SPI pins or the JTAG interface.
Table 4-1. Memory Mapping.
Memory Mnemonic AT90CAN32 AT90CAN64 AT90CAN128
Flash
Size
Flash size 32 K bytes 64 K bytes 128 K bytes
Start Address
- 0x00000
End Address
Flash end
0x07FFF
(1)
0x3FFF
(2)
0x0FFFF
(1)
0x7FFF
(2)
0x1FFFF
(1)
0xFFFF
(2)
32
Registers
Size
- 32 bytes
Start Address
- 0x0000
End Address
- 0x001F
I/O
Registers
Size
- 64 bytes
Start Address
- 0x0020
End Address
- 0x005F
Ext I/O
Registers
Size
- 160 bytes
Start Address
- 0x0060
End Address
-0x00FF
Internal
SRAM
Size
ISRAM size 2 K bytes 4 K bytes 4 K bytes
Start Address
ISRAM start 0x0100
End Address
ISRAM end 0x08FF 0x10FF 0x10FF
External
Memory
Size
XMem size 0-64 K bytes
Start Address
XMem start 0x0900 0x1100 0x1100
End Address
XMem end 0xFFFF
EEPROM
Size
E2 size 1 K bytes 2 K bytes 4 K bytes
Start Address
- 0x0000
End Address
E2 end 0x03FF 0x07FF 0x0FFF