ATmega103.PDF

(1982 KB) Pobierz
Features
Utilizes the AVR ® RISC Architecture
AVR – High-performance and Low-power RISC Architecture
– 121 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General-purpose Working Registers + Peripheral Control Registers
– Up to 6 MIPS Throughput at 6 MHz
Data and Nonvolatile Program Memory
– 128K Bytes of In-System Programmable Flash
Endurance: 1,000 Write/Erase Cycles
– 4K Bytes Internal SRAM
– 4K Bytes of In-System Programmable EEPROM
Endurance: 100,000 Write/Erase Cycles
– Programming Lock for Flash Program and EEPROM Data Security
– SPI Interface for In-System Programming
Peripheral Features
– On-chip Analog Comparator
– Programmable Watchdog Timer with On-chip Oscillator
– Programmable Serial UART
– Master/Slave SPI Serial Interface
– Real-time Counter (RTC) with Separate Oscillator
– Two 8-bit Timer/Counters with Separate Prescaler and PWM
– Expanded 16-bit Timer/Counter System with Separate Prescaler, Compare,
Capture Modes and Dual 8-, 9- or 10-bit PWM
– Programmable Watchdog Timer with On-chip Oscillator
– 8-channel, 10-bit ADC
Special Microcontroller Features
– Low-power Idle, Power Save and Power-down Modes
– Software Selectable Clock Frequency
– External and Internal Interrupt Sources
Specifications
– Low-power, High-speed CMOS Process Technology
– Fully Static Operation
Power Consumption at 4 MHz, 3V, 25 ° C
– Active: 5.5 mA
– Idle Mode: 1.6 mA
– Power-down Mode: < 1 µA
I/O and Packages
– 32 Programmable I/O Lines, 8 Output Lines, 8 Input Lines
– 64-lead TQFP
Operating Voltages
– 2.7 - 3.6V (ATmega103L)
– 4.0 - 5.5V (ATmega103)
Speed Grades
– 0 - 4 MHz (ATmega103L)
– 0 - 6 MHz (ATmega103)
8-bit
Microcontroller
with 128K Bytes
In-System
Programmable
Flash
ATmega103
ATmega103L
Preliminary
Rev. 0945F–11/00
1
775772831.307.png 775772831.318.png 775772831.329.png 775772831.340.png 775772831.001.png 775772831.012.png 775772831.023.png 775772831.034.png 775772831.045.png 775772831.056.png
 
 
775772831.087.png
 
 
775772831.118.png 775772831.129.png 775772831.140.png 775772831.151.png 775772831.162.png 775772831.173.png
 
Pin Configuration
TQFP
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
(AD2) PA2
49
32
PD7 (T2)
(AD1) PA1
50
31
PD6 (T1)
PD5
PD4 (IC1)
PD3 (INT3)
PD2 (INT2)
PD1 (INT1)
PD0 (INT0)
XTAL1
XTAL2
(AD0) PA0
51
30
VCC
GND
52
53
29
28
27
(ADC7) PF7
54
(ADC6) PF6
55
26
(ADC5) PF5
56
25
24
(ADC4) PF4
57
(ADC3) PF3
58
23
(ADC2) PF2
59
22
GND
VCC
(ADC1) PF1
21
60
61
61
62
(ADC0) PF0
20
RESET
AREF
AGND
AVCC
62
63
TOSC1
19
INDEX CORNER
63
664
TOSC2
18
PB7 (OC2/PWM2)
17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description
The ATmega103(L) is a low-power, CMOS, 8-bit microcontroller based on the AVR RISC architecture. By executing power-
ful instructions in a single clock cycle, the ATmega103(L) achieves throughputs approaching 1 MIPS per MHz, allowing the
system designer to optimize power consumption versus processing speed.
The AVR core is based on an enhanced RISC architecture that combines a rich instruction set with 32 general-purpose
working registers. All the 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 conventional CISC microcontrollers.
The ATmega103(L) provides the following features: 128K bytes of In-System Programmable Flash, 4K bytes EEPROM,
4K bytes SRAM, 32 general-purpose I/O lines, 8 input lines, 8 output lines, 32 general-purpose working registers, real-time
counter (RTC), 4 flexible timer/counters with compare modes and PWM, UART, programmable watchdog timer with inter-
nal oscillator, an SPI serial port and 3 software-selectable power saving modes. The Idle mode stops the CPU while
allowing the SRAM, timer/counters, SPI port 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 timer oscillator continues to run, allowing the user to maintain a timer base while the rest of the
device is sleeping.
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 a serial interface or by a conventional nonvolatile memory
programmer. By combining an 8-bit RISC CPU with a large array of ISP Flash on a monolithic chip, the Atmel
ATmega103(L) is a powerful microcontroller that provides a highly flexible and cost-effective solution to many embedded
control applications.
The ATmega103(L) AVR is supported with a full suite of program and system development tools including: C compilers,
macro assemblers, program debugger/simulators, in-circuit emulators and evaluation kits.
ATmega103/103L
2
775772831.194.png 775772831.205.png 775772831.216.png 775772831.227.png 775772831.238.png 775772831.249.png 775772831.260.png 775772831.270.png
ATmega103/103L
Block Diagram
Figure 1. The ATmega103(L) Block Diagram
PF0 - PF7
PA0 - PA7
PC0 - PC7
VCC
GND
PORTF BUFFERS
PORTA DRIVER/BUFFERS
PORTC DRIVERS
AVCC
DATA REGISTER
PORTC
DATA REGISTER
PORTA
DATA DIR.
REG. PORTA
ANALOG MUX
ADC
8-BIT DATA BUS
AGND
XTAL1
AREF
INTERNAL
OSCILLATOR
OSCILLATOR
XTAL1
PROGRAM
COUNTER
STACK
POINTER
WATCHDOG
TIMER
TOSC2
OSCILLATOR
TIMING AND
CONTROL
PROGRAM
FLASH
MCU CONTROL
REGISTER
TOSC1
SRAM
RESET
ALE
WR
RD
INSTRUCTION
REGISTER
TIMER/
COUNTERS
GENERAL
PURPOSE
REGISTERS
X
INSTRUCTION
DECODER
INTERRUPT
UNIT
Y
Z
CONTROL
LINES
ALU
EEPROM
PEN
STATUS
REGISTER
PROGRAMMING
LOGIC
SPI
UART
DATA REGISTER
PORTE
DATA DIR.
REG. PORTE
DATA REGISTER
PORTB
DATA DIR.
REG. PORTB
DATA REGISTER
PORTD
DATA DIR.
REG. PORTD
VCC
PORTE DRIVER/BUFFERS
PORTB DRIVER/BUFFERS
PORTD DRIVER/BUFFERS
GND
PE0 - PE7
PB0 - PB7
PD0 - PD7
3
775772831.280.png 775772831.284.png 775772831.285.png 775772831.286.png 775772831.287.png 775772831.288.png 775772831.289.png 775772831.290.png 775772831.291.png 775772831.292.png 775772831.293.png 775772831.294.png 775772831.295.png 775772831.296.png 775772831.297.png 775772831.298.png 775772831.299.png 775772831.300.png 775772831.301.png 775772831.302.png 775772831.303.png 775772831.304.png 775772831.305.png 775772831.306.png 775772831.308.png 775772831.309.png 775772831.310.png 775772831.311.png 775772831.312.png 775772831.313.png 775772831.314.png 775772831.315.png 775772831.316.png 775772831.317.png 775772831.319.png 775772831.320.png 775772831.321.png 775772831.322.png 775772831.323.png 775772831.324.png 775772831.325.png 775772831.326.png 775772831.327.png 775772831.328.png 775772831.330.png 775772831.331.png 775772831.332.png 775772831.333.png 775772831.334.png 775772831.335.png 775772831.336.png 775772831.337.png 775772831.338.png 775772831.339.png 775772831.341.png 775772831.342.png 775772831.343.png 775772831.344.png 775772831.345.png 775772831.346.png 775772831.347.png 775772831.348.png 775772831.349.png 775772831.350.png 775772831.002.png 775772831.003.png 775772831.004.png 775772831.005.png 775772831.006.png 775772831.007.png 775772831.008.png 775772831.009.png 775772831.010.png 775772831.011.png 775772831.013.png 775772831.014.png 775772831.015.png 775772831.016.png 775772831.017.png 775772831.018.png 775772831.019.png 775772831.020.png 775772831.021.png 775772831.022.png 775772831.024.png 775772831.025.png 775772831.026.png 775772831.027.png 775772831.028.png 775772831.029.png 775772831.030.png 775772831.031.png 775772831.032.png 775772831.033.png 775772831.035.png 775772831.036.png 775772831.037.png 775772831.038.png 775772831.039.png 775772831.040.png 775772831.041.png 775772831.042.png 775772831.043.png 775772831.044.png 775772831.046.png 775772831.047.png 775772831.048.png 775772831.049.png 775772831.050.png 775772831.051.png 775772831.052.png 775772831.053.png 775772831.054.png 775772831.055.png 775772831.057.png 775772831.058.png 775772831.059.png 775772831.060.png 775772831.061.png 775772831.062.png 775772831.063.png 775772831.064.png 775772831.065.png 775772831.066.png 775772831.067.png 775772831.068.png 775772831.069.png 775772831.070.png 775772831.071.png 775772831.072.png 775772831.073.png 775772831.074.png 775772831.075.png 775772831.076.png 775772831.077.png 775772831.078.png 775772831.079.png 775772831.080.png 775772831.081.png 775772831.082.png 775772831.083.png 775772831.084.png 775772831.085.png 775772831.086.png 775772831.088.png 775772831.089.png 775772831.090.png 775772831.091.png 775772831.092.png 775772831.093.png 775772831.094.png 775772831.095.png 775772831.096.png 775772831.097.png 775772831.098.png 775772831.099.png 775772831.100.png 775772831.101.png 775772831.102.png 775772831.103.png 775772831.104.png 775772831.105.png 775772831.106.png 775772831.107.png 775772831.108.png 775772831.109.png 775772831.110.png 775772831.111.png 775772831.112.png 775772831.113.png 775772831.114.png 775772831.115.png 775772831.116.png 775772831.117.png 775772831.119.png 775772831.120.png 775772831.121.png 775772831.122.png 775772831.123.png 775772831.124.png 775772831.125.png 775772831.126.png 775772831.127.png 775772831.128.png 775772831.130.png 775772831.131.png 775772831.132.png 775772831.133.png 775772831.134.png 775772831.135.png 775772831.136.png 775772831.137.png 775772831.138.png 775772831.139.png 775772831.141.png 775772831.142.png 775772831.143.png 775772831.144.png 775772831.145.png 775772831.146.png 775772831.147.png 775772831.148.png 775772831.149.png 775772831.150.png 775772831.152.png 775772831.153.png 775772831.154.png 775772831.155.png 775772831.156.png 775772831.157.png 775772831.158.png 775772831.159.png 775772831.160.png 775772831.161.png 775772831.163.png 775772831.164.png 775772831.165.png 775772831.166.png 775772831.167.png 775772831.168.png 775772831.169.png 775772831.170.png 775772831.171.png 775772831.172.png 775772831.174.png 775772831.175.png 775772831.176.png 775772831.177.png 775772831.178.png 775772831.179.png 775772831.180.png 775772831.181.png 775772831.182.png 775772831.183.png 775772831.184.png 775772831.185.png 775772831.186.png 775772831.187.png 775772831.188.png 775772831.189.png 775772831.190.png 775772831.191.png 775772831.192.png 775772831.193.png 775772831.195.png 775772831.196.png 775772831.197.png 775772831.198.png 775772831.199.png 775772831.200.png 775772831.201.png 775772831.202.png 775772831.203.png 775772831.204.png 775772831.206.png 775772831.207.png 775772831.208.png 775772831.209.png 775772831.210.png 775772831.211.png 775772831.212.png 775772831.213.png 775772831.214.png 775772831.215.png 775772831.217.png 775772831.218.png 775772831.219.png 775772831.220.png 775772831.221.png 775772831.222.png 775772831.223.png 775772831.224.png 775772831.225.png 775772831.226.png 775772831.228.png 775772831.229.png 775772831.230.png 775772831.231.png 775772831.232.png 775772831.233.png 775772831.234.png 775772831.235.png 775772831.236.png 775772831.237.png 775772831.239.png 775772831.240.png 775772831.241.png 775772831.242.png 775772831.243.png 775772831.244.png 775772831.245.png 775772831.246.png 775772831.247.png 775772831.248.png 775772831.250.png 775772831.251.png 775772831.252.png 775772831.253.png 775772831.254.png 775772831.255.png 775772831.256.png 775772831.257.png 775772831.258.png 775772831.259.png 775772831.261.png 775772831.262.png 775772831.263.png 775772831.264.png 775772831.265.png 775772831.266.png 775772831.267.png 775772831.268.png
 
Pin Descriptions
VCC
Supply voltage
GND
Ground
Port A (PA7..PA0)
Port A is an 8-bit bi-directional I/O port. Port pins can provide internal pull-up resistors (selected for each bit). The Port A
output buffers can sink 20 mA and can drive LED displays directly. When pins PA0 to PA7 are used as inputs and are
externally pulled low, they will source current if the internal pull-up resistors are activated.
Port A serves as Multiplexed Address/Data bus when using external SRAM.
The Port A pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port B (PB7..PB0)
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors. The Port B output buffers can sink 20 mA. As inputs,
Port B pins that are externally pulled low, will source current if the pull-up resistors are activated.
Port B also serves the functions of various special features.
The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port C (PC7..PC0)
Port C is an 8-bit output port. The Port C output buffers can sink 20 mA.
Port C also serves as Address output when using external SRAM.
Since Port C is an output only port, the Port C pins are not tri-stated when a reset condition becomes active.
Port D (PD7..PD0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors. The Port D output buffers can sink 20 mA. As inputs,
Port D pins that are externally pulled low will source current if the pull-up resistors are activated.
Port D also serves the functions of various special features.
The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Port E (PE7..PE0)
Port E is an 8-bit bi-directional I/O port with internal pull-up resistors. The Port E output buffers can sink 20 mA. As inputs,
Port E pins that are externally pulled low will source current if the pull-up resistors are activated.
Port E also serves the functions of various special features.
The Port E pins are tri-stated when a reset condition becomes active, even if the clock is not running
Port F (PF7..PF0)
Port F is an 8-bit input port. Port F also serves as the analog inputs for the ADC.
RESET
Reset input. An external reset is generated by a low level on the RESET pin. Reset pulses longer than 50 ns will generate
a reset, even if the clock is not running. Shorter pulses are not guaranteed to generate a reset.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
ATmega103/103L
4
775772831.269.png 775772831.271.png 775772831.272.png 775772831.273.png 775772831.274.png 775772831.275.png 775772831.276.png
 
ATmega103/103L
XTAL2
Output from the inverting oscillator amplifier.
TOSC1
Input to the inverting Timer/Counter oscillator amplifier.
TOSC2
Output from the inverting Timer/Counter oscillator amplifier.
WR
External SRAM write strobe
RD
External SRAM read strobe
ALE
ALE is the Address Latch Enable used when the External Memory is enabled. The ALE strobe is used to latch the low-
order address (8 bits) into an address latch during the first access cycle, and the AD0-7 pins are used for data during the
second access cycle.
AVCC
Supply voltage for Port F, including ADC. The pin must be connected to VCC when not used for the ADC. See “ADC Noise
Canceling Techniques” on page 66 for details when using the ADC.
AREF
This is the analog reference input for the ADC converter. For ADC operations, a voltage in the range AGND to AVCC must
be applied to this pin.
AGND
If the board has a separate analog ground plane, this pin should be connected to this ground plane. Otherwise, connect to
GND.
PEN
This is a programming enable pin for the seria l prog ramming mode. By holding this pin low during a power-on reset, the
device will enter the serial programming mode. PEN has no function during normal operation.
5
775772831.277.png 775772831.278.png 775772831.279.png 775772831.281.png 775772831.282.png 775772831.283.png
 
Zgłoś jeśli naruszono regulamin