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.

Configure McBSP in McBSP_SlaveExample project of OMAP L138 LCDK

Other Parts Discussed in Thread: OMAPL138

Dear All,

I've been trying to configure the McBSP of our OMAP L138 LCDK by using the  McBSP_SlaveExample which is available on the following directory:

ti\pdk_OMAPL138_1_01_00_02\packages\ti\drv\exampleProjects\MCBSP_SlaveExampleProject

The example runs without any problem, however, I have the following questions:

1. Is there any tutorial, beside the McBSP user manual which explains the functions used in this example? 

2. The following is a function called in the "MCBSP_SlaveExampleProject_main.c" file. Do I need to manually change these pinmux configurations? If yes, how should I do it?

void configureMcbsp(void)
{
    CSL_SyscfgRegsOvly syscfgRegs = (CSL_SyscfgRegsOvly)CSL_SYSCFG_0_REGS;

    syscfgRegs->PINMUX1 &= ~(CSL_SYSCFG_PINMUX1_PINMUX1_7_4_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_11_8_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_15_12_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_19_16_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_23_20_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_27_24_MASK |
                             CSL_SYSCFG_PINMUX1_PINMUX1_31_28_MASK);

    syscfgRegs->PINMUX1 = 0x22222220;
}

  • Hi Sajad Rahmdel,
    You no need to change it in example. Its done for McBSP selection.
    PINMUX setting is must to use the peripheral as peripherals were shared the same pin, we should do PINMUX to select the functionality of pins.
    Please refer to the following docs folder.
    C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\csl\docs\cslr_userguide.pdf