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.

[参考译文] AM6422:GPIO 控制

Guru**** 2386640 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1501154/am6422-gpio-control

器件型号:AM6422

工具/软件:

我需要通过 GPIO0_45控制 LED。 按如下方式设置寄存器后、没有高电平信号输出可点亮 LED

GPIO0_45 //heart_bit LED

1>将 GPIO_SET_DATA23 (0060 0040h)写入高电平:
   MW 0x00600040 0x00000200  

2>将 GPIO_DIR23写入输出:

MW 0x00600038 0xffdfff //输出

3>读取 GPIO_OUT_DATA23 (0x0060003c)

   MD 0x0060003c 1
   0060003c:00000200

其他信息:

PADCONFIG46 (0x000F40B8):

=> MD 0x000F40B8 1
000f40b8:00214007