TI中文支持网
TI专业的中文技术问题搜集分享网站

GPIO_CFG_OUT_STD输出引脚是主动驱动的高和低,主动驱动什么意思?和普通输出引脚有什么区别

 GPIO_CFG_OUT_STD输出引脚是主动驱动的高和低,主动驱动什么意思?和普通输出引脚有什么区别 ?

GPIO_CFG_OUT_STR_LOW 引脚强度设置为低,什么意思?什么时候需要设置引脚强度?

Viki Shi:

#define GPIO_CFG_OUTPUT(((uint32_t) 0) << GPIO_CFG_IO_LSB) /*!< @hideinitializer Pin is an output. */
#define GPIO_CFG_OUT_STD(((uint32_t) 0) << GPIO_CFG_IO_LSB) /*!< @hideinitializer Output pin is actively driven high and low */
#define GPIO_CFG_OUT_OD_NOPULL(((uint32_t) 2) << GPIO_CFG_IO_LSB) /*!< @hideinitializer Output pin is Open Drain */
#define GPIO_CFG_OUT_OD_PU(((uint32_t) 4) << GPIO_CFG_IO_LSB) /*!< @hideinitializer Output pin is Open Drain w/ pull up */
#define GPIO_CFG_OUT_OD_PD(((uint32_t) 6) << GPIO_CFG_IO_LSB) /*!< @hideinitializer Output pin is Open Drain w/ pull dn */#define GPIO_CFG_OUT_STR_LOW(((uint32_t) 0) << GPIO_CFG_OUT_STRENGTH_LSB) /*!< @hideinitializer Set output pin strength to low */
#define GPIO_CFG_OUT_STR_MED(((uint32_t) 1) << GPIO_CFG_OUT_STRENGTH_LSB) /*!< @hideinitializer Set output pin strength to medium */
#define GPIO_CFG_OUT_STR_HIGH(((uint32_t) 2) << GPIO_CFG_OUT_STRENGTH_LSB) /*!< @hideinitializer Set output pin strength to high */#define GPIO_CFG_OUT_HIGH(((uint32_t) 1) << GPIO_CFG_OUT_BIT) /*!< @hideinitializer Set pin's output to 1. */
#define GPIO_CFG_OUT_LOW(((uint32_t) 0) << GPIO_CFG_OUT_BIT) /*!< @hideinitializer Set pin's output to 0. */

设置引脚的驱动强度,有些应用需要引脚有高驱动能力

赞(0)
未经允许不得转载:TI中文支持网 » GPIO_CFG_OUT_STD输出引脚是主动驱动的高和低,主动驱动什么意思?和普通输出引脚有什么区别
分享到: 更多 (0)