IBM H8 user manual HTEB1

Page 19

HTEB1

User manual

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 */

PCR8 = 0xff;

/* port is output */

PDR8 = c;

/* all LED's on (inverse) */

while (1)

 

{

 

while (--x);

/* wait ... */

c++;

/* increment c */

PDR8 = c;

/* to port */

}

 

}

 

Issue 0.2

Page 19

07/2002

Image 19
Contents Hitachi H8/Tiny 3664F Preface Table of Contents Hardware description System Development Kit contentFeatures Board overview Board overviewJP4, D/A CON Jumpers and switchesOrientation Operation X1 SubD9, Pin Operation Remark ConnectorsX3 LCD-CON SV1 SV2 SV3 SV4 PIN Start-Up instructions Installing the HTEB1Test program Software Installation Development Environment Creating a program using IAR-EWH8HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 Download the code using FDT HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 HTEB1 Workflow Examples LEDSPEEDINIT4 Key’s and LED’sPMR1 &= ~KEYALL RunningLightInit Init keys and LEDs TimerAInit LCD Clearlcdrs Setlcdrw Lcddatactrl = Lcdin Setlcden HTEB1 Isscitxfree SCIInit sci with 9600Baud, 8N1 A/D + PWM Lcddatactrl = Lcdin Setlcden Calculate av of last 15 values AT-Keyboard-Interface Setlcdrw Lcddatactrl = Lcdin Setlcden Mask = Msg buffer Tables Scan-Codes MFII-Keyboard Numeric Keypad Main Scan-Code Keypad Function Scan-Code Demo DatasheetsPrograms ExamplesAppendix B Schematic Appendix C Board layout HTEB1 HTEB1 HTEB1