Page 2 - User manual; PREFACE
HTEB1 User manual Issue 0.2 Page 2 07/2002 PREFACE Product WarrantyThe warranty period against defects in materials and workmanship are as set out in the accompanying Customer Information sheet. Limitation of Warranty The foregoing warranty does not cover damage caused by fair wear and tear, abnorma...
Page 3 - Table of Contents
HTEB1 User manual Issue 0.2 Page 3 07/2002 Table of Contents PREFACE .............................................................................. 2Table of Contents .................................................................. 31 Overview .........................................................
Page 4 - Overview; System Development Kit content; plastic feet for the HTEB1; Hardware description
HTEB1 User manual Issue 0.2 Page 4 07/2002 1 Overview 1.1 System Development Kit content Thank you for purchasing our product. If you take care on the different hints in this manual you will have great success in software development with this microcontroller. Please refer to the documents listed in...
Page 6 - Figure 1 Board overview
HTEB1 User manual Issue 0.2 Page 6 07/2002 1.4 Board overview Figure 1 Board overview 8 user LEDs 2*16 char LCD with LED backlight DA connector RS232 connectorSubD0female Power 7,5 V-9V DC + - Ext.-LCDconnector E10Tconnector I2Cconnector Contrast AT/PS2keyboardconnector Prog/Run switch 4 user keys R...
Page 7 - Jumpers and switches; Operation
HTEB1 User manual Issue 0.2 Page 7 07/2002 1.5 Jumpers and switches JP1 is used for switching the serial interface from 1:1 to crossed connection. If you connect a 1:1 cable (like the cable that comes with the kit) use the default setting. If you connect a crossed cable set the jumper to alternate s...
Page 8 - Orientation; LEFT
HTEB1 User manual Issue 0.2 Page 8 07/2002 S_PROG/RUN switches between RUN- and PROG(PROGRAMMING) mode. KEY_1 (T1) to KEY_4 (T4) are user keys. RESET_KEY (T7) is for reset. Orientation Operation LEFT PROG(programming) mode RIGHT RUN mode Main crystal (Q1) can be changed to another frequency. Therefo...
Page 11 - PIN
HTEB1 User manual Issue 0.2 Page 11 07/2002 SV1,SV2, SV3,SV4 connectors with microcontroller signals SV1 SV2 SV3 SV4 PIN Operation PIN Operation PIN Operation PIN Operation 1,2 GND 1,2 GND 1,2 GND 1,2 GND 3 n.c. 3 n.c. 3 n.c. 3 P51 4 n.c. 4 n.c. 4 n.c. 4 P50 5 P14 5 P22 5 P76 5 n.c. 6 P15 6 P21 6 P7...
Page 12 - Installing the HTEB1; Figure 1.8 shows how to connect the HTEB1 to a PC and to a power supply; Power Supply; The HTEB1 hardware requires a power supply of 7,5V DC at minimum.
HTEB1 User manual Issue 0.2 Page 12 07/2002 1.7 Start-Up instructions 1.7.1 Installing the HTEB1 Installing the HTEB1 requires a power supply and a serial connection to a host computer (common PC). The serial communications cable for connecting the HTEB1 to a host computer is supplied and has 1:1 co...
Page 13 - Test program; value of potentiometer P2.
HTEB1 User manual Issue 0.2 Page 13 07/2002 1.7.3 Test program The HTEB1 is supplied with a short demo application when delivered. If you power up the eval-board for the first time, you will see a start up message and some LEDs lighting. If no message appear, please set the switch “Prog/Run” to “Run...
Page 14 - Software Installation; You will find the following tools:
HTEB1 User manual Issue 0.2 Page 14 07/2002 1.7.4 Software Installation Software development on embesso-HTEB1 requires some software tools to be installed on your PC. All tools can be found on CD-R. Some of them must be installed separately. Please refer on installation / setup requirements. You wil...
Page 15 - Development Environment; Now select File / New and select “Project”
HTEB1 User manual Issue 0.2 Page 15 07/2002 2 Development Environment 2.1 Creating a program using IAR-EWH8 Software development can be done with a integrated embedded workbench like IAR-EWH8. This software contains an editor, some tools for organization and a tool chain for compiling, assembling an...
Page 16 - Now a new project is created and we must do some settings. In the
HTEB1 User manual Issue 0.2 Page 16 07/2002 Press OK and a file window will appear. Here first create a new directory (e.g. c:\MyTinyTest) and type the project filename “MyTinyTest”. After that click CREATE. Now a new project is created and we must do some settings. In the window select under target...
Page 17 - In selection ICCH8/List select the List file box.
HTEB1 User manual Issue 0.2 Page 17 07/2002 Now select release with the right mouse button. A popup appears. Select Options… and do the following settings: In selection ICCH8/List select the List file box. In section XLINK/Output select under Format “motorola” as the output format.
Page 19 - All other options can be changed later.
HTEB1 User manual Issue 0.2 Page 19 07/2002 All other options can be changed later. Click on OK. Now select File/new/source file and type in the following program: /* MyTinyTest */ #include "ioh83664.h" void main(void){ unsigned int x=0; /* counter */ unsigned char c=0; /* holds port output ...
Page 20 - After that save it under MyTinyTest.c
HTEB1 User manual Issue 0.2 Page 20 07/2002 After that save it under MyTinyTest.c Now we must add this file to our project. Please select Project/Files and add the file MyTinyTest.c.
Page 21 - After that click on DONE.
HTEB1 User manual Issue 0.2 Page 21 07/2002 After that click on DONE. Now you can select Projet/Build ALL (or F9) and all files are compiled and linked. The message window shows if your project is error free or if there are any errors.
Page 23 - Download the code using FDT; FDT; Even FDT must be prepared for a new workspace.
HTEB1 User manual Issue 0.2 Page 23 07/2002 2.2 Download the code using FDT After compiling and linking (error free!), the target code (mytinytest.mot) should be downloaded to target board. Therefore we use a freeware tool from HMSE : FDT . Even FDT must be prepared for a new workspace.
Page 24 - Click ok and a further window will appear:
HTEB1 User manual Issue 0.2 Page 24 07/2002 Please start FDT and select „New Workspace“. Here we use the projectname “MyTinyTest”. You can choose a location for all workspace files. Select on subdirectory from „MyTinyTest“. Click ok and a further window will appear: Select „Yes“
Page 25 - First time users should use the wizard!
HTEB1 User manual Issue 0.2 Page 25 07/2002 First time users should use the wizard! Fill in the following things:
Page 29 - When the download is finished press Alt-C to disconnect the PC
HTEB1 User manual Issue 0.2 Page 29 07/2002 Now make a double click on \targetfiles\mytinytest and the file content of mytinytest.mot will appear in hex format in the right window. First press the reset button at the target board, hold it down and move Prog/Run-switch to prog position (left). After ...
Page 32 - Examples; HTEB1 is provided with some demonstration code.
HTEB1 User manual Issue 0.2 Page 32 07/2002 3 Examples HTEB1 is provided with some demonstration code. On the supplied CD-R you should find a complete prepared workspace for IAR-EWH8. \examples\demoapp\demoapp.prj Please copy the complete directory to your hard disk in a directory c:\H8TinyIAR, so y...
Page 44 - table for keycode translation in your own projects.
HTEB1 User manual Issue 0.2 Page 44 07/2002 3.5 AT-Keyboard-Interface This demo shows the usage of the PS2 (mini-DIN) interface on HTEB1. Please connect an AT-keyboard (MF102) to this port. You will see the keycodes, provided by the keyboard on the LCD. Please refer to the code table for keycode tra...
Page 48 - Numeric
HTEB1 User manual Issue 0.2 Page 48 07/2002 Tables : Scan-Codes MFII-Keyboard Numeric Keypad Scan-Code Set 1 Scan-Code Set 2 Scan-Code Set 3 Key Make- Code Break- Code Make- Code Break- Code Code Typ Num 45 C5 77 F0-77 76 Make, Break 7 47 C7 6C F0-6C 6C Make, Break 4 48 C8 6B F0-6B 6B Make, Break 1 ...
Page 49 - Keypad; Code
HTEB1 User manual Issue 0.2 Page 49 07/2002 Main- Keypad Scan-Code Set 1 Scan-Code Set 2 Scan-Code Set 3 Key Make-Code Break- Code Make-Code Break- Code Code Typ ^ 29 A9 0E F0-0E 0E Typematic 1 02 82 16 F0-16 16 Typematic 2 03 83 1E F0-1E 1E Typematic 3 04 84 26 F0-26 26 Typematic 4 05 85 25 F0-25 2...
Page 50 - and other
HTEB1 User manual Issue 0.2 Page 50 07/2002 Function- and other keys Scan-Code Set 1 Scan-Code Set 2 Scan-Code Set 3 Key Make- Code Break- Code Make- Code Break- Code Code Typ Esc 01 01 76 F0-76 08 Make, Break F1 3B BB 05 F0-05 07 Make, Break F2 3C BC 06 F0-06 0F Make, Break F3 3D BD 04 F0-04 17 Mak...
Page 51 - Programs; This manual as pdf
HTEB1 User manual Issue 0.2 Page 51 07/2002 Appendix A: CD-R content Programs IAR-EWH8 \programs\iar\ FDT (flash development toolkit) \programs\fdt\ Examples \examples\demoapp\ Demo \examples\flashdemo\ Datasheets Tiny Hitachi H8/3664F hardware manual, H8 programming manual,Tiny Application notes, L...
Page 52 - Appendix B: Schematic
HTEB1 User manual Issue 0.2 Page 52 07/2002 Appendix B: Schematic
Page 53 - Appendix C: Board layout
HTEB1 User manual Issue 0.2 Page 53 07/2002 Appendix C: Board layout
Page 54 - NOTES