Alexan 8051 TM-1 User's Manual
Alexan 8051 TM-1 User's Manual
Alexan 8051 TM-1 User's Manual
Version 1.0
Copyright © 2006
Ace Electronic Technology Inc.
All Rights Reserved
In this User’s Manual, it is assumed that the user is familiar with microcontrollers
3. How to use, program and control LED, 7-segment display, buzzer, relay,
source codes. Moreover, it is also assumed that the user is knowledgeable on the
handling of microcontrollers.
This user’s manual will guide you on how to use the ALEXAN Training
Module 1 (TM-1).
The TM-1 is a helping tool in which you can explore the many features of a
2. 7-Segment Display
3. Buzzer
4. LEDs
5. Relay
You must first be familiar with and understand the schematic diagram of the
2. 6 to 9V DC Power Adaptor
5. ATMEL Programmer
training module.
Note: The notch of the IC socket must correspond to the notch of your MCU.
Move the jumper of SEL2 to select between LED display and 7-segment Display
(both are connected as Common Anode). Likewise, move the jumper of SEL1 to
If you want to use the 2 digits of your 7-segment display, you can
VCC R29
Q4
C9
C9013 R27
0.1uF D2 VCC 1k
6V Input
1 K /0 .5 W
PWR SW 1
DC JACK 1 2
VCC ZD1
3 3 1N4001 C5
1 C6 C7
20 OE 2 LED9
VCC 1N4733
0.1uF 100uF 0.1uF
7-SEGMENT2 11
3 LE LE
A 1 R2 470 2 3 P1.0 VCC
a Q1 D1
14 13 R3 470 5 4 P1.1
A b Q2 D2
10 R4 470 6 7 P1.2
c Q3 D3
8 R5 470 9 8 P1.3 C8
d Q4 D4
7 R6 470 12 13 P1.4 0.1uF MCU
e Q5 D5
2 R7 470 15 14 P1.5
f Q6 D6
11 R8 470 16 17 P1.6 P1.0 12 2
g Q7 D7 VCC P1.0 P3.0 (RXD) Receive
9 R9 470 19 18 P1.7 P1.1 13 3 VCC
DP Q8 D8 P1.1 P3.1 (TXD) Transmit
P1.2 14 6
P1.2 P3.2 (INT 0) /INT0
10 VCC P1.3 15 7
RELAY
P1.7 1K
10uF VCC
LED4
LED3
LED2
LED1
LED6
LED5
LED8
LED7
1K 1K 1K 3
1
1
VCC 2
2
/INT0 /INT1 T0 3
R18
10K
7-SEGMENT
Q2 R20 INT0 INT1 T0
LED
Transmit
C8550 4.7K
RS232 Tx
1
2
3 R19
4.7K
3-pin Con
VCC
R23
DB 9 - Female Connector 4.7K
5 Receive
9
4 Rx
8 R22 Q1
3 4.7K C9013
RxD
7 R21
2 4.7K
TxD
6
1
Page 6 of 17
IV. Operating Procedures for Demo Program
A. Burn the HEX file named “DEMO CODE - LED SEQUENCING.HEX” into the
AT89C2051 IC using the Alexan ATMEL Programmer.
B. Transfer the programmed IC to the TM-1. Be sure to Power Off the Power OFF
Power ON
89CX051
notch of the IC must match the notch of the IC socket as Notch on this side Notch
C. Move the SEL2 jumper to LED. Plug-in the 6-9V DC into the DC jack and turn on the power.
All LEDs will be ON
DC Jack(6-9V DC)
Jumper must be
on the LED position
Power ON
[Delay]
[Delay]
[Delay]
A. Burn the HEX file named “DEMO CODE - BUZZER.HEX” into the
AT89C2051 IC using the Alexan ATMEL Programmer.
Power OFF
B. Transfer the programmed IC to the TM-1. Be sure to Power Off the Power ON
89CX051
notch of the IC must match the notch of the IC socket as Notch on this side Notch
shown in the picture.
IC Socket IC
C. Move the SEL1 jumper to BUZZER. Plug-in the 6-9V DC into the DC jack and turn on the power.
DC Jack(6-9V DC)
A. Burn the HEX file named “DEMO CODE - 7-SEGMENT DISPLAY.HEX” into the
AT89C2051 IC using the Alexan ATMEL Programmer.
B. Transfer the programmed IC to the TM-1. Be sure to Power Off the Power OFF
Power ON
module first. Make sure the IC is in the correct position. The
89CX051
notch of the IC must match the notch of the IC socket as Notch
C. Move the SEL2 jumper to 7-SGMNT. Plug-in the 6-9V DC into the DC jack and turn on the power.
DC Jack(6-9V DC)
[Delay]
A. Burn the HEX file named “DEMO CODE - RELAY.HEX” into the
AT89C2051 IC using the Alexan ATMEL Programmer.
Power OFF
B. Transfer the programmed IC to the TM-1. Be sure to Power Off the Power ON
89CX051
notch of the IC must match the notch of the IC socket as Notch on this side Notch
C. Move the SEL1 jumber to RELAY and SEL2 jumper to LED. Plug-in the 6-9V DC into the
DC jack and turn on the power.
DC Jack(6-9V DC)
Power ON
Jumper must be Jumper must be
on the Relay position on the LED position
D. The RELAY will toggle ON and OFF if Switch INT0 and INT1 is pressed respectively.
RELAY STATUS
NC COM NO
NC = Normally Closed
COM = Common Connection
NO = Normally Open
LED 1 ON
RELAY STATUS
NC COM NO
NC = Normally Closed
COM = Common Connection
NO = Normally Open
LED1 OFF
A. Burn the HEX file named “DEMO CODE - RS232 WITH 7-SEG.HEX” into the
AT89C2051 IC using the Alexan ATMEL Programmer.
Power OFF
B. Transfer the programmed IC to the TM-1. Be sure to Power Off the Power ON
89CX051
notch of the IC must match the notch of the IC socket as Notch on this side Notch
Jumper must be on
the 7-SGMNT position
1. Direct Connection.
If your Personal Computer supports Serial Port, connect the TM-1 as shown below. The 3-pin
connector of TM-1(labeled RS232) where each pin is labeled 2, 3 and 5 must be connected to
the pins 2, 3 and 5 of your computer serial port respectively.
TM-1/TM-2 Back of PC: RS232 PORT
6
2
9
5
You can use a 3-pin connector (Female), RS232 9-pin connector (Female), and a MALE/FEMALE
RS232 Cable to simplify the above connection.
TM-1/TM-2 RS232 CABLE Back of PC: RS232 PORT
532
2
3
2 3 4 5
1
9 9
6 6
4 5
1 2 3
Note: You can leave pins 1,4,6,7,8 and 9 unconnected, they are not useful in our application or you can also connect them,
as long as they are connected 1-to-1(Pin 1 Male to Pin 1 Female, Pin 4 Male to Pin 4 Female, and so on).
Note: You can use any working USB to RS232 Converter, but first you must install the driver and locate its COM port number.
The COM port number of your serial port must be known for this application.
3. Double-click the “Ports (COM & LPT)” to view the list of connected devices.
Sample COM port number for USB to serial converter. In this example, the
converter is located on COM port 1. Take note that the driver of your USB
to serial converter automatically assigns the COM port number, so you
must identify the one you are using.
1. Open HyperTerminal.
To open the HyperTerminal, click “Start > All Programs > Accessories > Communications
> HyperTerminal”
4. Click “OK”.
5. In the Name box, type a name that describes your connection as shown in the example
below, then click “OK”.
.
7. In the COM Port Properties, set the following values listed below to set your Port Settings
and click “OK”:
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow Control: None
Power ON
B. If you pressed Switch INT0, a message “YOU HAVE PRESSED SW1” will appear on the
HyperTerminal window indicating that TM-1’s Switch1 (INT0) was pressed.
D. If you pressed Switch T0, a message “YOU HAVE PRESSED SW3” will appear on the
HyperTerminal window indicating that TM-1’s Switch3 (T0) was pressed.