Getting Started with ALEXAN ATMEL AT89C2051/AT89C4051 Training Module - 2

Similar documents
RS232 Board datasheet

ET-BASE AVR ATmega64/128

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Using HyperTerminal with Agilent General Purpose Instruments

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

CENTRONICS interface and Parallel Printer Port LPT

PM1122 INT DIGITAL INTERFACE REMOTE

Aquadyne TechTip TITLE: TROUBLESHOOTING PC COM PORT AND MODEM PRODUCTS AFFECTED SYMPTOMS POSSIBLE CAUSES

Using a USB to Serial adapter and Terminal Emulator in Windows 7 to communicate with a DM101

EasyPIC4 User s Manual

User Guide Reflow Toaster Oven Controller

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

TP- 051 GPS RECEIVER

The CW Machine Hardware

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

Thermostat Application Module Kit

STIM202 Evaluation Kit

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Information Board User s Guide

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

iloq P10S.10/20 Programming device User's Guide

Keep it Simple Timing

Connecting the Console Port to a PC

Advanced Data Capture and Control Systems

BMV-602 Data Link Manual

PCMCIA 1 Port RS EDITION OCTOBER 1999

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Lab Experiment 1: The LPC 2148 Education Board

MS830 / MS833 Barcode Reader v1.0 9-December-2014

Getting Started with the Xilinx Zynq All Programmable SoC Mini-ITX Development Kit

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

Testing Data Radio Modem with Serial Port Tool V1.20

Z8 Encore! XP F64xx Series Flash Microcontrollers. In-Circuit Emulator. User Manual UM

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

Ocean Controls RC Servo Motor Controller

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

Access Control Using Smartcard And Passcode


Cypress CY7C64225 USB-to-UART Setup Guide Version 1.3

USB / Data-Acquisition Module NOW LEAD-FREE

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

PolyBot Board. User's Guide V1.11 9/20/08

User's Guide DylosLogger Software Version 1.6

Cart Interface Installation & Control Board Manual for M38 XP and RX Carts and Legacy M39 Carts

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

Tech Info Document: PIC16F84A LCD Satellite Antenna Tracking Interface

Setup Manual and Programming Reference. RGA Ethernet Adapter. Stanford Research Systems. Revision 1.05 (11/2010)

Antenna Rotator System

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

Signature Center Getting Started Guide

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Config software for D2 systems USER S MANUAL

SecureLinx Spider Duo Quick Start Guide

BW-500 BED WEIGHER USER MANUAL

HD44780-Based LCD Modules. Introduction to the LM018L

LCD240X128A Asansörler İçin Grafik LCD Gösterge Graphic LCD Display for Elevators

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

Bluetooth to Serial Adapter

USB to RS-422/485 Serial Adapter

REPAIRING ROWE/AMI R84 - R88

How to setup a serial Bluetooth adapter Master Guide

USB PC Adapter V4 Configuration

Connecting your Omega/BetaPAT PLUS to a PC via a USB

Troubleshooting Tips Lifestyle SA-2 & SA-3 Amplifier. Troubleshooting Tips

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

PRT3 Printer Module: ASCII Protocol Programming Instructions

Global Monitoring + Support

DK40 Datasheet & Hardware manual Version 2

ScanWin Installation and Windows 7-64 bit operating system

INTELLIGENT CONTROL MODULE SA-2000-II HARDWARE MANUAL. Access Technologies International, Inc.

Real Time Clock USB Evaluation Board V3.0

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

Tutorial for MPLAB Starter Kit for PIC18F

User Manual. AS-Interface Programmer

XBee USB Adapter Board (#32400)

Microcontroller Display Interfacing Techniques

Instruction manual. testo easyheat Configuration and Analysis software

LDG Electronics External Meter Serial Communications Protocol Specification

VSCOM USB PRO Series Industrial I/O Adapters

Model: LD1000 Series. USB Interface Customer Displays. 2 by 20 character display USER MANUAL. Rev 1.0

MAX6683 Evaluation System/Evaluation Kit

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

Knowledge Base Article. Integrating ISONAS Access Control System with TagMaster LR-series RFID Readers

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Supplemental User Guide

ABB solar inverters. Installation and setup instruction Aurora Manager TL software and ABB PVI-USB-RS232_485 adapter

KTA-223 Arduino Compatible Relay Controller

SA-9600 Surface Area Software Manual

I. DigitalCAT Captioning Software Overview A. Welcome B. Acquiring the Captioning Add-On C. Purpose of this Guide...

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

How To Connect A Port Replicator With An Ethernet To A Usb Port From A Usb Device

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

Instructions on How to Use HyperTerminal to Test Serial Ports ...

UDS2100 Quick Start Guide

EvB 5.1 v5 User s Guide

Transcription:

Getting Started with ALEXAN ATMEL AT89C05/AT89C405 Training Module - Version. Copyright 007 Ace Electronic Technology Inc. All Rights Reserved Alexan 05/405 TM- v.. Page of

About This Guide In this User s Manual, it is assumed that the user is familiar with microcontrollers on the following aspects:. How to program using an MCU programmer. MCU pin-outs and I/O port functions. How to use, program and control Alphanumeric LCD display (6x), Dot Matrix (8x8), Matrix Keypad (x4), 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 is knowledgeable on the standards and safety precautions in operating electronic hardware including the correct handling of microcontrollers. Alexan ATMEL AT89C05/AT89C405 Training Module- and Alexan 89CX05 TM- refers to the same module and will be used alternately. Alexan 05/405 TM- v.. Page of

I. Overview This user s manual will guide you on how to use the ALEXAN 89CX05 Training Module- (TM-). While the first training module, TM-, covered topics on LED lamps, 7-segments, buzzer, relay and serial communication, this nd level training module has the following applications:. Alphanumeric LCD Display (6x). LED Dot Matrix (8x8). Matrix Keypad (x4) 4. Serial EEPROM 5. RS Serial Communication The TM- is a helping tool in which you can explore the many features of a microcontroller. Like TM-, this module still uses ATMEL AT89C05 and AT89C405 microcontroller (MCU). You must first be familiar with and understand the schematic diagram of the training module to facilitate your programming. Alexan 05/405 TM- v.. Page of

II. Getting Started What you need to get started. ALEXAN 89CX05 Training Module-. 9V DC Power Adapter. ATMEL AT89C05/AT89C405 Microcontroller 4. -Pin Connector to Serial Connector for RS 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 0-pin IC socket of your training module. Note: The notch of the IC 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 same time as the pins controlling the dot matrix and serial EEPROM (P.0 and P.) are shared by both components. Alexan 05/405 TM- v.. Page 4 of

III. Training Module PCB and Schematic Diagram 6x Alphanumeric LCD 8x8 Dot Matrix Display EEPROM MCU RS Interface On/Off Switch LCD Backlight On/Off Connector x4 Keypad Matrix 9V DC Input Alexan 05/405 TM- v.. Page 5 of

LCM LCD MODULE LCM A K 5 6 8 7 6 5 DSDot Matrix 8X8 R R R R4 R5 R6 R7 R8 8 9 5 6 0 5 U5 VCC WP SCL SDA.uF A0 A A GND 4 4CXX 4 0 9 8 7 6 5 4 D7 D6 D5 D4 D D D D0 EN R/W RS VO VDD VSS 4 5 6 7 8 9 IN IN IN IN 4 IN 5 IN 6 IN 7 IN 8 GND OUT OUT OUT OUT4 OUT5 OUT6 OUT7 OUT8 COM D 8 7 6 5 4 0 4 4 7 6 C C C C4 C5 C6 C7 C8 0K 0K 0K S PB S9 PB S6 PB S PB Rx Tx S PB S0 PB S8 PB S5 PB S PB S7 PB S4 PB S PB 4 5 6 EN 7 8 9 0 K MCU RST/VPP P.0 P. XTAL XTAL P. P. P.4 P.5 GND.uF 0uF VCC P.7 P.6 P.5 P.4 P. P. P. (AIN) P.0 (AIN) P.7 AT89C05/405 0 9 8 7 6 5 4 U ULN80A U 4094 U ULN80A U4 4094 VDD 6 5 8 CLK STROBE DATA OE GND Q Q Q Q4 Q5 Q6 Q7 Q8 QS QS 4 5 6 7 4 9 0 5 8 CLK STROBE DATA OE GND VDD Q Q Q Q4 Q5 Q6 Q7 Q8 QS QS 6 4 5 6 7 4 9 0 4 5 6 7 8 9 IN IN IN IN 4 IN 5 IN 6 IN 7 IN 8 GND OUT OUT OUT OUT4 OUT5 OUT6 OUT7 OUT8 COM D 8 7 6 5 4 0 CE K5 K5 K5 K5 K5 K5 K5 K5 Alexan 89CX05 TM- Schematic Diagram J 9VDC SOCKET S PWR SW D +9 7805 C 0uF, 6V Vin Vout GND C 0uF, 0V R K DS LED JP RS B Q 90 R9 4K7 R 4K7 R R7 0K R8 4K7 R0 4K7 Q 90 Tx Rx P Header H +9 47, W 4K7 C5 pf pf K D7 D6 D5 D4 RS R/W +9 +9 0K 0K C.uF +9 C6 C4.uF D7 D6 D5 D4 EN R/W RS Alexan 05/405 TM- v.. Page 6 of

IV. Alexan 89CX05 TM- Block Diagram 6x ALPHANUMERIC LCD 8x8 DOT MATRIX RS INTERFACE MCU OCTAL BUFFER EEPROM SHIFT REGISTERS x4 KEYPAD Alexan 05/405 TM- v.. Page 7 of

V. Alexan TM- Pinouts LCD MCU PINOUTS DESCRIPTION D0 NOT CONNECTED DATA PIN D NOT CONNECTED DATA PIN D NOT CONNECTED DATA PIN D NOT CONNECTED DATA PIN D4 PORT.4 DATA PIN D5 PORT.5 DATA PIN D6 PORT.6 DATA PIN D7 PORT.7 DATA PIN R/W PORT.7 READ/WRITE RS PORT. COMMAND/DATA ENABLE PORT. ENABLE PIN SHIFT REGISTER CLOCK PORT. INPUT CLOCK STROBE PORT. ENABLE PIN DATA PORT.0 DATA PIN EEPROM CLOCK PORT. INPUT CLOCK DATA PORT.0 DATA PIN RS INTERFACE TRANSMIT PORT. TRANSMIT PIN RECEIVE PORT.0 RECEIVE PIN KEYPAD COLUMN PORT. MATRIX COLUMN COLUMN PORT.4 MATRIX COLUMN COLUMN PORT.5 MATRIX COLUMN ROW PORT.4 MATRIX ROW ROW PORT.5 MATRIX ROW ROW PORT.6 MATRIX ROW ROW 4 PORT.7 MATRIX ROW 4 Alexan 05/405 TM- v.. Page 8 of

VI. Operating Procedures for Demo Program. Demo Program DOT MATRIX A. Burn the HEX file named DEMO CODE DOT MATRIX.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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. Notch 89CX05 LCD Display Notch on this side Dot Matrix IC Socket IC 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 05/405 TM- v.. Page 9 of

. Demo Program LCD Display A. Burn the HEX file named DEMO CODE LCD DISPLAY.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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 89CX05 Notch on this side Dot Matrix IC Socket IC Matrix keypad C. The message WOW, IT S A BLINKING MESSAGE displays blinking on the LCD. Alexan 05/405 TM- v.. Page 0 of

. Demo Program Matrix Keypad A. Burn the HEX file named DEMO CODE KEYPAD.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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 89CX05 Notch on this side 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 05/405 TM- v.. Page of

5 4. Demo Program 4 RS A. Burn the HEX file named DEMO CODE RS.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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 89CX05 Notch on this side 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.). Direct Connection. If your Personal Computer supports Serial Port, connect the TM- as shown below. The -pin connector of TM- (labeled RS) where each pin is labeled, and 5 must be connected to the pins, and 5 of your computer serial port respectively. TM-/TM- Back of PC: RS PORT 6 9 5 You can use a -pin connector (Female), RS 9-pin connector (Female), and a MALE/FEMALE RS Cable to simplify the above connection. TM-/TM- RS CABLE Back of PC: RS PORT Internal connection of Rs CABLE Note: You can leave pins, 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 -to-(pin Male to Pin Female, Pin 4 Male to Pin 4 Female, and so on). Alexan 05/405 TM- v.. Page of

. Using a USB to RS Converter. TM-/TM- USB TO RS CONVERTER Back of PC: USB PORT Note: You can use any working USB to RS 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 this application. D. Locate the COM port number of your serial port.. Right-click on My Computer and click Manage.. Click Device Manager.. 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. 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. Note: Majority of the built-in serial port is designated as COM. Alexan 05/405 TM- v.. Page of

F. To run the RS and EEPROM demo codes, the HyperTerminal program will be used. HyperTerminal is included in the Windows Operating System.. Open HyperTerminal. To open the HyperTerminal, click Start > All Programs > Accessories > Communications > HyperTerminal. If prompted with the Location Information, click Cancel.. Click Yes to confirm. 4. Click OK. 5. In the Name box, type a name that describes your connection as shown in the example below, then click OK. Alexan 05/405 TM- v.. Page 4 of

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 to TM-. 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: Flow Control: None You have successfully loaded and configured the HyperTerminal! Alexan 05/405 TM- v.. Page 5 of

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:. Send line ends with line feeds. Echo typed characters locally. Append line feeds to incoming line ends 4. Wrap lines that exceed terminal width 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-. A welcome message appears on your HyperTerminal. Whenever you type a character from your keyboard, it would appear on TM-'s LCD screen. Alexan 05/405 TM- v.. Page 6 of

5. Demo Program 5 EEPROM A. Burn the HEX file named DEMO CODE EEPROM.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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 89CX05 Notch on this side Dot Matrix IC Socket IC Matrix keypad C. Do steps C-F of Demo Program 4 RS. D. Turn on the TM-. Click S to see the message stored in the EEPROM on your HyperTerminal. Note : Some dots on the dot matrix may also light up. This is because the pins (P.0 and P.) controlling the EEPROM and dot matrix are the same. Alexan 05/405 TM- v.. Page 7 of

E. To change the saved message on the EEPROM, follow these steps:. Open the Alexan ATMEL 89CX05 Programmer.. Load the file EEPROM.HEX.. Modify the message code starting at 04h to 0Fh. WARNING: You can only modify those codes at code memory 04h to 0Fh. Alexan 05/405 TM- v.. Page 8 of

6. Demo Program 6 Dot Matrix, LCD Display, Matrix Keypad and EEPROM A. Burn the HEX file named DEMO CODE TM.HEX into the AT89C05/AT89C405 IC using the Alexan ATMEL Programmer. B. Transfer the programmed IC to the TM-. 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 89CX05 Notch on this side Dot Matrix IC Socket IC Matrix keypad C. After turning on the TM-, 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 () options, namely :. ReadEE. WriteEE. DM Scroll S and S8 serves as the navigation keys. Press S to scroll up the menu. Press S8 to scroll down the menu. Press S to confirm your selection Note: The LCD that came with Alexan TM- 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-. Alexan 05/405 TM- v.. Page 9 of

Up S S S S4 S5 S6 S7 S8 S9 S0 S S Down Return to Main Menu Confirm Matrix Keypad Navigation Set-up E. ReadEE The last saved message on the EEPROM can be viewed on the LCD. Press S to scroll up the message or press S8 to scroll down the message. Hold S 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 EEPROM reading and writing. Alexan 05/405 TM- v.. Page 0 of

F. WriteEE Encode a message of up to 84 characters using the x4 matrix keypad and store it in the serial EEPROM. The x4 matrix keypad functions like a mobile phone keypad (refer to the character table). A cursor on the LCD screen appears. Hold S to store the message into the serial EEPROM. Hold S to return to the main menu. Character Table S:., -?! = + % S: A B C S: D E F S4: G H I 4 S5: J K L 5 S6: M N O 6 S7: P Q R S 7 S8: T U V 8 S9: W X Y Z 9 S0: backspace S: 0 space S: toggles character case S S S S4 S5 S6 S7 S8 S9 S0 S S x4 Matrix Keypad Alexan 05/405 TM- v.. Page of

G. DM Scroll The message saved on the serial EEPROM will scroll on the dot matrix display. To scroll the message again, press S. To return to main menu, hold S. 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 lcd scrolls (from right to left) on the dot matrix Alexan 05/405 TM- v.. Page of