it is amazing. :shock:
there are only 2 differences.
the working lib has :
_gwrite_cmd:
[b:fc5a023b27] Rcall _gRead_Status[/b:fc5a023b27]
* Cbi _glcd_portm , _glcd_cd
Rjmp _Gwrite_DataMisc
_gwrite_data:
[b:fc5a023b27] Rcall _gRead_Status[/b:fc5a023b27]
* Sbi _glcd_portm , _glcd_cd
_gwrite_datamisc:
while my version :
_gwrite_cmd:
* Cbi _glcd_portm , _glcd_cd
Rjmp _Gwrite_DataMisc
_gwrite_data:
* Sbi _glcd_portm , _glcd_cd
_gwrite_datamisc:
[b:fc5a023b27] rcall _gRead_Status[/b:fc5a023b27]
as you can see there, the difference between command and data is set with the CD pin. And status is read after this pin has been set. hmm. that might be the source of the problem : maybe the chip does not like the pin to be changed which makes sense when it is not ready.
i attached an update.
↧