/*************************************************************
** File:        iochar.c
**
** Description: This file contains the CANTEC11 LCD
**              interface routine.
**
** Compile:     icc11 -c iochar.c
** Library:     ilib -a libc11.a iochar.o
*************************************************************/
/* read and write a byte using the SCI port */
#define _SCI
#include <hc11.h>
#include <stdio.h>
#include "delay.h"

#define _LCD_BASE 0x4000
#define LCDcmmd	*(unsigned char volatile *)(_LCD_BASE + 0x00)
#define LCDdata	*(unsigned char volatile *)(_LCD_BASE + 0x01)

int getchar(void)
	{

	while ((SCSR & RDRF) == 0)
		;
	return SCDR;
	}

int putchar(char c)
{
        LCDdata = c;
        Delay50usec();
	return c;
}

