|
CT60 and related things BBS
Eiffel and different LCD |
Posted by: Ektus
|
Aug,20.2011-06:56
|
Hi all,
I've got an Eiffel on my CT63 Falcon and want to use a backlight-lit LCD with it. The LCD was advertised as being compatible, but does need a different initialization. I did try to alter the programming of the PIC, but ran into problems. With the help of matashen from atari-home.de forum, the init routine should look like this:
;------------------------------------------------------------------------
; Initialisation de l'afficheur LCD
;
; Entree: Rien
; Sortie: Rien
;
; Global: Counter, TEMP1, TEMP2
;------------------------------------------------------------------------
IF LCD
Init_Lcd
Delay_Ms 200; attente 20 mS avant reset afficheur LCD
bcf STATUS,C; efface Carry (Instruction Out)
movlw 0x03; commande Reset
call NybbleOut; Send Nybble
Delay_Ms 50; attente 5 mS avant d'envoyer la suite
EStrobe
Delay 160; attente 160 uS
EStrobe
Delay 160; attente 160 uS
;neu ektus
bcf STATUS,C
movlw 0x02; mode 4 bits
call NybbleOut
Delay 60
bcf STATUS,C
movlw 0x02; mode 4 bits
call NybbleOut
Delay 60
bcf STATUS,C
movlw 0x02; mode 4 bits
call NybbleOut
Delay 60
;neu ende
movlw 0x28; 2 lignes d'affichages
call SendINS
movlw 0x08; coupe l'afficheur
call SendINS
movlw 0x01; efface l'affichage
call SendINS
Delay_Ms 50; 4.1 mS maxi
movlw 0x06; autorisation deplacement curseur
call SendINS
movlw 0x0C; LCD Back On
goto SendINS
;------------------------------------------------------------------------
Yet if I try to run the assembler with the modified code, I get a lot of warnings and one error, but no HEX file:
h:\eiffel\pic_dev\sdcc> .\GPASM.TTP EIFFEL.ASM
EIFFEL.ASM:4626:Message [302] Register in operand not in bank 0. Ensure bank bit
s are correct.
EIFFEL.ASM:4887:Message [302] Register in operand not in bank 0. Ensure bank bit
s are correct.
EIFFEL.ASM:5149:Message [305] Using default destination of 1 (file).
EIFFEL.ASM:5154:Message [305] Using default destination of 1 (file).
EIFFEL.ASM:5165:Message [305] Using default destination of 1 (file).
EIFFEL.ASM:5170:Message [305] Using default destination of 1 (file).
EIFFEL.ASM:5171:Message [306] Crossing page boundary -- ensure page bits are set.
EIFFEL.ASM:5181:Error [118] Overwriting previous address contents.
EIFFEL.ASM:5298:Message [306] Crossing page boundary -- ensure page bits are set.
What am I doing wrong here?
Ektus.
Displaytech 162A.
http://www.displaytech.com.hk/product.php?id=11
http://www.mikrocontroller.net/topic/202332
http://www.ee.oulu.fi/research/tklab/courses/521426A/2003/LCD-driver-3316.pdf
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|