Subject:
|
Re: HB and ICC11..
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 2 Jul 1997 21:13:05 GMT
|
Original-From:
|
Chuck McManis <cmcmanis@freeNOMORESPAMgate.net>
|
Reply-To:
|
cmcmanis@freeSPAMCAKEgate.net
|
Viewed:
|
948 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Hi Dale,
For this to work a couple of things have to be true, first the
Start_LCD, Stop_LCD, and putlcdchar() functions have to be located
in the 256 bytes of on-board RAM (or in the 512byte EEPROM)
The second thing is that your putchar_LCD doesn't check to see if
the LCD is busy before it writes to it, that can cause overrunning
the LCD which will give unpredictable results (usually missed
characters).
The clever way to do this is to write a software UART that puts
characters into a FIFO in low ram, and then to have the system
tick interrupt always call a FIFO drain function. This prevents
the LCD from interfering in any timing sensitive operations.
--Chuck
Dale Bergman wrote:
>
> Hi, I am using ImageCraft ICC11 compiler with the Handy Board in order to
> produce rommable code. I was wondering if anyone has an LCD driver for the
> hitachi LM052L LCD used on the Handy Board. I have tried using the following
> code I obtained from the Interactive C source code but it I cannot seem to get
> it working.
>
> /***********************************************
> - Program for Handy Board to write to LCD display
>
> - The LCD display is a Hitachi LM052L
> RS Line = A9 line on 6811
> R/W Line = A8 line on 6811
> E Line = TOC4 line on 6811
>
> #include <hc11.h> /* include all register locations*/
>
> void Start_LCD ()
> {
> HPRIO = 0xd5; /* Sets the MCU to single chip mode */
> PORTB = 0x0;
> DDRC = 0xff;
> PORTC = 0x38;
> PORTA = 0x10;
> PORTA = 0x0;
> PORTC = 0x0f;
> PORTA = 0x10;
> PORTA = 0x0;
> PORTC = 0x1;
> PORTA = 0x10;
> PORTA = 0x0;
> }
>
> void Stop_LCD ()
> {
> HPRIO = 0xf5; /* set back to expanded mode */
> }
>
> void putchar_LCD ( char c )
> {
> PORTB = 0X2;
> DDRC = 0XFF;
> PORTC = c;
> PORTA = 0X10;
> PORTA = 0X0;
> }
>
> Any help would be greatly appreciated! Thanks....
>
> --------------------------------------------------------------------------
> Dale W. Bergman PEng.
>
> Cardiovascular Research Group email: dbergman@cvr.ucalgary.ca
> Department of Medicine voice: (403) 220-4622
> University of Calgary fax : (403) 270-0313
> --------------------------------------------------------------------------
|
|
Message is in Reply To:
![](/news/x.gif) | | HB and ICC11..
|
| Hi, I am using ImageCraft ICC11 compiler with the Handy Board in order to produce rommable code. I was wondering if anyone has an LCD driver for the hitachi LM052L LCD used on the Handy Board. I have tried using the following code I obtained from (...) (27 years ago, 2-Jul-97, to lugnet.robotics.handyboard)
|
3 Messages in This Thread: ![HB and ICC11.. -handyboard@media.mit.edu (Dale Bergman) (2-Jul-97 to lugnet.robotics.handyboard)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: HB and ICC11.. -handyboard@media.mit.edu (Curt Mills, WE7U) (2-Jul-97 to lugnet.robotics.handyboard)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|