Instructions

21 C-Control Pro IDE
© 2013 Conrad Electronic
32K Bytes of In-System Self-Programmable Flash
Endurance: 10,000 Write/Erase Cycles
In-System Programming by On-chip Boot Program
1024 Bytes EEPROM
2K Byte Internal SRAM
Peripheral Features:
Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
Four PWM Channels
8-channel, 10-bit ADC
8 Single-ended Channels
2 Differential Channels with Programmable Gain at 1x, 10x, or 200x
Byte-oriented Two-wire Serial Interface (I2C)
Programmable Serial USART
On-chip Analog Comparator
External and Internal Interrupt Sources
32 Programmable I/O Lines
40-pin DIP
Operating Voltages 4.5 - 5.5V
2.1.3.2 Pin Assignment
PortA through PortD are for direct pin functions (e. g. Port_WriteBit) counted from 0 through 31, see
"PortBit".
Pin Assignment for Application Board Mega32
M32
PIN
Port
Port
PortBit
Name
Layout
Remarks
1
PB0
PortB.0
8
T0
Input Timer/Counter0
2
PB1
PortB.1
9
T1
Input Timer/Counter1
3
PB2
PortB.2
10
INT2/AIN0
(+)Analog Comparator, external In-
terrupt2
4
PB3
PortB.3
11
OT0/AIN1
(-)Analog Comparator, Output
Timer0
5
PB4
PortB.4
12
SS
USB-Communication
6
PB5
PortB.5
13
MOSI
USB-Communication
7
PB6
PortB.6
14
MISO
USB-Communication
8
PB7
PortB.7
15
SCK
USB-Communication
9
RESET
10
VCC
11
GND
12
XTAL2
Oscillator : 14,7456MHz
13
XTAL1
Oscillator : 14,7456MHz
14
PD0
PortD.0
24
RXD
EXT-RXD
RS232, serial Interface
15
PD1
PortD.1
25
TXD
EXT-TXD
RS232, serial Interface
16
PD2
PortD.2
26
INT0
EXT-T1
SW1 (Taster1); external Interrupt0
17
PD3
PortD.3
27
INT1
EXT-T2
SW2 (Taster2); external Interrupt1
18
PD4
PortD.4
28
OT1B
EXT-A1
Output B Timer1
19
PD5
PortD.5
29
OT1A
EXT-A2
Output A Timer1