Home

Visio-TM-2 User manual-edit.vsd

image

Contents

1. e Im Computer Management Local System Tools E Event viewer Shared Folders Performance Logs and Alerts Z Device Manager aj Storage Removable Storage Disk Defragmenter Disk Management Ta Services and Applications ii Batteries Biometric Y Computer Se Disk drives Display adapters DVD CD ROM drives Human Interface Devices 23 ATA ATAPI controllers amp g IEEE 1394 Bus host controllers 32 Imaging devices UU Keyboards Mice and other pointing devices L Modems 3 Monitors 88 Network adapters PCMCIA adapters PCMCIA and Flash memory devices 7 Ports COM amp LPT 888 Processors Sound video and game controllers 3 Double click the Ports COM amp LPT to view the list of connected devices Mice and other pointing devices Modems i Monitors Network adapters PCMCIA adapters a and Flash memory devices Ports C j ee lt 1 2101 USB to UART Bridge Controller COM1 gt Toshiba BT Port COM10 5 7 Toshiba BT Port COM11 29 Toshiba BT Port 12 7 Toshiba BT Port COM13 7 Toshiba BT Port COM14 7 Toshiba BT Port 20 29 Toshiba BT Port COM21 7 Toshiba BT Port COM40 7 Toshiba BT Port COM6 7 Toshiba BT Port SB Processors Sound video and game controllers See Storage volumes m
2. SIMPLE ELECTRONICS GREAT INNOVATION USER S MANUAL Getting Started with ALEXAN ATMEL AT89C2051 AT89C4051 Training Module 2 Version 1 2 Copyright 2007 Ace Electronic Technology Inc Rights Reserved Alexan 2051 4051 TM 2 v 1 2 Page 1 of 22 bb SIMPLE ELECTRONICS GREAT INNOVATION About This Guide In this User s Manual it is assumed that the user is familiar with microcontrollers on the following aspects 1 How to program using an MCU programmer 2 MCU pin outs and I O port functions 3 How to use program and control Alohanumeric LCD display 16x2 Dot Matrix 8x8 Matrix Keypad 3x4 serial EEPROM and serial port communication 4 How to read and interpret a schematic diagram 5 Knowledge on some electronic terms and devices It is also assumed that the user is familiar in microcontroller programming either in C or assembly language The user must have knowledge on compiling debugging source codes Moreover it is also assumed that the user 15 knowledgeable on the standards and safety precautions in operating electronic hardware including the correct handling of microcontrollers Alexan ATMEL AT89C2051 AT89C4051 Training Module 2 and Alexan 89CX051 TM 2 refers to the same module and will be used alternately Alexan 2051 4051 2 1 2 Page 2 of 22 SIMPLE ELECTRONICS GREAT INNOVATION 1 Overview This user s manual will guide you on how to use the ALEXAN 89
3. 6 AT Lr TSOP TSOCO68LV 1 gt gt MW BUH N 9 X ES Gd p 65 Ud CIS M01 eT CIT 6 T80X268 Page 6 of 22 Alexan 2051 4051 TM 2 v 1 2 SIMPLE ELECTRONICS GREAT INNOVATION IV Alexan 89CX051 TM 2 Block Diagram 16x2 ALPHANUMERIC LCD 8x8 DOT MATRIX RS232 INTERFACE BUFFER BUFFER EEPROM lt ie ie 3 4 Alexan 2051 4051 TM 2 1 2 Page 7 of 22 Alexan SIMPLE ELECTRONICS GREAT INNOVATION V Alexan TM 2 Pinouts DOT DATAPIN 06 1 16 DATAPIN_ SHIFT REGISTER EEPROM s J RS232INTERFACE KEYPAD Alexan 2051 4051 TM 2 v 1 2 Page 8 of 22 SIMPLE ELECTRONICS GREAT INNOVATION Operating Procedures for Demo Program 1 Demo Program 1 DOT MATRIX A Burn the HEX file named DEMO CODE DOT MATRIX HEX into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Transfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the pict
4. of 22 Alexan SIMPLE ELECTRONICS GREAT INNOVATION 8 Configure the Hyper Terminal Properties Under the File Tab choose Properties A Properties dialog box appears choose the Settings tab then click the ASCII Setup button at the lower right portion of the box The ASCII Setup dialog box appears Mark the following check boxes 1 Send line ends with line feeds 2 Echo typed characters locally 3 Append line feeds to incoming line ends 4 Wrap lines that exceed terminal width Connect Settings ASCII Setup Function arrow and ctrl keys act as Terminal keys Windows keys ASCII Sending Send line ends with line feeds Backspace key sends Echo typed characters locally Del Space Line delay 0 milliseconds Emulation Character delay 0 milliseconds Auto detect Telnet terminal ID ANSI ASCII Receiving Append line feeds to incoming line ends Backscroll buffer lines 500 C Force incoming data to 7 bit ASCII C Play sound when connecting or disconnecting Wrap lines that exceed terminal width Input Translation ASCII Setup 9 You may choose to save your new connection for easier access in the future From the File menu choose Save Enter your desired connection name G Turn on the TM 2 A welcome message appears on your HyperTerminal Whenever you type a character from your keyboard it would appear on TM 2 s LCD s
5. same time as the pins controlling the dot matrix and serial EEPROM P1 0 and P1 1 are shared by both components Alexan 2051 4051 TM 2 v 1 2 Page 4 of 22 SIMPLE ELECTRONICS GREAT INNOVATION 111 Training Module PCB and Schematic Diagram 16x2 Alphanumeric LCD iliii ii D a D D 2 i E d E LI BIER e 8x8 Dot A A i E gt EEPROM Display 80000000 i 00000000 80000000 00000000 5232 Interface On Off Switch 9V DC Input LCD Backlight J d Connector 3x4 Keypad Matrix Alexan 2051 4051 TM 2 v 1 2 Page 5 of 22 SIMPLE ELECTRONICS GREAT INNOVATION VEON TN lt lt J OpDoooooooo V WV Y lt gt O lon gt ct CO YON 4 NES z ZZZ Z Z Z Z Z 4 VVVVVUVUVUV y V Y V V Y V V C BZzuuuuz I Sannan O dL e ae 55559999 In ON Se 5 gt 3 458 AAAAAAAA 1 C2 P2 aN 000000008 7777 99999999 ir A 999099909 900000007 0000008 90000000 re 0000009 1 8X8 A
6. CX051 Training Module 2 TM 2 While the first training module TM 1 covered topics on LED lamps 7 segments buzzer relay and serial communication this 2 level training module has the following applications 1 Alphanumeric LCD Display 16x2 2 LED Dot Matrix 8x8 3 Matrix Keypad 3x4 4 Serial EEPROM 5 RS232 Serial Communication The TM 2 is a helping tool in which you can explore the many features of a microcontroller Like TM 1 this module still uses ATMEL AT89C2051 and AT89C4051 microcontroller MCU You must first be familiar with and understand the schematic diagram of the training module to facilitate your programming Alexan 2051 4051 TM 2 v 1 2 Page 3 of 22 lexan SIMPLE ELECTRONICS GREAT INNOVATION 4 11 Getting Started What you need to get started 1 ALEXAN 89CX051 Training Module 2 2 9V DC Power Adapter 3 ATMEL AT89C2051 AT89C4051 Microcontroller 4 3 Pin Connector to Serial Connector for RS232 5 ATMEL Programmer 6 Debugger Compiler for your source code After writing your hex code into the microcontroller by means of an IC programmer insert your microcontroller into the 20 pin IC socket of your training module Note The notch of the I C socket must correspond to the notch of your MCU Incorrect placement might damage your MCU You may use the LCD display dot matrix and matrix keypad at the same time However the dot matrix and serial EEPROM may not be used at the
7. EEPROM reading and writing Alexan 2051 4051 TM 2 v 1 2 Page 20 of 22 flexa SIMPLE ELECTRONICS GREAT INNOVATION F WriteEE Encode a message of up to 384 characters using the 3x4 matrix keypad and store it in the serial EEPROM The 3x4 matrix keypad functions like a mobile phone keypad refer to the character table A cursor on the LCD screen appears Hold 512 to store the message into the serial EEPROM Hold S11 to return to the main menu Character Table 32 ABC2 53 DEF3 54 GHI4 55 JKL5 56 MNO6 57 PQRS7 58 TUV8 59 29 510 backspace 511 0 512 da character 3x4 Matrix Keypad case Alexan 2051 4051 TM 2 v 1 2 Page 21 of 22 SIMPLE ELECTRONICS GREAT INNOVATION G DM Scroll The message saved on the serial EEPROM will scroll on the dot matrix display To scroll the message again press 12 To return to main menu hold 11 NOTE The program scrolls any message saved in the serial EEPROM Be sure to write a message in the serial EEPROM before selecting the DM Scroll option If no message Is stored in the EEPROM then nothing will be displayed on the dot matrix The message on the Icd scrolls from right to left on the dot matrix Alexan 2051 4051 TM 2 v 1 2 Page 22 of 22
8. creen TM 2_RS232 HyperTerminal File Edit view Call Transfer Help Hello This is a sample program using M2 S SERIAL COMMUNICATION Please type a character It would appear on TM2 s LCD screen Connected 0 00 11 Auto detect 9600 8 N 1 Alexan 2051 4051 TM 2 v 1 2 Page 16 of 22 bb Meran SIMPLE ELECTRONICS GREAT INNOVATION 5 Demo Program 5 EEPROM A Burn the HEX file named DEMO CODE into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Transfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the picture LCD Display Notch this side 89CX051 Notch Dot Matrix IC Socket C Matrix keypad C Do steps C F of Demo Program 4 RS232 D Turn on the TM 2 Click 51 to see the message stored in the EEPROM on your Hype rTerminal 2 85232 HyperTerminal File Edit View Call Transfer Help Save this message to your EEPROM Vou can modify this message test if your eeprom is ok but you should limit the characters to 32 per line since the eeprom can do a maximum of 32 bytes of page write only lt Connected 0 01 06 Auto detect 9600 8 N 1 Note Some dots on the dot matrix may also light up This is because th
9. ction correctly when dialing In addition some applications respond to your canceling this dialog box by immediately re posting it Are you sure you want to cancel 4 Click OK HyperTerminal 5 In the Name box type a name that describes your connection as shown in the example below then click Connection Description hp New Connection Enter a name and choose an icon for the connection Mame TM 2 RS232 Icon Alexan 2051 4051 TM 2 v 1 2 Page 14 of 22 SIMPLE ELECTRONICS GREAT INNOVATION 6 In the Connect To dialog box choose the port number of your Serial Port or USB to Serial converter using the drop down box to connect TM 2 Connect To B TM 2 RS232 Enter details for the phone number that you want to dial Country region Area code Phone number cape es 7 Inthe COM Port Properties set the following values listed below to set your Port Settings and click OK COM1 Properties Bits 9600 Port Settings Data bits 8 Parity None Bits per second 9600 Stop bits 1 Flow Control None Parity Mane Stop bits 1 Flow control You have successfully loaded and configured the HyperTerminal 85232 Hyperterminal Ldt ye Cd une ip Da 5505 Connected Cotte 8 uin dent detect Alexan 2051 4051 TM 2 v 1 2 Page 15
10. e pins P1 0 and P1 1 controlling the EEPROM and dot matrix are the same Alexan 2051 4051 TM 2 v 1 2 Page 17 of 22 he Alexan SIMPLE ELECTRONICS GREAT INNOVATION E To change the saved message on the EEPROM follow these steps 1 Open the Alexan ATMEL 89CX051 Programmer 2 Load the file EEPROM HEX 3 Modify the message code starting at 0114h to 01F3h WARNING You can only modify those codes at code memory 0114h to 01F3h 4g Alexan ATMEL 89CX051 Programmer v 2 0 0 File Ecit Tools Settings About 00 Device Information HEX 4789 2051 Compatible with 25 51 Products 2K Byes of Reprogremmable Flash hemony Endurance 1 000 Cycles 2 to Operating Range Fully Static Operation 0 Hz to 24 MHz Two level Program Merory Lock 128 x 8 15 Programmable VO Lines Two 16 bit Timer Gourters Six Interrupt Sources Programmable Seral UART Direct ED Drive Outputs On chip Analog Comparztor Low power Idle and Power down Modes Browr out Detector Power On Reset POR Alexan 2051 4051 TM 2 v 1 2 Page 18 of 22 SIMPLE ELECTRONIC GREAT INNOVATION 6 Demo Program 6 Dot Matrix LCD Display Matrix Keypad and EEPROM A Burn the HEX file named DEMO CODE 2 into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Tra
11. ex COMI Alexan 2051 4051 TM 2 v 1 2 Note Majority of the built Sample COM port number for USB to serial converter nthis 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 in serial port is designated as Page 13 of 22 leran SIMPLE ELECTRONICS GREAT INNOVATION To run the RS232 and EEPROM demo codes the HyperTerminal program will be used HyperTerminal is included in the Windows Operating System 1 Open HyperTerminal To open the HyperTerminal click Start gt All Programs gt Accessories gt Communications gt HyperTerminal 2 If prompted with the Location Information click Cancel eomm Before you can make any phone or mod onnections Windows needs the following information about your current location What country region are you in now United States v What area code or city code are you in now If you need to specify a carrier code what is it If you dial a number to access an outside line what is it The phone system at this location uses Tone dialing Pulse dialing 3 Click Yes to confirm Confirm Cancel Windows needs telephone information about the location from which you will be dialing IF you cancel without providing this information this program may not fun
12. male and a MALE FEMALE 232 Cable to simplify the above connection TM 1 TM 2 RS232 CABLE Back of PC RS232 PORT N he LA 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 Internal connection of Rs232 CABLE Alexan 2051 4051 TM 2 v 1 2 Page 12 of 22 2 Using a USB to RS232 Converter TM 1 TM 2 USB TO RS232 CONVERTER this application Back of PC USB PORT Alexan SIMPLE ELECTRONICS GREAT INNOVATION Note You can use any working USB to RS232 Converter but you must first install the driver and locate its COM port number The COM port number of your serial port must be known for D Locate the COM port number of your serial port 7 Storage imi Computer Management m Fie Action View Window Help mee g i Computer Management Local iG System Tools l Event Viewer Shared Folders PerFormance Logs and Alerts Device Manager Removable Storage Disk Defragmenter x3 Disk Management d Services and Applications 1 Right click on My Computer and click Manage 2 Click Device Manager iml Computer Management m Fie Action View Window
13. nsfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the picture LCD Display Notch on this side 89CX05 Notch Dot Matrix IC Socket IC Matrix keypad C After turning on the TM 2 wait for two seconds A welcome message will appear on the LCD D The main menu will appear shortly after the welcome message There are three 3 options namely 1 ReadEE 2 WriteEE 3 DM Scroll 52 and S8 serves as the navigation keys Press S2 to scroll up the menu Press S8 to scroll down the menu Press S12 to confirm your selection Note The LCD that came with Alexan TM 2 does not have backlight functionality You may change the LCD to one that has backlight to make use of the backlight function of the TM 2 Alexan 2051 4051 TM 2 v 1 2 Page 19 of 22 SIMPLE ELECTRONICS GREAT INNOVATION Up SJ el s 5 Bu Down 3T Heturn to Main Confirm Menu Matrix Keypad Navigation Set up E ReadEE The last saved message on the EEPROM can be viewed on the LCD Press S2 to scroll up the message or press 58 to scroll down the message Hold 511 to return to the main menu NOTE Due to the shared pins controlling the dot matrix and serial EEPROM some dots on the dot matrix may light up during serial
14. ture LCD Display Notch on this side 9 51 Notch Dot Matrix IC Socket IC Matrix keypad C Click a button on the matrix keypad and the corresponding digit for the button displays on the LCD For the sample below the button S7 was clicked Alexan 2051 4051 TM 2 v 1 2 Page 11 of 22 SIMPLE ELECTRONICS GREAT INNOVATION 4 Demo Program 4 RS232 A Burn the HEX file named DEMO CODE RS232 HEX into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Transfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the picture LCD Display m Notch on ier this side Notch d E Gi L 89CX051 Dot Matrix IC Socket IC Matrix keypad C Connect the serial port of your PC as shown below Steps C F will also be used for the EEPROM demo code 1 Direct Connection If your Personal Computer supports Serial Port connect the TM 2 as shown below The 3 pin connector of TM 2 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 _ of RS232 PORT You can use 3 pin connector Female RS232 9 pin connector Fe
15. ure LCD Display Notch on this side 51 oL Notch Dot Matrix IC Socket Matrix keypad C The letter A is displayed on the dot matrix Notice that the first line of the LCD display will contain blocks this shows that the LCD display has not been initialized Alexan 2051 4051 TM 2 v 1 2 Page 9 of 22 SIMPLE ELECTRONICS GREAT INNOVATION 2 Demo Program 2 LCD Display A Burn the HEX file named DEMO CODE LCD DISPLAY HEX into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Transfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the picture LCD Display Notch on this side 89CX051 Notch Dot Matrix IC Socket C Matrix keypad C The message WOW IT S A BLINKING MESSAGE displays blinking on the LCD Alexan 2051 4051 TM 2 v 1 2 Page 10 of 22 SIMPLE ELECTRONIC GREAT INNOVATION 3 Demo Program 3 Matrix Keypad A Burn the HEX file named DEMO CODE into the AT89C2051 AT89C4051 IC using the Alexan ATMEL Programmer B Transfer the programmed IC to the TM 2 Be sure to Power Off the module first Make sure the IC is in the correct position The notch of the IC must match the notch of the IC socket as shown in the pic

Download Pdf Manuals

image

Related Search

Related Contents

iMEC12/iMEC10/iMEC8 Moniteur patient Manuel  55924 55925  SBDI User's Manual  Swingline LightTouch  Sandberg FireWire 4pM-6pM 1 m  Advantech DiagAnywhere  BoBTM – 4 port wireless VoIP router  USER MANUAL MODEL 653-9 TWO-WIRE pH/ORP  AccuScreens FIXED SCREEN User's Manual  CONCRETE - Tecnotest  

Copyright © All rights reserved.
Failed to retrieve file