Re: Nokia lcd include , small footprint to suit pic16's
if you really want to geek it up
changing the output routine to use the mssp module shaves another 10% off the code size
and speeds the thing up by a factor of 10x
din and clk need to be on sdo and sck
this
PAUSEUS 150
SHiftOUT LCD_DIN,LCD_CLK,1,[LcdData]
becomes
PIR1.3=0
SSP1BUF = LcdData
WHILE !PIR1.3 : wend
and this is added to init routine
SSP1CON1=$21 ;$22,21,20 all work @32mhz 20 is fastest
SSP1STAT=$40
Last edited by richard; - 18th May 2018 at 09:52.
Warning I'm not a teacher
Bookmarks