AT91FR4081-40CI [ETC]

Microcontroller ; 微控制器\n
AT91FR4081-40CI
型号: AT91FR4081-40CI
厂家: ETC    ETC
描述:

Microcontroller
微控制器\n

微控制器
文件: 总18页 (文件大小:128K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
Features  
Incorporates the ARM7TDMIARM® Thumb® Processor Core  
– High-performance 32-bit RISC Architecture  
– High-density 16-bit Instruction Set  
– Leader in MIPS/Watt  
– Embedded ICE (In-circuit Emulation)  
136K Bytes of On-chip SRAM  
– 32-bit Data Bus, Single-clock Cycle Access  
512K Words 16-bit Flash Memory (8 Mbits)  
– Single Voltage Read/Write, 110 ns Access Time  
– Sector Erase Architecture  
AT91 ARM®  
Thumb®  
Microcontrollers  
– Fast Word Program Time of 20 µs; Fast Sector Erase Time of 200 ms  
– Dual-plane Organization Allows Concurrent Read and Program/Erase  
– Erase Suspend Capability  
– Low-power Operation: 25 mA Active, 10 µA Standby  
– Data Polling, Toggle Bit and Ready/Busy End of Program Cycle Detection  
– Reset Input for Device Initialization  
– Sector Program Unlock Command  
– Factory-programmed AT91 Flash Uploader Software  
Fully Programmable External Bus Interface (EBI)  
– Up to 8 Chip Selects, Maximum External Address Space of 64M Bytes  
– Software Programmable 8/16-bit External Data Bus  
8-level Priority, Individually Maskable, Vectored Interrupt Controller  
– 4 External Interrupts, Including a High-priority Low-latency Interrupt Request  
32 Programmable I/O Lines  
AT91FR4081  
3-channel 16-bit Timer/Counter  
– 3 External Clock Inputs  
– 2 Multi-purpose I/O Pins per Channel  
2 USARTs  
– 2 Dedicated Peripheral Data Controller (PDC) Channels per USART  
Programmable Watchdog Timer  
Advanced Power-saving Features  
– CPU and Peripherals Can be De-activated Individually  
Fully Static Operation:  
– 0 Hz to 33 MHz at 2.7V; 0 Hz to 40 MHz at 3.0V  
2.7V to 3.6V Operating Range  
-40°C to 85°C Operating Temperature Range  
Available in a 120-ball BGA Package  
Description  
The AT91FR4081 is a member of the Atmel AT91 16/32-bit Microcontroller family,  
which is based on the ARM7TDMI processor core. The processor has a high-perfor-  
mance 32-bit RISC architecture with a high-density 16-bit instruction set and very low  
power consumption. In addition, a large number of internally banked registers result in  
very fast exception handling, making the device ideal for real-time control applications.  
The eight-level priority-vectored interrupt controller, together with the Peripheral Data  
Controller, significantly enhance real-time device performance.  
By combining the microcontroller, featuring more than 1 Mbit of on-chip SRAM and a  
wide range of peripheral functions, with 8 Mbits of Flash memory in a single compact  
120-ball BGA package, the Atmel AT91FR4081 provides a powerful, flexible and cost-  
effective solution to many compute-intensive embedded control applications and  
offers significant board size and system cost reductions.  
The Flash memory may be programmed via the JTAG/ICE interface or the factory-pro-  
grammed Flash Uploader using a single device supply, making the AT91FR4081 ideal  
for in-system programmable applications.  
Rev. 1386B–07/01  
Pin Configuration  
Figure 1. AT91FR4081 Pinout for 120-ball BGA Package (Top View)  
K
J
H
G
F
E
D
C
B
A
1
2
P21/TXD1  
NTRI  
P26  
NCS2  
P25  
MCKO  
P22  
RXD1  
GND  
NCS0  
TCK  
TDI  
TDO  
VDD  
MCKI  
VDD  
P17  
GND  
VDD  
P19  
P27  
NCS3  
P20  
SCK1  
NCS1  
TMS  
P23  
NWAIT  
GND  
P18  
P16  
3
A0  
NLB  
P24  
BMS  
NWR1  
NUB  
P13  
SCK0  
P15  
RXD0  
NWODVF  
4
P12  
FIQ  
P11  
IRQ2  
P14  
TXD0  
VDD  
GND  
VDD  
GND  
A1  
NRST  
GND  
5
P10  
IRQ1  
P9  
IRQ0  
P8  
TIOB2  
VDD  
6
P30/A22  
CS5  
P6  
P5  
P7  
TIOA2  
GND  
TCLK2 TIOB1  
7
P29/A21 P31/A23  
CS6  
P0  
P4  
P3  
CS4  
TCLK0 TIOA1 TCLK1  
8
P2  
GND  
VDD  
VDD  
GND  
GND  
VDD  
A3  
TIOB0  
A2  
9
NRD  
NOE  
NCSF  
GND  
D2  
VDD  
D8  
10  
11  
12  
13  
14  
15  
16  
P1  
TIOA0  
D0  
D9  
A4  
A7  
D1  
A5  
A8  
A6  
D11  
D5  
D3  
D10  
D4  
A18  
NBUSY  
A9  
VPP  
P28/A20  
CS7  
D12  
VDD  
D15  
A17  
A19  
NWR0  
NWE  
D14  
GND  
VDD  
NC  
D6  
NC  
GND  
D13  
NC  
VDD  
GND  
NC  
NRSTF  
A11  
A10  
VDD  
GND  
D7  
A12  
A16  
A13  
A15  
GND  
VDD  
A14  
2
AT91FR4081  
1386B–07/01  
AT91FR4081  
Pin Description  
Active  
Level  
Module  
Name  
Function  
Type  
Comments  
Valid after reset; do not reprogram A20 to  
I/O, as it is MSB of Flash address  
A0 - A23  
Address Bus  
Output  
D0 - D15  
NCS0 - NCS3  
CS4 - CS7  
NWR0  
NWR1  
NRD  
Data Bus  
I/O  
External Chip Select  
External Chip Select  
Lower Byte 0 Write Signal  
Upper Byte 1 Write Signal  
Read Signal  
Output  
Output  
Output  
Output  
Output  
Output  
Output  
Output  
Output  
Input  
Low  
High  
Low  
Low  
Low  
Low  
Low  
Low  
Low  
Low  
Used to select external devices  
A23 - A20 after reset  
Used in Byte Write option  
Used in Byte Write option  
Used in Byte Write option  
Used in Byte Select option  
Used in Byte Select option  
Used in Byte Select option  
Used in Byte Select option  
EBI  
NWE  
Write Enable  
NOE  
Output Enable  
NUB  
Upper Byte Select  
Lower Byte Select  
Wait Input  
NLB  
NWAIT  
Sampled during reset; must be driven low  
during reset for Flash to be used as boot  
memory  
BMS  
Boot Mode Select  
Input  
FIQ  
Fast Interrupt Request  
Input  
Input  
Input  
I/O  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
PIO-controlled after reset  
AIC  
IRQ0 - IRQ2  
External Interrupt Request  
TCLK0 - TCLK2 Timer External Clock  
Timer  
TIOA0 - TIOA2  
TIOB0 - TIOB2  
SCK0 - SCK1  
TXD0 - TXD1  
RXD0 - RXD1  
P0 - P31  
NWDOVF  
MCKI  
Multi-purpose Timer I/O Pin A  
Multi-purpose Timer I/O Pin B  
External Serial Clock  
Transmit Data Output  
Receive Data Input  
Parallel IO Line  
I/O  
I/O  
USART  
Output  
Input  
I/O  
PIO  
WD  
Watchdog Overflow  
Master Clock Input  
Master Clock Output  
Hardware Reset Input  
Tri-state Mode Select  
Test Mode Select  
Output  
Input  
Output  
Input  
Input  
Input  
Input  
Output  
Input  
Low  
Open drain  
Schmidt trigger  
Clock  
Reset  
MCKO  
NRST  
Low  
Low  
Schmidt trigger  
NTRI  
Sampled during reset  
TMS  
Schmidt trigger, internal pull-up  
Schmidt trigger, internal pull-up  
TDI  
Test Data Input  
ICE  
TDO  
Test Data Output  
TCK  
Test Clock  
Schmidt trigger, internal pull-up  
3
1386B07/01  
Active  
Level  
Module  
Name  
NCSF  
NBUSY  
NRSTF  
VDD  
Function  
Type  
Input  
Comments  
Flash Memory Select  
Flash Memory Busy Output  
Flash Memory Reset Input  
Power  
Low  
Low  
Low  
Enables Flash Memory when pulled low  
Flash RDY/BUSY signal; open-drain  
Resets Flash to standard operating mode  
Flash  
Output  
Input  
Memory  
Power  
All VDD and all GND pins MUST be  
connected to their respective supplies by  
the shortest route  
GND  
Ground  
Ground  
Power  
See AT49BV/LV8011(T) 8-megabit (512K x  
16/1M x 8) 3-volt Only Flash Memory  
Datasheet  
VPP  
Faster Program/Erase Voltage  
Power  
4
AT91FR4081  
1386B07/01  
TMS  
TDO  
TDI  
Embedded  
ICE  
ARM7TDMI Core  
TCK  
D0 - D15  
A1 - A20  
D0-D15  
VDD  
GND  
ASB  
A1-A19  
A0/NLB  
RAM  
8K Bytes  
NWR1/NUB  
NWAIT  
NCS0  
NRST  
Reset  
NCS1  
NRD/NOE  
NWR0/NWE  
P26/NCS2  
P27/NCS3  
P28/A20/CS7  
P29/A21/CS6  
P30/A22/CS5  
P31/A23/CS4  
ASB  
Controller  
MCKI  
Clock  
P25/MCKO  
AMBA Bridge  
APB  
P12/FIQ  
P9/IRQ0  
P10/IRQ1  
P11/IRQ2  
EBI User  
Interface  
AIC: Advanced  
Interrupt Controller  
OE  
WE  
GND  
VPP  
VCC  
VCCQ  
BYTE  
RESET  
GND  
VPP  
VDD  
VDD  
VDD  
NRSTF  
NBUSY  
NCSF  
P13/SCK0  
P14/TXD0  
P15/RXD0  
2 PDC  
Channels  
USART0  
USART1  
MCU  
AT91M40800  
FLASH MEMORY  
AT49BV1604/1614  
P20/SCK1  
P21/TXD1/NTRI  
P22/RXD1  
P
I
O
P
I
O
RDY/BUSY  
CE  
2 PDC  
Channels  
P16  
P17  
P0/TCLK0  
P3/TCLK1  
P6/TCLK2  
P1/TIOA0  
P2/TIOB0  
P4/TIOA1  
P5/TIOB1  
P7/TIOA2  
P8/TIOB2  
TC: Timer  
Counter  
P18  
PS: Power Saving  
P19  
P23  
P24/BMS  
TC0  
TC1  
TC2  
Chip ID  
WD: Watchdog Timer  
NWDOVF  
PIO: Parallel I/O Controller  
Architectural  
Overview  
The AT91FR4081 integrates Atmels AT91R40807 ARM Thumb processor and an  
AT49BV/LV8011 8-Mbit Flash memory die in a single compact 120-ball BGA device. The  
address, data and control signals, except the Flash memory enable, are internally  
interconnected.  
The AT91R40807 architecture consists of two main buses, the Advanced System Bus (ASB)  
and the Advanced Peripheral Bus (APB). Designed for maximum performance and controlled  
by the memory controller, the ASB interfaces the ARM7TDMI processor with the on-chip 32-bit  
memories, the External Bus Interface (EBI) and the AMBABridge. The AMBA Bridge drives  
the APB, which is designed for accesses to on-chip peripherals and optimized for low power  
consumption.  
The AT91FR4081 implements the ICE port of the ARM7TDMI processor on dedicated pins,  
offering a complete, low-cost and easy-to-use debug solution for target debugging.  
Memories  
The AT91FR4081 embeds 136K bytes of internal SRAM. The internal memory is directly con-  
nected to the 32-bit data bus and is single-cycle accessible. This provides maximum  
performance of 36 MIPS at 40 MHz by using the ARM instruction set of the processor, mini-  
mizing system power consumption and improving on the performance of separate memory  
solutions.  
The AT91FR4081 features an External Bus Interface (EBI), which enables connection of  
external memories and application-specific peripherals. The EBI supports 8- or 16-bit devices  
and can use two 8-bit devices to emulate a single 16-bit device. The EBI implements the early  
read protocol, enabling faster memory accesses than standard memory interfaces.  
The AT91FR4081 embeds a Flash memory organized as 512K 16-bit words, accessed via the  
EBI. Its main function is as a program memory. A 16-bit Thumb instruction can be loaded from  
Flash memory in a single access. Separate MCU and Flash memory reset inputs (NRST and  
NRSTF) are provided for maximum flexibility. The user is thus free to tailor the reset operation  
to the application.  
The AT91FR4081 integrates resident boot software called AT91 Flash Uploader software. The  
AT91 Flash Uploader software is able to upload program application software into its Flash  
memory.  
Peripherals  
The AT91FR4081 integrates several peripherals, which are classified as system or user  
peripherals.  
All on-chip peripherals are 32-bit accessible by the AMBA Bridge, and can be programmed  
with a minimum number of instructions. The peripheral register set is composed of control,  
mode, data, status and enable/disable/status registers.  
An on-chip Peripheral Data Controller (PDC) transfers data between the on-chip USARTs and  
on- and off-chip memories address space without processor intervention. Most importantly,  
the PDC removes the processor interrupt handling overhead, making it possible to transfer up  
to 64K contiguous bytes without reprogramming the start address, thus increasing the perfor-  
mance of the microcontroller, and reducing the power consumption.  
System Peripherals  
The External Bus Interface (EBI) controls the external memory or peripheral devices via an 8-  
or 16-bit databus and is programmed through the APB. Each chip select line has its own pro-  
gramming register.  
The Power-saving (PS) module implements the Idle Mode (ARM7TDMI core clock stopped  
until the next interrupt) and enables the user to adapt the power consumption of the microcon-  
troller to application requirements (independent peripheral clock control).  
The Advanced Interrupt Controller (AIC) controls the internal interrupt sources from the inter-  
nal peripherals and the four external interrupt lines (including the FIQ) to provide an interrupt  
6
AT91FR4081  
1386B07/01  
AT91FR4081  
and/or fast interrupt request to the ARM7TDMI. It integrates an 8-level priority controller, and,  
using the Auto-vectoring feature, reduces the interrupt latency time.  
The Parallel Input/Output Controller (PIO) controls up to 32 I/O lines. It enables the user to  
select specific pins for on-chip peripheral input/output functions, and general-purpose  
input/output signal pins. The PIO controller can be programmed to detect an interrupt on a sig-  
nal change from each line.  
The Watchdog (WD) can be used to prevent system lock-up if the software becomes trapped  
in a deadlock.  
The Special Function (SF) module integrates the Chip ID, the Reset Status and the Protect  
registers.  
User Peripherals  
Two USARTs, independently configurable, enable communication at a high baud rate in syn-  
chronous or asynchronous mode. The format includes start, stop and parity bits and up to 8  
data bits. Each USART also features a Timeout and a Time Guard register, facilitating the use  
of the two dedicated Peripheral Data Controller (PDC) channels.  
The 3-channel, 16-bit Timer Counter (TC) is highly programmable and supports capture or  
waveform modes. Each TC channel can be programmed to measure or generate different  
kinds of waves, and can detect and control two input/output signals. The TC has also 3 exter-  
nal clock signals.  
Associated Documentation  
Information  
Document Title  
Internal architecture of processor  
ARM/Thumb instruction sets  
Embedded in-circuit emulator  
ARM7TDMI (Thumb) Datasheet  
Mechanical characteristics  
Ordering Information  
AT91FR4081 Datasheet (this document)  
Microcontroller Mapping  
Microcontroller Peripheral operation  
Microcontroller Peripheral user interface  
AT91X40 Series Datasheet  
Timings  
MCU  
AT91R40807 Electrical Characteristics Datasheet  
DC characteristics  
Flash Memory  
AT49BV/LV8011(T) 8-megabit (512K x 16/1M x 8) 3-volt Only  
Flash Memory Datasheet  
7
1386B07/01  
Product  
Overview  
Power Supply  
The AT91FR4081 has a single power supply pin, VDD. The VDD pin supplies the I/O pads  
and the core. The supported voltage range on VDD is 2.7V to 3.6V.  
Input/Output  
Considerations  
The AT91FR4081 I/O pads accept voltage levels up to the power supply limit. After the reset,  
the microcontroller peripheral I/Os are initialized as inputs to provide the user with maximum  
flexibility. It is recommended that in any application phase, the inputs to the microcontroller be  
held at valid logic levels to minimize the power consumption.  
Master Clock  
The AT91FR4081 has a fully static design and works on the Master Clock (MCK), provided on  
the MCKI pin from an external source.  
The Master Clock is also provided as an output of the device on the pin MCKO, which is multi-  
plexed with a general purpose I/O line. While NRST is active, and after the reset, the MCKO is  
valid and outputs an image of the MCK signal. The PIO Controller must be programmed to use  
this pin as standard I/O line.  
Reset  
Reset restores the default states of the user interface registers (defined in the user interface of  
each peripheral), and forces the ARM7TDMI to perform the next instruction fetch from address  
zero. Except for the program counter the ARM7TDMI registers do not have defined reset  
states.  
NRST Pin  
NRST is active low-level input. It is asserted asynchronously, but exit from reset is synchro-  
nized internally to the MCK. The signal presented on MCKI must be active within the  
specification for a minimum of 10 clock cycles up to the rising edge of NRST to ensure correct  
operation. The first processor fetch occurs 80 clock cycles after the rising edge of NRST.  
Watchdog Reset  
The watchdog can be programmed to generate an internal reset. In this case, the reset has  
the same effect as the NRST pin assertion, but the pins BMS and NTRI are not sampled. Boot  
Mode and Tri-state Mode are not updated. If the NRST pin is asserted and the watchdog trig-  
gers the internal reset, the NRST pin has priority.  
Emulation  
Function  
Tri-state Mode  
The AT91FR4081 provides a Tri-state Mode, which is used for debug purposes in order to  
connect an emulator probe to an application board.  
This feature can also be used to program the embedded Flash within a standard NVM  
programmer.  
In Tri-state Mode, all the output pin drivers of the microcontroller are disabled. To enter Tri-  
state Mode, the pin NTRI must be held low during the last 80 clock cycles before the rising  
edge of NRST.  
For normal operation, the pin NTRI must be held high during reset by a resistor of up to 400K  
Ohm. NTRI is multiplexed with I/O line P21 and USART1 serial data transmit line TXD1. Stan-  
dard RS232 drivers generally contain internal 400K Ohm pull-up resistors. If TXD1 is  
connected to a device not including this pull-up, the user must make sure that a high level is  
tied on NTRI while NRST is asserted.  
8
AT91FR4081  
1386B07/01  
AT91FR4081  
JTAG/ICE Debug  
ARM standard embedded In-circuit Emulation is supported via the JTAG/ICE port. The pins  
TDI, TDO, TCK and TMS are dedicated to this debug function and can be connected to a host  
computer via the external ICE interface. In ICE Debug Mode, the ARM7TDMI core responds  
with a non-JTAG chip ID that identifies the microcontroller. This is not fully IEEE1149.1  
compliant.  
Memory Controller  
The ARM7TDMI processor address space is 4G bytes. The memory controller decodes the  
internal 32-bit address bus and defines three address spaces:  
Internal memories in the four lowest megabytes  
Middle space reserved for the external devices (memory or peripherals) controlled by the  
EBI  
Internal peripherals in the four highest megabytes  
In any of these address spaces, the ARM7TDMI operates in Little-Endian mode only.  
Internal Memories  
The AT91FR4081 integrates internal SRAM that is 32 bits wide and single-clock cycle  
accessible.  
The AT91FR4081 integrates a primary 8-Kbyte SRAM bank. This memory bank is mapped at  
address 0x0 (after the remap command), allowing ARM7TDMI exception vectors between 0x0  
and 0x20 to be modified by the software. The rest of the bank can be used for stack allocation  
(to speed up context saving and restoring), or as data and program storage for critical  
algorithms.  
The AT91FR4081 also integrates an extended memory bank of 128K bytes at address 0x0010  
0000. Placing the SRAM on-chip and using the 32-bit data bus bandwidth maximizes the  
microcontroller performance and minimizes the system power consumption. The 32-bit bus  
increases the effectiveness of the use of the ARM instruction set, and the ability of processing  
data that is wider than 16-bit, thus making optimal use of the ARM7TDMI advanced  
performance.  
Being able to dynamically update application software in the 128-Kbyte SRAM adds an extra  
dimension to the AT91FR4081. In order to prevent accidental write to the extended SRAM  
while the application is running, a write detection feature has been implemented.  
The AT91FR4081 also integrates a 8-Mbit Flash memory that is accessed via the External  
Bus Interface. All data, address and control lines, except for the Chip Select signal, are con-  
nected within the device.  
Boot Mode Select  
The ARM reset vector is at address 0x0. After the NRST line is released, the ARM7TDMI exe-  
cutes the instruction stored at this address. This means that this address must be mapped in  
nonvolatile memory after the reset. The input level on the BMS pin during the last 10 clock  
cycles before the rising edge of the NRST selects the type of boot memory (see Table 1). If the  
embedded Flash memory is to be used as boot memory, the BMS input must be pulled down  
externally.  
The pin BMS is multiplexed with the I/O line P24 that can be programmed after reset like any  
standard PIO line.  
Table 1. Boot Mode Select  
BMS  
Boot Memory  
1
0
Internal 32-bit extended SRAM  
External 16-bit memory on NCS0  
9
1386B07/01  
Remap Command  
The ARM vectors (Reset, Abort, Data Abort, Prefetch Abort, Undefined Instruction, Interrupt,  
Fast Interrupt) are mapped from address 0x0 to address 0x20. In order to allow these vectors  
to be redefined dynamically by the software, the AT91FR4081 uses a remap command that  
enables switching between the boot memory and the internal primary SRAM bank addresses.  
The remap command is accessible through the EBI User Interface by writing one in RCB of  
EBI_RCR (Remap Control Register). Performing a remap command is mandatory if access to  
the other external devices (connected to chip selects 1 to 7) is required. The remap operation  
can only be changed back by an internal reset or an NRST assertion.  
Abort Control  
The abort signal providing a Data Abort or a Prefetch Abort exception to the ARM7TDMI is  
asserted when accessing an undefined address in the EBI address space.  
No abort is generated when reading the internal memory or by accessing the internal peripher-  
als, whether the address is defined or not.  
External Bus Interface  
The External Bus Interface handles the accesses between addresses 0x0040 0000 and  
0xFFC0 0000. It generates the signals that control access to the external devices, and can be  
configured from eight 1-Mbyte banks up to four 16-Mbyte banks. It supports byte, half-word  
and word aligned accesses.  
For each of these banks, the user can program:  
Number of wait states  
Number of data float times (wait time after the access is finished to prevent any bus  
contention in case the device is too long in releasing the bus)  
Data bus width (8-bit or 16-bit)  
With a 16-bit wide data bus, the user can program the EBI to control one 16-bit device (Byte  
Access Select Mode) or two 8-bit devices in parallel that emulate a 16-bit memory (Byte  
Write Access Mode).  
The External Bus Interface features also the Early Read Protocol, configurable for all the  
devices, that significantly reduces access time requirements on an external device in the case  
of single-clock cycle access.  
In the AT91FR4081, the External Bus Interface connects internally to the Flash memory.  
Flash Memory  
The 8-Mbit Flash memory is organized as 524,288 words of 16 bits each. The Flash memory  
is addressed as 16-bit words via the EBI. It uses address lines A1 - A19.  
The address, data and control signals, except the Flash memory enable, are internally inter-  
connected. The user should connect the Flash memory enable (NCSF) to one of the active-  
low chip selects on the EBI; NCS0 must be used if the Flash memory is to be the boot mem-  
ory. In addition, if the Flash memory is to be used as boot memory, the BMS input must be  
pulled down externally in order for the processor to perform correct 16-bit fetches after reset.  
During boot, the EBI must be configured with correct number of standard wait states. For  
example, five standard wait states are required when the microcontroller is running at 40 MHz.  
The user must ensure that all VDD and all GND pins are connected to their respective sup-  
plies by the shortest route. The Flash memory powers-on in the read mode. Command  
sequences are used to place the device in other operating modes, such as program and  
erase.  
A separate Flash memory reset input pin (NRSTF) is provided for maximum flexibility,  
enabling the reset operation to adapt to the application. When this input is at a logic high level,  
the memory is in its standard operating mode; a low level on this input halts the current mem-  
ory operation and puts its outputs in a high impedance state.  
The Flash memory features data polling to detect the end of a program cycle. While a program  
cycle is in progress, an attempted read of the last word written will return the complement of  
the written data on I/O7. An open-drain NBUSY output pin provides another method of detect-  
10  
AT91FR4081  
1386B07/01  
AT91FR4081  
ing the end of a program or erase cycle. This pin is pulled low while program and erase cycles  
are in progress and is released at the completion of the cycle. A toggle bit feature provides a  
third means of detecting the end of a program or erase cycle.  
The Flash memory is segmented into two memory planes. Reads from one memory plane  
may be performed even while program or erase functions are being executed in the other  
memory plane. This feature enhances performance by not requiring the system to wait for a  
program or erase cycle to complete before a read may be performed.  
The Flash memory is divided into 22 sectors for erase operations. To further enhance device  
flexibility, an Erase Suspend feature is offered. This feature puts the erase cycle on hold for an  
indefinite period and allows the user to read data from, or to write data to, any other sector  
within the same memory plane. There is no need to suspend an erase cycle if the data to be  
read is in the other memory plane.  
The device has the capability to protect data stored in any sector. Once the data protection for  
a sector is enabled, the data in that sector cannot be changed while input levels lie between  
ground and VDD.  
An optional VPP pin is available to enhance program/erase times. See the  
AT49BV/LV8011(T) 8-megabit (512K x 16/1M x 8) 3-volt Only Flash Memory Datasheet for  
further detail.  
A 6-byte command sequence (Bypass Unlock) allows the device to be written to directly, using  
single pulses on the write control lines. This mode (Single-pulse Programming) is exited by  
powering down the device or by pulsing the NRSTF pin low for a minimum of 50 ns and then  
bringing it back to VDD.  
The following hardware features protect against inadvertent programming of the Flash  
memory:  
VDD Sense if VDD is below 1.8V (typical), the program function is inhibited.  
VDD Power-on Delay once VDD has reached the VDD sense level, the device will  
automatically time out 10 ms (typically) before programming.  
Program Inhibit holding any one of OE low, CE high or WE high inhibits program cycles.  
Noise Filter pulses of less than 15 ns (typical) on the WE or CE inputs will not initiate a  
program cycle.  
11  
1386B07/01  
AT91 Flash  
Uploader Software  
All Flash-based AT91 devices are delivered with a pre-programmed software called the AT91  
Flash Uploader, which resides in the first sector of the embedded Flash. The Flash Uploader  
allows programming to the embedded flash through a serial port. Either of the on-chip  
USARTs can be used by the Flash Uploader.  
Target System  
AT91F40816  
Embedded  
NCSF  
Flash  
Programming System  
AT91M40800  
USART0  
NCS0  
Serial  
Port  
RS232  
Driver  
USART1  
Flash Uploader  
Operations  
The Flash Uploader requires NCS0 to be connected to NCSF and a valid clock to be applied  
to MCKI. The chip select line loop allows the ARM Core to boot from the embedded Flash  
when the reset is de-asserted. Next, the Flash Uploader immediately recopies itself in the  
internal SRAM and jumps into it. The following operation requires this memory resource only.  
External accesses are performed only to program the Flash.  
When starting, PIO input change interrupts are initialized on the RXD lines of both USARTs.  
When an interrupt occurs, a Timer Counter channel is started. When the next input change is  
detected on the RXD line, the Timer Counter channel is stopped. This is how the first charac-  
ter length is measured and the USART can be initiated by taking into account the ratio  
between the device master clock speed and the actual communication baud rate speed.  
The Programming System, then, can send commands and data following a proprietary proto-  
col for the Flash device to be programmed. It is up to the Programming System to erase and  
program the first sector of the Flash lastly, in order to reduce, at a minimum, the risk that the  
Flash Uploader is erased and the power supply shuts down.  
In the event that the Flash Uploader is erased from the first sector while the new final applica-  
tion is not yet programmed, and while the target system power supply is switched off, it would  
lead to a non-recoverable error and the AT91FR4081 could not be re-programmed by using  
the Flash Uploader.  
Programming System  
Atmel provides a free Host Loader that runs on an IBM compatible PC under Windows®95 or  
Windows®98 operating system. It can be downloaded from the Atmel web site and requires  
only a serial cable to connect the Host to the Target.  
12  
AT91FR4081  
1386B07/01  
AT91FR4081  
Communications can be selected on either COM1 or COM2 and the serial link speed is limited  
to 115200 bauds. Because the serial link is the bottleneck in this configuration, the Flash pro-  
gramming lasts 110 seconds per Mbyte.  
Programming time can be reached by using a faster programming system. An EB40 (AT91  
Evaluation Board for the x40 Series Microcontroller) is capable of running a serial link at up to  
500 Kbits/sec and can match the fastest programming allowed by the Flash, for example,  
about 40 seconds per Mbyte when the word programming becomes the bottleneck.  
Peripherals  
The AT91FR4081 peripherals are connected to the 32-bit wide Advanced Peripheral Bus.  
Peripheral registers are only word accessible. Byte and half-word accesses are not supported.  
If a byte or a half-word access is attempted, the memory controller automatically masks the  
lowest address bits and generates a word access.  
Each peripheral has a 16-Kbyte address space allocated (the AIC only has a 4-Kbyte address  
space).  
Peripheral Registers  
The following registers are common to all peripherals:  
Control Register write only register that triggers a command when a one is written to the  
corresponding position at the appropriate address. Writing a zero has no effect.  
Mode Register read/write register that defines the configuration of the peripheral. Usually  
has a value of 0x0 after a reset.  
Data Registers read and/or write register that enables the exchange of data between the  
processor and the peripheral.  
Status Register read only register that returns the status of the peripheral.  
Enable/Disable/Status Registers are shadow command registers. Writing a one in the  
Enable Register sets the corresponding bit in the Status Register. Writing a one in the  
Disable Register resets the corresponding bit and the result can be read in the Status  
Register. Writing a bit to zero has no effect. This register access method maximizes the  
efficiency of bit manipulation, and enables modification of a register with a single non-  
interruptible instruction, replacing the costly read-modify-write operation.  
Unused bits in the peripheral registers must be written at 0 for upward compatibility. These bits  
read 0.  
Peripheral Interrupt  
Control  
The Interrupt Control of each peripheral is controlled from the status register using the inter-  
rupt mask. The status register bits are ANDed to their corresponding interrupt mask bits and  
the result is then ORed to generate the Interrupt Source signal to the Advanced Interrupt  
Controller.  
The interrupt mask is read in the Interrupt Mask Register and is modified with the Interrupt  
Enable Register and the Interrupt Disable Register. The enable/disable/status (or mask)  
makes it possible to enable or disable peripheral interrupt sources with a non-interruptible sin-  
gle instruction. This eliminates the need for interrupt masking at the AIC or Core level in real-  
time and multi-tasking systems.  
Peripheral Data  
Controller  
The AT91FR4081 has a 4-channel PDC dedicated to the two on-chip USARTs. One PDC  
channel is dedicated to the receiver and one to the transmitter of each USART.  
The user interface of a PDC channel is integrated in the memory space of each USART. It  
contains a 32-bit Address Pointer Register (RPR or TPR) and a 16-bit Transfer Counter Reg-  
ister (RCR or TCR). When the programmed number of transfers are performed, a status bit  
indicating the end of transfer is set in the USART Status Register and an interrupt can be  
generated.  
13  
1386B07/01  
System  
Peripherals  
PS: Power-saving  
The Power-saving feature optimizes power consumption, enabling the software to stop the  
ARM7TDMI clock (idle mode), restarting it when the module receives an interrupt (or reset). It  
also enables on-chip peripheral clocks to be enabled and disabled individually, matching  
power consumption and application needs.  
AIC: Advanced  
Interrupt Controller  
The Advanced Interrupt Controller has an 8-level priority, individually maskable, vectored  
interrupt controller, and drives the NIRQ and NFIQ pins of the ARM7TDMI from:  
The external fast interrupt line (FIQ)  
The three external interrupt request lines (IRQ0 - IRQ2)  
The interrupt signals from the on-chip peripherals  
The AIC is extensively programmable offering maximum flexibility, and its vectoring features  
reduce the real-time overhead in handling interrupts.  
The AIC also features a spurious vector detection feature, which reduces spurious interrupt  
handling to a minimum, and a protect mode that facilitates the debug capabilities.  
PIO: Parallel I/O  
Controller  
The AT91FR4081 has 32 programmable I/O lines. Six pins are dedicated as general-purpose  
I/O pins. Other I/O lines are multiplexed with an external signal of a peripheral to optimize the  
use of available package pins. The PIO controller enables generation of an interrupt on input  
change and insertion of a simple input glitch filter on any of the PIO pins.  
WD: Watchdog  
The Watchdog is built around a 16-bit counter and is used to prevent system lock-up if the  
software becomes trapped in a deadlock. It can generate an internal reset or interrupt, or  
assert an active level on the dedicated pin NWDOVF. All programming registers are pass-  
word-protected to prevent unintentional programming.  
SF: Special Function  
The AT91FR4081 provides registers that implement the following special functions.  
Chip Identification  
RESET Status  
Protect Mode  
14  
AT91FR4081  
1386B07/01  
AT91FR4081  
User Peripherals  
USART: Universal  
Synchronous/  
The AT91FR4081 provides two identical, full-duplex, universal synchronous/asynchronous  
receiver/transmitters.  
Asynchronous  
Receiver Transmitter  
Each USART has its own baud rate generator, and two dedicated Peripheral Data Controller  
channels. The data format includes a start bit, up to 8 data bits, an optional programmable par-  
ity bit and up to 2 stop bits.  
The USART also features a Receiver Timeout register, facilitating variable length frame sup-  
port when it is working with the PDC, and a Time-guard register, used when interfacing with  
slow remote equipment.  
TC: Timer Counter  
The AT91FR4081 features a Timer Counter block that includes three identical 16-bit timer  
counter channels. Each channel can be independently programmed to perform a wide range  
of functions including frequency measurement, event counting, interval measurement, pulse  
generation, delay timing and pulse width modulation.  
The Timer Counter can be used in Capture or Waveform mode, and all three counter channels  
can be started simultaneously and chained together.  
15  
1386B07/01  
Ordering Information  
Speed  
(MHz)  
Power Supply  
Temperature  
Operating Range  
Operating Range  
Ordering Code  
Package  
33  
40  
2.7V to 3.3V  
3.0V to 3.6V  
Industrial  
(-40°C to 85°C)  
AT91FR4081-33CI  
BGA 120  
16  
AT91FR4081  
1386B07/01  
AT91FR4081  
Package Outline  
Figure 2. 120-ball BGA Package  
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16  
A
B
C
D
E
F
TOP VIEW  
G
H
J
K
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16  
K
J
H
G
F
BOTTOM VIEW  
E
D
C
B
A
+
0.51 (120)  
1.00 0.15  
+
15.00 0.15  
+
17.00 0.15  
All dimensions in millimeters  
SIDE VIEW  
Thermal Resistance Data  
Symbol  
Parameter  
Condition  
Package  
Typ  
Units  
Junction-to-  
120-BGA  
36.6  
θJA  
ambient thermal  
resistance  
Still Air  
°C/W  
Junction-to-case  
thermal resistance  
120-BGA  
11  
θJC  
17  
1386B07/01  
Atmel Headquarters  
Atmel Product Operations  
Corporate Headquarters  
2325 Orchard Parkway  
San Jose, CA 95131  
TEL (408) 441-0311  
FAX (408) 487-2600  
Atmel Colorado Springs  
1150 E. Cheyenne Mtn. Blvd.  
Colorado Springs, CO 80906  
TEL (719) 576-3300  
FAX (719) 540-1759  
Europe  
Atmel Grenoble  
Atmel SarL  
Avenue de Rochepleine  
BP 123  
Route des Arsenaux 41  
Casa Postale 80  
CH-1705 Fribourg  
Switzerland  
38521 Saint-Egreve Cedex, France  
TEL (33) 4-7658-3000  
FAX (33) 4-7658-3480  
TEL (41) 26-426-5555  
FAX (41) 26-426-5500  
Atmel Heilbronn  
Theresienstrasse 2  
POB 3535  
Asia  
Atmel Asia, Ltd.  
Room 1219  
D-74025 Heilbronn, Germany  
TEL (49) 71 31 67 25 94  
FAX (49) 71 31 67 24 23  
Chinachem Golden Plaza  
77 Mody Road Tsimhatsui  
East Kowloon  
Hong Kong  
TEL (852) 2721-9778  
FAX (852) 2722-1369  
Atmel Nantes  
La Chantrerie  
BP 70602  
44306 Nantes Cedex 3, France  
TEL (33) 0 2 40 18 18 18  
FAX (33) 0 2 40 18 19 60  
Japan  
Atmel Japan K.K.  
9F, Tonetsu Shinkawa Bldg.  
1-24-8 Shinkawa  
Chuo-ku, Tokyo 104-0033  
Japan  
Atmel Rousset  
Zone Industrielle  
13106 Rousset Cedex, France  
TEL (33) 4-4253-6000  
FAX (33) 4-4253-6001  
TEL (81) 3-3523-3551  
FAX (81) 3-3523-7581  
Atmel Smart Card ICs  
Scottish Enterprise Technology Park  
East Kilbride, Scotland G75 0QR  
TEL (44) 1355-357-000  
FAX (44) 1355-242-743  
Fax-on-Demand  
North America:  
e-mail  
literature@atmel.com  
1-(800) 292-8635  
Web Site  
http://www.atmel.com  
International:  
1-(408) 441-0732  
BBS  
1-(408) 436-4309  
© Atmel Corporation 2001.  
Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Companys standard warranty  
which is detailed in Atmels Terms and Conditions located on the Companys web site. The Company assumes no responsibility for any errors  
which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does  
not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted  
by the Company in connection with the sale of Atmel products, expressly or by implication. Atmels products are not authorized for use as critical  
components in life support devices or systems.  
All delivered sources are free of charge and can be copied or modified without authorization. The software is delivered as is, without warranty or  
condition of any kind, either express, implied or statutory. This includes, without limitation, any warranty or condition with respect to merchant-  
ability or fitness for any particular purpose, or against the infringements of intellectual property rights of others.  
ARM®, Thumb®, ARM7TDMI, AMBAand ARM Powered® are trademarks (or registered trademarks) of ARM  
Printed on recycled paper.  
Limited; IBM® is a registered trademark of IBM Corporation; Windows® is a registered trademark of Microsoft  
Corporation.  
1386B-07/01/0M  
Terms and product names in this document may be trademarks of others.  

相关型号:

AT91M40008

Incorporates the ARM7TDMI⑩ ARM?? Thumb?? Processor Core
ATMEL

AT91M40400

16/32-Bit Microcontroller
ATMEL

AT91M40400-12AC-1.8

RISC Microcontroller, 32-Bit, 12MHz, CMOS, PQFP100, TQFP-100
ATMEL

AT91M40400-25AC

32-Bit Microcontroller
ETC

AT91M40400-25AI

32-Bit Microcontroller
ETC

AT91M40400-33AC

32-Bit Microcontroller
ETC

AT91M40400_99

AT91 ARM Thumb Microcontrollers
ATMEL

AT91M40416-25CC

RISC Microcontroller, 32-Bit, FLASH, ARM7 CPU, 25MHz, CMOS, PBGA120, BGA-120
ATMEL

AT91M40416-25CI

RISC Microcontroller, 32-Bit, FLASH, ARM7 CPU, 25MHz, CMOS, PBGA120, BGA-120
ATMEL

AT91M40416-25CI

RISC Microcontroller, 32-Bit, FLASH, 25MHz, PBGA120
MICROCHIP

AT91M40800

AT91 ARM Thumb Microcontrollers
ATMEL

AT91M40800-33AC

RISC Microcontroller, 32-Bit, 33MHz, CMOS, PQFP100, TQFP-100
ATMEL