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.

LCD Interfacing -Reg

Other Parts Discussed in Thread: MSP430G2211

Hi,

 

I am doing on of my project with msp430g2211 controller.the controller have only one port.if i am using 4 bit mode communication means

P1.4    ->D4

P1.5   ->D5

P1.6   ->D6

P1.7   ->D7

P1.0  ->E

P1.1 ->RS

The remaining Pins 1.2 & 1.3 i used for other inputs like switch and other.if i am using like this whether it  will cause any problem?will i use the remaining 2 pins for others?

 

Thanks in advance.

 

Joseph.D

  • On hardware side, all ins are independently programmable.

    Only our software needs to ensure that it doesn't accidentally touch the register bits from teh other funcitonality.

    So your LCD function must not use P1OUT=xxx. It always has to clear the bits no longer used and set the bits now used, so that the other two bits are never ever changed. Same for the function that uses the other two bits.

    It's not difficult, but it needs to be kept in mind.

  • Hello Joseph Christober

    I have a Library that can help you with this display. I always use this display in my projects so I optimize the library as well.

    The example that is attached to the MSP430F5739 is compiled so you'll have to change the port you want to use and Timer0.

    graciously


    6102.Exemplo_Principal.zip
    Rodrigo Rodrigues

     

     

     

**Attention** This is a public forum