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.

TDA4VM: 在TDA4VM的MCU3_0中,我想操作GPIO口PIN_PRG0_PRU1_GPO1,得到一段连续的拉低信号,但是操作无效。

Part Number: TDA4VM


1.我使用的SDK版本:ti-processor-sdk-rtos-j721e-evm-08_01_00_13

2.我在MCU3_0中使用以下代码,我将GPIO口PIN_PRG0_PRU1_GPO1引脚复用为了UART5的TX功能。

想将GPIO :PIN_PRG0_PRU1_GPO1拉低一段时间,来得到一段连续低的(0x00)信号,使其在UART5这边可以收到这段连续的拉低信号,但是操作无效,无法得到一段连续的拉低信号。

    uint32_t tmp = *((volatile uint32_t *)0x0011C104);  //save pre value

    *((volatile uint32_t *)(0x00600014+0x50)) = 0x00010007; //config gpio
    *((volatile uint32_t *)(0x00600014+0x50)) &= ~(1<<(64%32));//set gpio out
    *((volatile uint32_t *)(0x00600014+0x50)) |=  (1<<(64%32));//set gpio h
    *((volatile uint32_t *)(0x00600014+0x50)) &= ~(1<<(64%32));//set gpio l
    Osal_delay(1000);
    *((volatile uint32_t *)(0x00600014+0x50)) |= (1<<(64%32));//set gpio h
    *((volatile uint32_t *)0x0011C104) =tmp;//restore

帮忙看一下为什么无效,