// Slow Slew Rate, 100MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11, 0x70A0U); GPIO_PinInit(GPIO1, 11, &led_config); } else { // GPIO2 IOMUXC_GPR->GPR26 |= (1u << 11); // Fast Slew Rate, 200MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11, 0x70F9U); ...
// Slow Slew Rate, 100MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11,0x70A0U); GPIO_PinInit(GPIO1,11, &led_config); } else { // GPIO2 IOMUXC_GPR->GPR26 |= (1u<<11); // Fast Slew Rate, 200MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11,0x70F9U); GPIO_Pin...
速度设置影响的是上升率(Slew Rate). 为了降低EMI,应该尽量使用低速设置.
boolis_normal_gpio=false;intmain(void){BOARD_ConfigMPU();BOARD_InitBootClocks();/* Define the init structure for the output LED pin*/gpio_pin_config_t led_config={kGPIO_DigitalOutput,0,kGPIO_NoIntmode};CLOCK_EnableClock(kCLOCK_Iomuxc);IOMUXC_SetPinMux(IOMUXC_GPIO_11_GPIOMUX_IO11,0...
// Slow Slew Rate, 100MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11, 0x70A0U); GPIO_PinInit(GPIO1, 11, &led_config); } else { // GPIO2 IOMUXC_GPR->GPR26 |= (1u << 11); // Fast Slew Rate, 200MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11, 0x70F9U); ...
In the RT600 and RT700 reference manual there is a GPIO setting to configure a GPIO's slew rate. This setting is either "disabled (default)" or "enabled." How is this setting tuning the internal driving circuit of the GPIO in its disabled and enabled state? Best, Aaron Labels: Packag...
voidio_test_init(booluseNormalGpio){gpio_pin_config_t led_config={kGPIO_DigitalOutput,0,kGPIO_NoIntmode};CLOCK_EnableClock(kCLOCK_Iomuxc);IOMUXC_SetPinMux(IOMUXC_GPIO_11_GPIOMUX_IO11,0U);// Fast Slew Rate, R0/6, 200MHzIOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11,0x70F9U)...
// Fast Slew Rate, R0/6, 200MHz IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11, 0x70F9U); if (useNormalGpio) { // GPIO1 IOMUXC_GPR->GPR26 &= ~(1u << 11); GPIO_PinInit(GPIO1, 11, &led_config); } else { // GPIO2 ...
Re: ESP32 GPIO slew rate/risetime by justsomeaccount » Thu Feb 01, 2024 7:46 am ESP_Sprite wrote: ↑ Thu Feb 01, 2024 4:09 am Note that those rise and fall times are affected by your probe capacitance as well (although your measurements do give some baseline; as in the 'raw...
{// GPIO1IOMUXC_GPR->GPR26 &= ~(1u<<11);// Slow Slew Rate, 100MHzIOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11,0x70A0U); GPIO_PinInit(GPIO1,11, &led_config); }else{// GPIO2IOMUXC_GPR->GPR26 |= (1u<<11);// Fast Slew Rate, 200MHzIOMUXC_SetPinConfig(IOMUXC_GPIO...