Jakes Daddy Posted March 6, 2007 Report Share Posted March 6, 2007 Hi All, Just wondering if anyone can help with this. I'm making a MB with 2 16x2 LCDs. The basic hardware is complete, all my buttons, faders and LEDs are connected, and I have a basic C app (based on the skeleton) that lights the LEDs, and displays on LCD 1 when a button is pressed or fader moved - perfect, all of my soldering is good ;DBut I can't get the 2nd LCD to display anything. I've wired it as per (my understanding of) the instructions for 2 LCDs (ie. all the pins with the exception of E connected to both LCDs - E on the 2nd LCD goes to J10 RC. IE.LCD1 CoreJ15 LDC2 ------------D0--------------- ------------D1--------------- ------------D2--------------- ------------D3--------------- ------------D4--------------- ------------D5--------------- ------------D6--------------- ------------D7--------------- ------------B+--------------- ------------B---------------- ------------Vs--------------- ------------Vd--------------- ------------VO--------------- ------------RS--------------- ------------RW--------------- ------------E J10RC-- But I just can't get anything to display on LCD2 - My understanding of the C code is that I need to add 0X80 to the LCD cursor position to address the 2nd LCD - eg: MIOS_LCD_Clear(); MIOS_LCD_CursorSet(0x00); MIOS_LCD_PrintCString("MIDI Denon 1800F"); MIOS_LCD_CursorSet(0x80); MIOS_LCD_PrintCString("MIDI Denon 1800F"); MIOS_LCD_CursorSet(0x40); MIOS_LCD_PrintCString("Deck A"); MIOS_LCD_CursorSet(0xC0); MIOS_LCD_PrintCString("Deck B"); Only the 1st LCD displays the message - nothing at all on LCD2 !!!Any ideas ??CheersJD Quote Link to comment Share on other sites More sharing options...
Lall Posted March 6, 2007 Report Share Posted March 6, 2007 Hi,I've never done MIOS programming (I'm slowly starting to look into it) so forgive me in advance if that's completely stupid remark but could it be that you need to call the LCD_TypeSet function http://www.ucapps.de/cmios_fun.html#MIOS_LCD_TypeSet so that MIOS knows that you're using two LCDs?Best regards,Lall Quote Link to comment Share on other sites More sharing options...
Jakes Daddy Posted March 6, 2007 Author Report Share Posted March 6, 2007 Found the answer from reading the WIKI - I needed to call: MIOS_LCD_YAddressSet(0x00, 0x40, 0x80, 0xc0);Excellent ;D 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.