Practical Course For ATMEL Microcontrollers
Practical Course For ATMEL Microcontrollers
com
User manual for PCAM
Hardware Version
EEDT4.0-LF-2.0
www.DeccanRobots.com
DeccanRobots 1
www.deccanrobots.com
User manual for PCAM
DeccanRobots 2
www.deccanrobots.com
User manual for PCAM
89S51/89S52/ATmega8515
Target Section
DeccanRobots 3
www.deccanrobots.com
User manual for PCAM
ATmega16 / ATmega32 /
ATmega8535 Target Section
JTAG
Connector for
ATmega32
DeccanRobots 4
www.deccanrobots.com
User manual for PCAM
DeccanRobots 5
www.deccanrobots.com
User manual for PCAM
DeccanRobots 6
www.deccanrobots.com
User manual for PCAM
DeccanRobots 7
www.deccanrobots.com
User manual for PCAM
GND 8 7 SCK
GND 6 5 Reset
GND 4 3
+5V 2 1 MOSI
DeccanRobots 8
www.deccanrobots.com
User manual for PCAM
5 SCK
MISO
4
3 MOSI
2 GND
1 VCC
ISP
DeccanRobots 9
www.deccanrobots.com
User manual for PCAM
DeccanRobots 10
www.deccanrobots.com
User manual for PCAM
DeccanRobots 11
www.deccanrobots.com
User manual for PCAM
DeccanRobots 12
www.deccanrobots.com
User manual for PCAM
DeccanRobots 13
www.deccanrobots.com
User manual for PCAM
DeccanRobots 14
www.deccanrobots.com
User manual for PCAM
DeccanRobots 15
www.deccanrobots.com
User manual for PCAM
DeccanRobots 16
www.deccanrobots.com
User manual for PCAM
DeccanRobots 17
www.deccanrobots.com
User manual for PCAM
DeccanRobots 18
www.deccanrobots.com
User manual for PCAM
DeccanRobots 19
www.deccanrobots.com
User manual for PCAM
DeccanRobots 20
www.deccanrobots.com
User manual for PCAM
DeccanRobots 21
IR LED, TSOP1738, IR Receiver
www.deccanrobots.com
User manual for PCAM
5V Output point.
Power ON Indicator
DeccanRobots 22
www.deccanrobots.com
User manual for PCAM
Schematics – 89S52
Target Section
MOSI
MISO
SCK
RST
VCC
VCC
JP2
U1
1
2 1 40 JP9
P1.0/T2 VDD
3 2 39
P1.1/T2EX P0.0/AD0 1
4 3 38
P1.2/ECI P0.1/AD1 2
5 4 37
P1.3/CEX0 P0.2/AD2 3
6 5 36
P1.4/SS/CEX1 P0.3/AD3 4
7 6 35
P1.5/MOSI/CEX2 P0.4/AD4 5
8 7 34
P1.6/MISO/CEX3 P0.5/AD5 6
8 33
P1.7/SCK/CEX4 P0.6/AD6 7
JP1 9 32 VCC
RESET P0.7/AD7 8
10 31
1 P3.0/RXD EN
11 30
2 P3.1/TXD ALE/PROG
12 29
3 P3.2/INT0 PSEN
13 28
4 P3.3/INT1 P2.7/A15 1
14 27
5 P3.4/TO P2.6/A14 2
15 26
6 P3.5/T1 P2.5/A13 3
16 25
7 P3.6/WR P2.4/A12 4
17 24
8 P3.7/RD P2.3/A11 5
18 23
XTL2 P2.2/A10 6
19 22
XTL1 P2.1/A9 7
20 21
VSS P2.0/A8 8
C2
Y1 89S51/52 JP8
C1
DeccanRobots 23
www.deccanrobots.com
User manual for PCAM
Schematics – ATmega32
Target Section
MISO
MOSI
SCK
RST
VCC
ATMEGA_40_PIN
JP13 JP22
1 40
1 (XCK/TO)PB0 PA0(ADC0) 1
2 39
2 (T1)PB1 PA1(ADC1) 2
3 38 VCC
3 (INT2/AIN0)PB2 PA2(ADC2) 3
4 37
4 (OC0/AIN1)PB3 PA3(ADC3) 4
5 36
5 (SS)PB4 PA4(ADC4) 5
6 35
6 (MOSI)PB5 PA5(ADC5) 6
7 34
7 (MISO)PB6 PA6(ADC6) 7 L1
8 33 JP21
8 (SCK)PB7 PA7(ADC7) 8 10uH
9 32
RESET AREF 1
10 U3 31
VCC GND 2
11 30
GND AVCC
12 29
JP10 XTAL2 PC7(TOSC2) 8 C3
13 28
XTAL1 PC6(TOSC1) 7
JP12 14 27
1 (RXD)PD0 PC5(TDI) 6 100nF
15 26
2 (TXD)PD1 PC4(TDO) 5
16 25
3 (INT0)PD2 PC3(TMS) 4
17 24
1
2
3
4 (INT1)PD3 PC2(TCK) 3
18 23
5 (OC1B)PD4 PC1(SDA) 2
19 22
6 (OC1A)PD5 PC0(SCK) 1
20 21
7 (ICP1)PD6 PD7(OC2)
8 JP20
TDI
JP11 TDO
TMS
TCK
1
2
3
VCC
JP17
VCC
TCK 1 2
TDO 3 4
TMS 5 6 RST
C4
7 8 100nF
TDI 9 10
HEADER 5X2
DeccanRobots 24
www.deccanrobots.com
User manual for PCAM
Schematics – ATmega8
Target Section
RST
JP25
1 JP33
2 U7
7
3 1 28
VCC (RESET)PC6 PC5(ADC5) 6
4 2 27
5 (RXD)PD0 PC4(ADC4) 5
3 26
(TXD)PD1 PC3(ADC3) 4
6 4 25
(INT0)PD2 PC2(ADC2) 3
7 5 24
8 (INT1)PD3 PC1(ADC1) 2
6 23
(XCK_T0)PD4 PC0(ADC0) 1 VCC
7 22
VCC GND
8 21
GND AREF
9 20
(XTAL1/TOSC1)PB6 AVCC JP32
10 19
(XTAL2/TOSC2)PB7 PB5(SCK)
11 18 1 L2
(T1)PD5 PB4(MISO)
12 17 2 10uH
(AIN0)PD6 PB3(MOSI)
13 16
(AIN1)PD7 PCB2(SS/OC1B)
14 15
(ICP1)PB0 PB1(OC1A)
C5
ATMEGA_8 100nF
JP26 JP27
3 3
2 2
1 1
MOSI
MISO
SCK
1
2
3
4
5
6
7
8
JP28
HEADER 8
DeccanRobots 25
www.deccanrobots.com
User manual for PCAM
1
2
3
4
VCC
R2 R3 R4 R7
1K 1K 1K 1K
Q1 Q2 Q3 Q4
JP19
1
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
2
3
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
5
6
7
U2 8
40_PIN_IC_BASE HEADER 8
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
DeccanRobots 26
www.deccanrobots.com
User manual for PCAM
Schematics – ULN2803
Stepper Motor Driver
JP23 U4 JP30
1 18
1 1 18 8
2 17
2 2 17 7
3 16
3 3 16 6
4 15
4 4 15 5 VCC
5 14
5 5 14 4
6 13
6 6 13 3
7 12
7 7 12 2
8 11
8 8 11 1
9 10
9 10
8 HEADER ULN2803
DeccanRobots 27
www.deccanrobots.com
User manual for PCAM
VCC
R16
10K U10
1 20
. .
2 19 OUTPUT
. .
3 18
. . 8
4 17
. . 7
5 16
C6 . . 6
VCC 6 15
150 . . 5
7 14
. . 4
8 13
1
JP49 . . 3
9 12
. . 2
1 10 11
2 . . 1
R25 2
20K 3 20_PIN JP37
2
VCC
JP50
3
1 R14
2
10K
1
R15
10K
DeccanRobots 28
www.deccanrobots.com
User manual for PCAM
Schematics – RS232
DTR
JP43
U14
TX
JP48 1
13 12
R1IN R1OUT 2
1 8 9 RX
FEMALE CONNECTOR DB9
R2IN R2OUT 3
6 11 14
T1IN T1OUT
2 10 7 HEADER 3
T2IN T2OUT
7
C10 1
3 C+ VCC
8 3
C1-
4 4 15
C2+ GND
9 5
C9 C2-
5 2 16
V+ VCC
6
V-
VCC
MAX232/SO
C11
C8
DeccanRobots 29
www.deccanrobots.com
User manual for PCAM
Schematics – LED
D1
VCC RP1 JP5
D2
1 2 1
3 D3
2
4 3
D4
5 4
6 D5 5
7 6
8 D6
7
9 8
C D7
1K
D8 8 HEADER
DeccanRobots 30
www.deccanrobots.com
User manual for PCAM
Schematics – Switches
• 4 x Pulled up & 2 x pulled down switches
VCC VCC
R9 1 2
1K SW4
DeccanRobots 31
www.deccanrobots.com
User manual for PCAM
VCC
SDA_1
R181K
X1 U8
R201K CRYSTAL 1 5
X1 SDA
2
R191K X2
6 7
SCLK SQW/OUT
3
VCC VBAT
8
VCC
JP36
SCL_1
1 JP29 DS1307
2 1
3 2
EXERNAL BATTERY CONNECTION
DeccanRobots 32
www.deccanrobots.com
User manual for PCAM
VCC
U9
1 8
A0 VCC
2 5
A1 SDA SDA_1
3
A2
6
SCL_1 SCLK
7 4
WP GND
AT24C256
DeccanRobots 33
www.deccanrobots.com
User manual for PCAM
Schematics – L293D
DC Motor Driver
JP5
VCC
1
2 U13
3 JP8
1 16
E1 VSS 1
2 15
JP6 I1 I4 2
3 14
O1 O4
2 4 13
GND GND
1 5 12
GND GND
6 11
O2 O3 1
JP7 7 10
I2 I3 2
8 9
2 VS E2 3
1
JP9
L293D
DeccanRobots 34
www.deccanrobots.com
User manual for PCAM
JP42
HEADER 8
DeccanRobots 35
www.deccanrobots.com
User manual for PCAM
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
JP14
10
11
12
13
14
15
16
2
1
2
3
4
5
6
7
8
9
1
VCC JP7
1
2
3
R8
4
47K 5
6
1
7
2 8
R1
1K
1
2
3
3
JP4
DeccanRobots 36
www.deccanrobots.com
User manual for PCAM
VCC
U6
8
3 JP31
VCC
3 DI
2
2 SK 1
1 6
1 CS 6 2
4
GND
4 DO 3
JP24 HEADER 3
93C46
5
DeccanRobots 37
www.deccanrobots.com
User manual for PCAM
5
4
3
2
1
VCC
D9
1
IR Transmitter
R17 2 Q5
LM35
200E
3
U11 VCC
TSOP1738
VCC
1
2
3
1
R21 R22
10K 200E
1
2
C7 3 2
R24
5K
3
VCC
IR RECEIVER
U5
D2
5 8
5 8
1
6 7
6 7
R13 2 R23
10K
4
5K
LM358
4
3
DeccanRobots 38
www.deccanrobots.com
User manual for PCAM
VCC
VCC
U12 R26
JP45 1K
3 1 3
VIN O/P
2
GND
1 JP44
CONN JACK
1 D11
7805 C14 LED
2
2
C12 C13
1000uF, 16V
DeccanRobots 39
www.deccanrobots.com
User manual for PCAM
DeccanRobots 40
www.deccanrobots.com
User manual for PCAM
DeccanRobots 41
www.deccanrobots.com
User manual for PCAM
1 HandyProgUSB Software
Select Target Microcontroller
Select Actions
2
Select Flash Hex File
3
Select EEPROM Hex
File (Only for AVR)
Start Programming
DeccanRobots 42
www.deccanrobots.com
User manual for PCAM
DeccanRobots 43
www.deccanrobots.com
User manual for PCAM
DeccanRobots 44
www.deccanrobots.com
User manual for PCAM
Information
DeccanRobots
205, Decision Tower, Next To CityPride,
Satara Road, Pune 411037 India
Ph: +91 20 24228818 (Not for support)
www.deccanrobots.com
[email protected]
Disclaimer:
PCAM (Practical Course For ATMEL Microcontroller) is designed only for learning and
experiments. This product is not designed for mission critical applications and industrial product
development.
DeccanRobots 45