Subject:
|
HB and ICC11..
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 2 Jul 1997 20:35:16 GMT
|
Original-From:
|
Dale Bergman <dbergman@cvr.ucalgary.NOSPAMca>
|
Viewed:
|
958 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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 has 2 Replies: ![](/news/x.gif) | | Re: HB and ICC11..
|
| 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 (...) (27 years ago, 2-Jul-97, to lugnet.robotics.handyboard)
| ![](/news/x.gif) | | Re: HB and ICC11..
|
| (...) The trick is to copy the mode-change/LCD code into the on-chip RAM and execute it from there. This code must change to single-chip mode, write to the LCD, then change back to expanded mode. When in single-chip mode, you lose access to any (...) (27 years ago, 2-Jul-97, to lugnet.robotics.handyboard)
|
3 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/246.gif) ![Re: HB and ICC11.. -handyboard@media.mit.edu (Chuck McManis) (2-Jul-97 to lugnet.robotics.handyboard)](/news/x.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
|
|
|
|