在C28X的代码中按常规配置了一个gpio4,可以拉高拉低。然后在cla文件中添加了F2837xS_gpio.h,在任务中写上GpioDataRegs.GPACLEAR.bit.GPIO4 = 1,用示波器观察IO口信号,没发现拉低
Eric Ma:
要在初始化的时候配置GPACSEL1寄存器,将GPIO4的主权给CLA。
ERIC
在C28X的代码中按常规配置了一个gpio4,可以拉高拉低。然后在cla文件中添加了F2837xS_gpio.h,在任务中写上GpioDataRegs.GPACLEAR.bit.GPIO4 = 1,用示波器观察IO口信号,没发现拉低
Eric Ma:
回复 Eric Ma:
GPACSEL1 is shown in Figure 7-15 and described in Table 7-25.Return to Summary Table.GPIO A Core Select Register (GPIO0 to 7)Selects which master's GPIODAT/SET/CLEAR/TOGGLE registers control this GPIO pinxx00: CPU1 selectedxx01: CPU1.CLA1 selectedxx10: CPU2 selectedxx11: CPU2.CLA1 selected
15-12 GPIO3 R/W 0h Selects which master's GPIODAT/SET/CLEAR/TOGGLE registerscontrol this GPIO pin
Eric