surei Posted September 18, 2009 Report Share Posted September 18, 2009 Hi,I connected a 16x1 character display (standard LCD 16x1 from Reichelt) to a core, and I can only get the first 8 digits to work. Interestingly enough, when booting, the MIOS message uses all 16 characters (so hardware problems can be safely excluded), but once the application loads, only 8 digits work. Also, when rebooting after uploading the application, it only displays "rebootin" (the 'g' missing, as it is the ninth character).Any idea?BTW, the 16x2 display from Reichelt is working fine on another core modul, and I did not have any problems getting that to work as expected. Thanks for your helpReiner Quote Link to comment Share on other sites More sharing options...
avogra Posted September 18, 2009 Report Share Posted September 18, 2009 Which application did you try? is it the same hex-file as the other core? Quote Link to comment Share on other sites More sharing options...
surei Posted September 18, 2009 Author Report Share Posted September 18, 2009 no, its a different application, but I can try that this evening. Quote Link to comment Share on other sites More sharing options...
surei Posted September 18, 2009 Author Report Share Posted September 18, 2009 After testing with the other application it showed the same behaviour, only eight characters are displayed. But I found out what's happening:The driver is treating the 16 characters as if they are two lines of eight characters each! Hence, when setting the cursor position to 0x40, it prints on the right hand side of the display. Not quite what I would expect, but I can certainly live with that.Makes me wonder though why the MIOS boot message comes out using all 16 characters ??BTW: The datasheet says its a KS0066 or compatibleMany thanksReiner Quote Link to comment Share on other sites More sharing options...
TK. Posted September 18, 2009 Report Share Posted September 18, 2009 Thats the normal behaviour of most 1x16 displays - unfortunately...When you are using the search function of this forum, you will find many postings where people reported the same.Makes me wonder though why the MIOS boot message comes out using all 16 characters ??What's exactly your boot message?BTW: The datasheet says its a KS0066 or compatibleController compatibility doesn't ensure, that characters are print at the same position.The character position depends on the way, how the manufacturer connected the LCD row/columns to the controller.However, if you are planning to program your own application, the solution is simple: use 0x00..0x07 to address the left half, and 0x40..0x47 to address the right half.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
surei Posted September 18, 2009 Author Report Share Posted September 18, 2009 Hallo Thorsten,many thanks for your answer. Actually, I did search, but perhaps not thoroughly enough, sorry. It did turn up a large number of things, but nothing seemed to answer the question.Anyway, I was wrong about the boot message (meaning the MIOS copyright message). It actually displayed he first eight characters of each line of it. It did look funny, but it didn't occured to me it was wrong.So all is cleared up, and as you said, it's easy to work around it once you know it behaves that way. So the thingy is working fine now.ThanksReiner 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.