Guest komodo Posted October 15, 2004 Report Share Posted October 15, 2004 hello everybody,i've got some lcd (with ks0066 chipset)How can i adapt this on mios because they are 4 bits models.Thanks Quote Link to comment Share on other sites More sharing options...
moebius Posted October 15, 2004 Report Share Posted October 15, 2004 Does anybody know an elegant way to do this?MIOS supports 4bit LCD mode on HD44780 controllers, and KS0066 seems to be compatible.To set data communication in 4 bit mode, you have to override settings made by MIOS_LCD_TypeAutoSet function at startup. This can be done by MIOS_LCD_TypeSet function, read MIOS functions page:http://www.ucapps.de/mios_fun.htmlMy uneducated guess:Appending (quoting MIOS function reference):     movlw     0x37 | 0x80     ; E1: D.7, 4bit interface     movwf     MIOS_PARAMETER1     movlw     0x24 | 0x80     ; E2: C.4, 4bit interface     movwf     MIOS_PARAMETER2     movlw     0x00         ; LCD type 0     call     MIOS_LCD_TypeSetIn main.asm of the application, in "USER_Init" section ,will do ;)Bye, Moebiusp.s. Be sure to check MIOS function reference for minor hardware changes needed! ;) Quote Link to comment Share on other sites More sharing options...
Sephult Posted October 15, 2004 Report Share Posted October 15, 2004 When you get your LCD up and running, you should try the LCD Benchmark application and post your findings. I am interested in what the results are for a 4 bit mode. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.