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 read pin maps for the LCDK C6748 especially for GPIO LEDs?

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hi,

 My name is Hila and i'm working with the LCDK C6748.

 I'm trying to use the leds but I dont know there pin numbers.

 for D4 (GP6[13]) and D5 (GP6[12]) I know there pin number: 110 and 109

 but I don't know the pin numbers  for GP2[12] and GP0[9] which are the other 2 leds.

 can you help me?

 

Regards,

Hila Ratson

  • Hi,

    We are working on this and will update you shortly.

    Thanks & regards,
    Sivaraj K
  • Dear Hila Ratson,

    The following calculation is for OMAPL138 starterware package.

    ((2*16)+12)+1 = 45 = GPIO2_12
    ((0*16)+9)+1 = 10 = GPIO0_9

    GP2[12] -> 45
    GP0[9]) -> 10
  • Hi Titus and Hila,

    I also tried to toggle all 4 of the LCDK's LEDs today. Regarding the formula if you want to understand the background: each GPIO bank has 16 pins, i.e. 16 bits. So 2 GPIO banks reside within a GP register which is 32 bit wide.

    Edit: the following is only true, if you have the OMAP-L138 SoC I think.

    You'll probably also need to know the PINMUX definitions, which can be found in hw_syscfg0_C6748.h, e.g. to add

    /**
     * \brief   This function selects the Pin 9 of GPIO bank 0 for use.
     *          This GPIO pin is multiplexed with pins of other peripherals
     *          in the System on Chip(SoC).
     *
     * \return  None.
     *
     */
    void GPIOBank0Pin9PinMuxSetup(void)
    {
         unsigned int savePinmux = 0;
    
         /*
         ** Clearing the bit in context and retaining the other bit values
         ** in PINMUX0 register.
         */
         savePinmux = (HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(0)) &
                      ~(SYSCFG_PINMUX0_PINMUX0_27_24));
    
         /* Setting the pins corresponding to GP0[9] in PINMUX0 register.*/
         HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(0)) =
              (PINMUX0_GPIO0_9_ENABLE | savePinmux);
    
    }

    Which in turn needs the following macro definition:

    /* Pin Multiplexing bit mask to select GP0[9] pin. */
    #define PINMUX0_GPIO0_9_ENABLE     (SYSCFG_PINMUX0_PINMUX0_27_24_GPIO0_9  << \
                                        SYSCFG_PINMUX0_PINMUX0_27_24_SHIFT)

    This refers to the StarterWare GPIO example. HTH.

    Titus, as I don't want to "waste" the LEDs for GPIO or unsolder them or the switches or buttons. Is it feasible to use GPIO8[10,12,13,14] on the LCDK? They do not seem to be used by other peripherals.

    Cheers

    Matthias

  • Dear Matthias,
    Yes, you can use GPIO8[10,12,13,14] pins in J15 connector.
  • Hello Titus,
    thank you. I updated my comment above concerning PINMUX. I think it is only valid for the OMAP SoC and not for the "standalone" C6748 DSP or is it also needed then?
    Cheers
  • Dear Matthias,
    Its applicable to both OMAPL138 and C6748 (also OMAPL137 and C6747).