Instructions

28Hardware
© 2013 Conrad Electronic
7 Differential Channels
2 Differential Channels with Programmable Gain at 1x, 10x, or 200x
Byte-oriented Two-wire Serial Interface
Dual Programmable Serial USARTs
Master/Slave SPI Serial Interface
Programmable Watchdog Timer with On-chip Oscillator
On-chip Analog Comparator
Special Microcontroller Features
Power-on Reset and Programmable Brown-out Detection
Internal Calibrated RC Oscillator
External and Internal Interrupt Sources
Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby,
and Extended Standby
Software Selectable Clock Frequency
ATmega103 Compatibility Mode Selected by a Fuse
Global Pull-up Disable
I/O and Packages
53 Programmable I/O Lines
64-lead TQFP and 64-pad MLF
Operating Voltages
2.7 - 5.5V for ATmega128L
4.5 - 5.5V for ATmega128
2.1.4.2 Pin Assignment
PortA through PortG are for direct pin functions (e. g. Port_WriteBit) counted from 0 through 52, see
"PortBit".
Pin Assignment for Application Board Mega128
Module
M128
Port
Port
#
PortBit
Name1
Name2
Internal
Remarks
1
PEN
prog. Enable
X1_16
2
PE0
4
32
RXD0
PDI
EXT-RXD0
RS232
X1_15
3
PE1
4
33
TXD0
PDO
EXT-TXD0
RS232
X1_14
4
PE2
4
34
AIN0
XCK0
Analog Comparator
X1_13
5
PE3
4
35
AIN1
OC3A
Analog Comparator
X1_12
6
PE4
4
36
INT4
OC3B
EXT-T1
Switch 1
X1_11
7
PE5
4
37
INT5
OC3C
TX-REQ
SPI_TX_REQ
X1_10
8
PE6
4
38
INT6
T3
EXT-T2
Switch 2 / Input Timer 3
X1_9
9
PE7
4
39
INT7
IC3
EXT-DATA
LCD_Interface
X1_8
10
PB0
1
8
SS
SPI
X1_7
11
PB1
1
9
SCK
SPI
X1_6
12
PB2
1
10
MOSI
SPI
X1_5
13
PB3
1
11
MISO
SPI
X1_4
14
PB4
1
12
OC0
RX-BUSY
SPI_RX_BUSY
X1_3
15
PB5
1
13
OC1A
EXT-A1
DAC1
X1_2
16
PB6
1
14
OC1B
EXT-A2
DAC2
X1_1
17
PB7
1
15
OC1C
OC2
EXT-SCK
LCD_Interface
X2_5
18
PG3
6
51
TOSC2
LED1
LED