Witam wszystkich.
Problem polega na tym że wyświetlacz MW-C4004A na porcie B śmigał bez problemu.
Ale muszę go podpiąć pod port C lub A. No i tu się zaczeły schody.
Mianowicie Biblotekę LCD4e2.lbx przerobiłem zgodnie z PDF.
sugerując się helpem z Bascoma
"The following connections are used in the asm code:
Rs = PortB.0
RW = PortB.1 we don’t use the R/W option of the LCD in this version so connect to ground
E = PortB.2
E2 = PortB.3 the second E pin of the LCD
Db4 = PortB.4 the data bits must be in a nibble to save code
Db5 = PortB.5
Db6 = PortB.6
Db7 = PortB.7
You can change the lines from the lcd4e2.lib file to use another port.
Just change the address used :
.EQU LCDDDR=$17 ; change to another address for DDRD ($11)
.EQU LCDPORT=$18 ; change to another address for PORTD ($12)"
Napisałem prosty kod:
Wszystko niby poprawnie ale wyświetlacz nie incjalizuje się sprawdzany na porcie A i C. Podłączyłem na szybko lcd 16*2 i na porcie A śmiga bez problemu.
Połączenia sprawdzone.
Co może być jeszcze że wyświetlacz nie rusza.
Proszę o jakie kolwiek sugestie podpowiedzi.
Problem polega na tym że wyświetlacz MW-C4004A na porcie B śmigał bez problemu.
Ale muszę go podpiąć pod port C lub A. No i tu się zaczeły schody.
Mianowicie Biblotekę LCD4e2.lbx przerobiłem zgodnie z PDF.
[_Init_LCD]
.EQU LCDDDR=$14 'port C
.EQU LCDPORT=$15 'Port C
_Init_LCD:
*BASIC: waitms 10
sugerując się helpem z Bascoma
"The following connections are used in the asm code:
Rs = PortB.0
RW = PortB.1 we don’t use the R/W option of the LCD in this version so connect to ground
E = PortB.2
E2 = PortB.3 the second E pin of the LCD
Db4 = PortB.4 the data bits must be in a nibble to save code
Db5 = PortB.5
Db6 = PortB.6
Db7 = PortB.7
You can change the lines from the lcd4e2.lib file to use another port.
Just change the address used :
.EQU LCDDDR=$17 ; change to another address for DDRD ($11)
.EQU LCDPORT=$18 ; change to another address for PORTD ($12)"
Napisałem prosty kod:
Kod: text
Wszystko niby poprawnie ale wyświetlacz nie incjalizuje się sprawdzany na porcie A i C. Podłączyłem na szybko lcd 16*2 i na porcie A śmiga bez problemu.
Połączenia sprawdzone.
Co może być jeszcze że wyświetlacz nie rusza.
Proszę o jakie kolwiek sugestie podpowiedzi.