This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to remap LCD port

Other Parts Discussed in Thread: MSP430F4260Hello. I am a newbie, maybe you can advise how to reconfigure the LCD port. MCU MSP430F4260, + 2 digit seven segment display, driving - static, and originally the organization is (MSP LCD): S0-1e, S1-1d, S2-1c, S3-2c, S4 -2d, S5-2e, S6-2g, S7-2f, S8-2a, S9-2b, S10-1b, S11-1a, S12-1f, S13-1g, COM- com. I want to use other display, where digits are reversed, (ie, S0-2e, S1- 2d ...) so maybe possible to correct code, without rerouting board. I would be grateful for any tips. Part of code is attached. Thanks!
  • You cannot remap the LCD signals to different ports. Only the secondary module functions and only if the MSP in question has a port remapping controller.

    However, the LCD pins are directlymapped to bits in the LCD module registers. So if you want to use different LCD layout, just imagine that those bits have changed their meaning.

    Don't take their orientation inside the bytes and the order of bytes as a rule how to use them. You can just think of them as separate bits to light up individual segments on the display. So it's just a matter of software which bits you set or not. Of course if there is some sort of pattern, the algorithm is simpler :)

  • Thank for reply! According to the code i replace  right digit patterns with left digit patterns, and now left digit works correctly,  but right with artefacts:/ So small question, why left and right same digit patterns are different, for example. 0x0011-digit 2 (LCDM2 part)0x0111-digit 2 (LCDM4 part) and 0x1100-digit 2 (LCDM1 part)0x1101-digit 2 (LCDM6 part). Thank!

  • Maybe you didn't properly enable/disable all used segments in LCDAPCTL0/1? This configuration perhaps needs to be mirrored/swapped too.

    Also, I don't know the actual wiring and assignment of MSP pins to LCD segments, so I cannot really answer your question. But it is likely that the two digits are not connected identically (with respect to the bit placement oin the memory registers). Maybe (for layout reasons) two lines were swapped or skipped and so was the meaning of the memory bit patterns.

    You can try setting indivdual bits only and check which LCD segments lights up. Then you know what means what and can write your own mapping table. After all, none of the LCD controlle rbits has a fixed meaning, only an assignment to a certain port pin. Only you can possibly know which line lights up which segment on the LCD.

  • Thanks. Problem solved.

**Attention** This is a public forum