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_A controller on MSP430F4616 , segments 0- 3 problem

Other Parts Discussed in Thread: MSP430F4616

Hi

 

I am using MSP430F4616 processor , I use the built in LCD_A controller of this  MCU . We have 32 segments  LCD connected to LCD_A controller.

 

The LCD_A configured  with flowing settings

 

  // ********LCDACTL register

    //LCDFREQx  - 001 ACLK Divide by 64

    //LCDMXx    - 11 4-mux

    //LCDSON    - 0  All LCD segments are off

    //LCDON     - 1 LCD ,module is on

    LCDACTL = LCDON | LCD4MUX | LCDFREQ_64;

    //**********LCDAPCTL0, LCD_A Port Control Register 0

    //LCDS28 - off

    //LCDS24

    //LCDS20    all on

    //LCDS16

    //LCDS12

    //LCDS8

    //LCDS4

    //LCDS0

    LCDAPCTL0 = LCDS0 | LCDS4 | LCDS8 | LCDS12 | LCDS16 | LCDS20 | LCDS24 | LCDS28;

   

    //************** LCDAPCTL1, LCD_A Port Control Register 1

    //LCDS36  - off

    //LCDS32  - on

    LCDAPCTL1 = LCDS32;

   

    //**************LCDAVCTL0, LCD_A Voltage Control Register 0

    //R03EXT - 1 V5 is sourced from the R03 pin

    //REXT   - 1 V2 - V4 are sourced externally and the internal bias generator is switched off

    //VLCDEXT - 0 VLCD is generated internally

    //LCDCPEN - 0 Charge pump disabled.

    //VLCDREFx - Charge pump reference select default 0

    //LCD2B    - Bias select, 0 - 1/3 bias

    LCDAVCTL0 = LCDR03EXT |LCDREXT  ;

   

    //*****************LCDAVCTL1, LCD_A Voltage Control Register 1

    //VLCDx Bits - Charge pump voltage select - 0 disabled

    LCDAVCTL1 = 0;

 

 

I have problems with  segment 0  - to segment 3  , I just see nothing when I write to those segments , the another segments (4- 31) working ok.

As I understand , the segment 0 -3 in 4616 its multifunctional pins , which can be GPIO/Analog input/LCD pins.  

 

I configure those pins to be peripherals , via appropriate bits in Port selection register.

But how can I , chose between Analog input and LCD functionality ?  

 

What can be another problem with those segments ?

 

Thanks a lot

 

I urgently need the solution for this problem ,please help !!!!

 

 

 

 

 

  • Genady Kagan said:
    the another segments (4- 31) working ok.
    As I understand , the segment 0 -3 in 4616 its multifunctional pins , which can be GPIO/Analog input/LCD pins.

    S30-39 are multifunctional too. However, they are handled differently. On these pins, the LCDSx bit has precedence over the P7SEL.x bits.

    For S0..3, however, the P5SEL.x and P10SEL.x bits have precedence. This is because these pins are analog inputs where PxSEL.y completely disables the output logic for undisturbed analog input. (you can sample from the analog input even if PxSEL.y is not set at all, if you want)

    Thsi is documented in the device datasheet: applicaiton information->I/O schematics-> PortP5, P5.0 etc. Below the schematics (which tells you the same) is a truth table that contains the use of all the configuraiton bits.

  • Its working fine !

     

    Thanks a lot

**Attention** This is a public forum