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.

[参考译文] TMS320F280049:Driverlib API 和读取-修改-写入指令

Guru**** 2522770 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/793937/tms320f280049-driverlib-api-and-read-modify-write-instructions

器件型号:TMS320F280049

各位专家、您好!

TI 提供 driverlib 函数:void GPIO_WritePin (UINT16引脚、UINT16 outVal)。 它通过修改 GPIO 数据寄存器来改变 GPIO 状态。 在最坏的情况下、它是否会受到"读-修改-写指令"的影响?

谢谢

谢尔登

无效

GPIO_WritePin (UINT16引脚、UINT16 outVal)

无效

GPIO_WritePin (UINT16引脚、UINT16 outVal) void

GPIO_WritePin (UINT16引脚、UINT16 outVal)

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

    我在 driverlib (gpio.h 文件)中看到此函数的以下定义-

    GPIO_writePin (uint32_t 引脚、uint32_t outVal)

    此函数更新设置和清除寄存器而不是数据寄存器。 您使用的是哪个版本的 driverlib?

    此致、
    Vivek Singh
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    假设问题已解决、则将其标记为已关闭。