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.

CCS/MSP430F413: lcd memory mapping

Part Number: MSP430F413

Tool/software: Code Composer Studio

const char digit[40] =
{
0x11, 0x11, // '0' LCD segments a+b & c+d = lower two bytes
0x11, 0x00, // '0' LCD segments e+f & g+h = upper two bytes
0x10, 0x01, // '1'
0x00, 0x00, // '1'

}

how to decode this values

  • Hi,

    Please see the UG. You can find this part:

    The data in digit[40] is saved into LCDMEMx.

    Eason

  • i need this table calculation 

  • Hi,

    There is no calculation. Just one-to-one match. This part of code is to control COM and SEG. I have circled for you.

    All you need is to look into our UG and the datasheet of your LCD.  

    Eason

  • if you don't mind can you example me with one or two example 

  • Hi,

    Please look into our UG first(https://www.ti.com/lit/ug/slau056l/slau056l.pdf). All you need is in there.

    If you have any specific question. I am willing to answer.

    Eason

  • can i get how to interface with com0 with respect to port4(msp430f413).

    how to enable the com0(msp430f413)

  • Hi,

    See from the UG. COM0 has no relationship with port4.

    If you want to control COM0, you need to set the first bit of LCDMEMx which is even number.

    As this E2E thread has been solved, I will close this thread.

    Eason 

  •  can i get referral code

    LCDM1 = 0X00;

    LCDM2 = 0X02;

    LCDM3 = 0X04;

    LCDM4 = 0X06;

    in this way i want to pass the values or any other way 

  • That is all the example code that we have.

    /* --COPYRIGHT--,BSD_EX
     * Copyright (c) 2012, Texas Instruments Incorporated
     * All rights reserved.
     *
     * Redistribution and use in source and binary forms, with or without
     * modification, are permitted provided that the following conditions
     * are met:
     *
     * *  Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     *
     * *  Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the distribution.
     *
     * *  Neither the name of Texas Instruments Incorporated nor the names of
     *    its contributors may be used to endorse or promote products derived
     *    from this software without specific prior written permission.
     *
     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     *
     *******************************************************************************
     * 
     *                       MSP430 CODE EXAMPLE DISCLAIMER
     *
     * MSP430 code examples are self-contained low-level programs that typically
     * demonstrate a single peripheral function or device feature in a highly
     * concise manner. For this the code may rely on the device's power-on default
     * register values and settings such as the clock configuration and care must
     * be taken when combining code from several examples to avoid potential side
     * effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware
     * for an API functional library-approach to peripheral configuration.
     *
     * --/COPYRIGHT--*/
    //*****************************************************************************
    //  MSP-FET430P410 Demo - LCD, Display "6543210" on STK/EVK LCD
    //
    //  Description: Display "6543210" on MSP-EVK430S320 LCD.
    //  ACLK = LFXT1 = 32768, MCLK = SMCLK = DCOCLK = (121+1) x 2 x ACLK = 7995392Hz
    //  //* An external watch crystal between XIN & XOUT is required for ACLK *//	
    //
    //                                 Connections MSP430 -> LCD
    //                                 -------------------------
    //
    //                                T.I.          T.I. MSP-EVK430S320
    //                           MSP430x41x MCU   STK/EVK 6.5 digit 4 mux LCD
    //                                                    #T218010
    //                           ---------------       --------------
    //                          |          COM3 |-----|2    COM4     |
    //                          |          COM2 |-----|1    COM3     |
    //                          |          COM1 |-----|3    COM2     |
    //                          |          COM0 |-----|4,20 COM1     |
    //                          |          SEG0 |-----|19            |
    //                          |          SEG1 |-----|18            |
    //                          |          SEG2 |-----|17            |
    //                          |          SEG3 |-----|16            |
    //                          |          SEG4 |-----|15            |
    //                          |          SEG5 |-----|14            |
    //                          |          SEG6 |-----|13            |
    //                          |          SEG7 |-----|12            |
    //                          |          SEG8 |-----|11            |
    //                          |          SEG9 |-----|10            |
    //                          |          SEG10|-----|9             |
    //                          |          SEG11|-----|8             |
    //                          |          SEG12|-----|7             |
    //                          |          SEG13|-----|6             |
    //                          |          SEG14|-----|5 (bits C,E,H |
    //                          |               |     |   of digit 7)|
    //                          |               |      --------------
    //                          |               |
    //                           ---------------
    //
    //                   NOTE: Pin R03 on the MSP430 must be connected to GND
    //
    //  M. Buccini
    //  Texas Instruments Inc.
    //  Feb 2005
    //  Built with CCE Version: 3.2.0 and IAR Embedded Workbench Version: 3.21A
    //*****************************************************************************
    #include <msp430.h>
    
    const char digit[10] =
    {
      0xB7,  /* "0" LCD segments a+b+c+d+e+f */
      0x12,  /* "1" */
      0x8F,  /* "2" */
      0x1F,  /* "3" */
      0x3A,  /* "4" */
      0x3D,  /* "5" */
      0xBD,  /* "6" */
      0x13,  /* "7" */
      0xBF,  /* "8" */
      0x3F   /* "9" */
    };
    
    int main(void)
    {
       int i;
      WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer
      FLL_CTL0 |= XCAP14PF;                     // Configure load caps
      LCDCTL = LCDP2 + LCD4MUX + LCDON;         // STK LCD 4-Mux, segments S0-S27
      BTCTL = BTFRFQ1;                          // STK LCD freq = ACLK/128
      P5SEL = 0xFC;                             // Set Rxx and COM pins for LCD
    
      for (;;)
      {
        for (i=0; i<7; ++i)                     // Display "6543210"
          LCDMEM[i] = digit[i];
      }
    }
    
    
    

    /* --COPYRIGHT--,BSD_EX
     * Copyright (c) 2012, Texas Instruments Incorporated
     * All rights reserved.
     *
     * Redistribution and use in source and binary forms, with or without
     * modification, are permitted provided that the following conditions
     * are met:
     *
     * *  Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     *
     * *  Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the distribution.
     *
     * *  Neither the name of Texas Instruments Incorporated nor the names of
     *    its contributors may be used to endorse or promote products derived
     *    from this software without specific prior written permission.
     *
     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     *
     *******************************************************************************
     * 
     *                       MSP430 CODE EXAMPLE DISCLAIMER
     *
     * MSP430 code examples are self-contained low-level programs that typically
     * demonstrate a single peripheral function or device feature in a highly
     * concise manner. For this the code may rely on the device's power-on default
     * register values and settings such as the clock configuration and care must
     * be taken when combining code from several examples to avoid potential side
     * effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware
     * for an API functional library-approach to peripheral configuration.
     *
     * --/COPYRIGHT--*/
    //*****************************************************************************
    //  MSP-FET430P410 Demo - LCD, Display Numbers on a Static LCD
    //
    //  Description: This program displays a 3.5 digit number on a static LCD,
    //  then waits in low power mode 3. The leading digit must be '1', nothing
    //  else will display.  To use the program enter a 3.5 digit BCD
    //  (characters 0-9) number in the program for the variable "value".
    //  Download the program and run it.
    //  ACLK = LFXT1 = 32768 Hz, MCLK = SMCLK = DCO = 32 x ACLK = 1048576 Hz
    //  //* An external watch crystal is required on XIN/XOUT for ACLK *//	
    //
    //
    //                                 Connections MSP430 -> LCD
    //                                 -------------------------
    //
    //                                T.I.               Varitronix
    //                           MSP430x41x MCU     3.5 digit, static LCD
    //                                                 # VI-302-DP-S
    //                           ---------------       --------------
    //                          |          COM0 |-----|1,40 COM      |
    //                          |          SEG0 |-----|21            |
    //                          |          SEG1 |-----|20            |
    //                          |          SEG2 |-----|19            |
    //                          |          SEG3 |-----|18            |
    //                          |          SEG4 |-----|17            |
    //                          |          SEG5 |-----|22            |
    //                          |          SEG6 |-----|23            |
    //                          |          SEG7 |-----|38 (low batt) |
    //                          |          SEG8 |-----|25            |
    //                          |          SEG9 |-----|24            |
    //                          |          SEG10|-----|15            |
    //                          |          SEG11|-----|14            |
    //                          |          SEG12|-----|13            |
    //                          |          SEG13|-----|26            |
    //                          |          SEG14|-----|27            |
    //                          |          SEG15|-----|28 (L)  COLON |
    //                          |          SEG16|-----|30            |
    //                          |          SEG17|-----|29            |
    //                          |          SEG18|-----|11            |
    //                          |          SEG19|-----|10            |
    //                       ---|R03       SEG20|-----|9             |
    //                      |   |          SEG21|-----|31            |
    //                      |   |          SEG22|-----|32            |
    //                     \|/  |          SEG23|-----|3 (B-C) =     |
    //                     GND  |               |     | .5 digit ="1"|
    //                           ---------------       --------------
    //
    //                 NOTE: Pin R03 on the MSP430 must be connected to GND
    //
    //  G. Morton / H. Grewal
    //  Texas Instruments Inc.
    //  Feb 2005
    //  Built with CCE Version: 3.2.0 and IAR Embedded Workbench Version: 3.21A
    //*****************************************************************************
    #include <msp430.h>
    
    /* Variable Declarations */
    unsigned int value = 0x1789;                // Number to display,
                                                // range = 0 - 1999 = max display
                                                // NOTE: DO NOT use leading zeros
    
    unsigned int h;
    unsigned int i;
    unsigned int dig_pntr;
    volatile char* LCD = LCDMEM;
    
    
    /* LCD Mapping Array */
    const char digit[40] =
    {
      0x11, 0x11,  // '0'    LCD segments a+b & c+d = lower two bytes
      0x11, 0x00,  // '0'    LCD segments e+f & g+h = upper two bytes
      0x10, 0x01,  // '1'
      0x00, 0x00,  // '1'
      0x11, 0x10,  // '2'
      0x01, 0x01,  // '2'
      0x11, 0x11,  // '3'
      0x00, 0x01,  // '3'
      0x10, 0x01,  // '4'
      0x10, 0x01,  // '4'
      0x01, 0x11,  // '5'
      0x10, 0x01,  // '5'
      0x01, 0x11,  // '6'
      0x11, 0x01,  // '6'
      0x11, 0x01,  // '7'
      0x00, 0x00,  // '7'
      0x11, 0x11,  // '8'
      0x11, 0x01,  // '8'
      0x11, 0x11,  // '9'
      0x10, 0x01,  // '9'
    };
    
    
    int main(void)
    {
      volatile unsigned int i;                  // Use volatile to prevent removal
                                                // by compiler optimization
    
      WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
      FLL_CTL0 |= XCAP14PF;                     // Configure load caps
      for (i = 0; i < 10000; i++);              // Delay for 32 kHz crystal to
                                                // stabilize
    
      // Initialize LCD
      LCDCTL = LCDP1+LCDP0+LCDSTATIC+LCDON;     // Static LCD, segments S0-S23
      BTCTL  = BTFRFQ1+BTFRFQ0;                 // Set freqLCD = ACLK/256
    
      // Initialize port pins
      P1DIR = 0xFF;                             // Set port to outputs
      P2DIR = 0xFF;                             // Set port to outputs
      P3DIR = 0xFF;                             // Set port to outputs
      P4DIR = 0xFF;                             // Set port to outputs
      P5DIR = 0xFF;                             // Set port to outputs
      P6DIR = 0xFF;                             // Set port to outputs
    
      // Clear LCD memory to clear display
      for (i = 0; i < 12; i++)
      {
        LCD[i] = 0;
      }
    
      // Display lower 3 digits
      for (h = 0; h < 3; h++)
      {
        dig_pntr = (value & 0xF) << 2;          // Set pointer to start of
                                                // digit in table
    
        for (i = 0; i < 4; i++)     // Load 4 bytes of digit
        {
          LCD[i] = digit[dig_pntr++];       // Byte of digit to byte of
                                                // LCD memory and increment to
                                                // next byte of digit
        }
    
        value >>= 4;                            // Shifts value right to display
                                                // next character
    
        LCD += 4;                               // Increment by 4 for next
                                                // character location
      }
    
      if (value == 1)                           // Test if leading 1 needs to
      {                                         // be displayed
        LCDM12 |= 0x10;                         // Set bit to display leading 1
      }
    
      LPM3;                                     // Enter low power mode 3
    }
    
    

    /* --COPYRIGHT--,BSD_EX
     * Copyright (c) 2012, Texas Instruments Incorporated
     * All rights reserved.
     *
     * Redistribution and use in source and binary forms, with or without
     * modification, are permitted provided that the following conditions
     * are met:
     *
     * *  Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     *
     * *  Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the distribution.
     *
     * *  Neither the name of Texas Instruments Incorporated nor the names of
     *    its contributors may be used to endorse or promote products derived
     *    from this software without specific prior written permission.
     *
     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     *
     *******************************************************************************
     * 
     *                       MSP430 CODE EXAMPLE DISCLAIMER
     *
     * MSP430 code examples are self-contained low-level programs that typically
     * demonstrate a single peripheral function or device feature in a highly
     * concise manner. For this the code may rely on the device's power-on default
     * register values and settings such as the clock configuration and care must
     * be taken when combining code from several examples to avoid potential side
     * effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware
     * for an API functional library-approach to peripheral configuration.
     *
     * --/COPYRIGHT--*/
    //*****************************************************************************
    //  MSP-FET430P410 Demo - LCD, Display Numbers on a 4-Mux LCD
    //
    //  Description: This program displays digits stored in the variable "value"
    //  on a 4-mux LCD, then waits in low power mode 3. To use the program run it
    //  as is or use the debugger to assign a different BCD number (digits 0-9)
    //  to the variable "value".
    //  ACLK = LFXT1 = 32768 Hz, MCLK = SMCLK = DCO = 32 x ACLK = 1048576 Hz
    //  //* An external watch crystal is required on XIN/XOUT for ACLK *//	
    //
    //                                 Connections MSP430 -> LCD
    //                                 -------------------------
    //
    //                                T.I.            T.I. MSP-EVK430S320
    //                           MSP430x41x MCU   STK/EVK 6.5 digit 4 mux LCD
    //                                                    #T218010
    //                           ---------------       --------------
    //                          |          COM3 |-----|2    COM4     |
    //                          |          COM2 |-----|1    COM3     |
    //                          |          COM1 |-----|3    COM2     |
    //                          |          COM0 |-----|4,20 COM1     |
    //                          |          SEG0 |-----|19            |
    //                          |          SEG1 |-----|18            |
    //                          |          SEG2 |-----|17            |
    //                          |          SEG3 |-----|16            |
    //                          |          SEG4 |-----|15            |
    //                          |          SEG5 |-----|14            |
    //                          |          SEG6 |-----|13            |
    //                          |          SEG7 |-----|12            |
    //                          |          SEG8 |-----|11            |
    //                          |          SEG9 |-----|10            |
    //                          |          SEG10|-----|9             |
    //                          |          SEG11|-----|8             |
    //                          |          SEG12|-----|7             |
    //                          |          SEG13|-----|6             |
    //                          |          SEG14|-----|5 (bits C,E,H |
    //                          |               |     |   of digit 7)|
    //                          |               |      --------------
    //                          |               |
    //                           ---------------
    //
    //                   NOTE: Pin R03 on the MSP430 must be connected to GND
    //
    //  G. Morton / H. Grewal
    //  Texas Instruments Inc.
    //  Feb 2005
    //  Built with CCE Version: 3.2.0 and IAR Embedded Workbench Version: 3.21A
    //*****************************************************************************
    #include <msp430.h>
    
    
    unsigned int h;
    unsigned int i;
    unsigned int dig_pntr;
    
    
    /* Variable Declarations */
    unsigned long value = 0x43044;               // Number to display,
                                                // range = 0 to 65535
                                                // NOTE: DO NOT use leading zeros
                                                //       or it will be interpreted
                                                //       as octal data
    
    
    volatile char* LCD = LCDMEM;
    
    
    /* LCD Mapping Array */
    const char digit[10] =
    {
      0xB7,  // '0'    LCD segments a+b+c+d+e+f
      0x12,  // '1'
      0x8F,  // '2'
      0x1F,  // '3'
      0x3A,  // '4'
      0x3D,  // '5'
      0xBD,  // '6'
      0x13,  // '7'
      0xBF,  // '8'
      0x3F   // '9'
    };
    
    
    int main(void)
    {
      volatile unsigned int i;                  // Use volatile to prevent removal
                                                // by compiler optimization
    
      WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
      FLL_CTL0 |= XCAP14PF;                     // Configure load caps
      for (i = 0; i < 10000; i++);              // Delay for 32 kHz crystal to
                                                // stabilize
    
      // Initialize LCD
      LCDCTL = LCDP1+LCDP0+LCD4MUX+LCDON;       // 4-Mux LCD, segments S0-S23
      BTCTL  = BTFRFQ1;                         // Set freqLCD = ACLK/128
      P5SEL  = 0xFC;                            // Set Rxx and COM pins for LCD
    
      // Clear LCD memory to clear display
      for (i=0; i<12; i++)
      {
        LCD[i] = 0;
      }
    
      // Display contents of the variable value
      for (i=0; i<5; i++)
      {
        LCD[i] = digit[value & 0xF];        // Remainder = character in table to display
        value >>= 4;                            // Shifts right so next character can be displayed
      }
    
      LPM3;                                     // Enter low power mode 3
    }
    

  • in msp430 :what is this 

    Set Rxx and COM pins for LCD

    in  com0 which number display 

    in com2 which number display 

    in com3 which number display

    in com4 which number display 

    can i get any schematic diagram and video for these any one exaple code 

    MSP-FET430P410 Demo - LCD, Display "6543210" on STK/EVK LCD
    //
    // Description: Display "6543210" on MSP-EVK430S320 LCD.
    // ACLK = LFXT1 = 32768, MCLK = SMCLK = DCOCLK = (121+1) x 2 x ACLK = 7995392Hz
    // //* An external watch crystal between XIN & XOUT is required for ACLK *//
    //
    // Connections MSP430 -> LCD
    // -------------------------
    //
    // T.I. T.I. MSP-EVK430S320
    // MSP430x41x MCU STK/EVK 6.5 digit 4 mux LCD
    // #T218010
    // --------------- --------------
    // | COM3 |-----|2 COM4 |
    // | COM2 |-----|1 COM3 |
    // | COM1 |-----|3 COM2 |
    // | COM0 |-----|4,20 COM1 |
    // | SEG0 |-----|19 |
    // | SEG1 |-----|18 |
    // | SEG2 |-----|17 |
    // | SEG3 |-----|16 |
    // | SEG4 |-----|15 |
    // | SEG5 |-----|14 |
    // | SEG6 |-----|13 |
    // | SEG7 |-----|12 |
    // | SEG8 |-----|11 |
    // | SEG9 |-----|10 |
    // | SEG10|-----|9 |
    // | SEG11|-----|8 |
    // | SEG12|-----|7 |
    // | SEG13|-----|6 |
    // | SEG14|-----|5 (bits C,E,H |
    // | | | of digit 7)|
    // | | --------------
    // | |
    // ---------------
    //
    // NOTE: Pin R03 on the MSP430 must be connected to GND
    //
    // M. Buccini
    // Texas Instruments Inc.
    // Feb 2005
    // Built with CCE Version: 3.2.0 and IAR Embedded Workbench Version: 3.21A
    //*****************************************************************************
    #include <msp430.h>

    const char digit[10] =
    {
    0xB7, /* "0" LCD segments a+b+c+d+e+f */
    0x12, /* "1" */
    0x8F, /* "2" */
    0x1F, /* "3" */
    0x3A, /* "4" */
    0x3D, /* "5" */
    0xBD, /* "6" */
    0x13, /* "7" */
    0xBF, /* "8" */
    0x3F /* "9" */
    };

    int main(void)
    {
    int i;
    WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
    FLL_CTL0 |= XCAP14PF; // Configure load caps
    LCDCTL = LCDP2 + LCD4MUX + LCDON; // STK LCD 4-Mux, segments S0-S27
    BTCTL = BTFRFQ1; // STK LCD freq = ACLK/128
    P5SEL = 0xFC; // Set Rxx and COM pins for LCD

    for (;;)
    {
    for (i=0; i<7; ++i) // Display "6543210"
    LCDMEM[i] = digit[i];
    }
    }

  • Set Rxx and COM pins for LCD: It means select the LCD functions for related pin. You can find the description of PxSEL in UG.

    Can i get any schematic diagram and video for these any one example code : No, all we have is there. Sample code, datasheet and UG are your friends.

    Hi guy, your questions are much beyond this thread. I don't want this thread without an end. I will close it.

    Please carefully read the UG and schematic first. It will much save your development time.

    Eason

  • what about com1

    which bit i what to enable

    ex: first bit of LCDMEMx which is even number.

  • About com1 please refer to the set of com0

  • i am not clear with your data. please send the related document.

  • I am sorry, as I said before, there are no other document. only UG, datasheet.

**Attention** This is a public forum