Search found 13 matches
- Tue Feb 27, 2018 3:44 pm
- Forum: General Discussion
- Topic: How to connect GPIO output with peripheral input - single pin
- Replies: 3
- Views: 5523
Re: How to connect GPIO output with peripheral input - single pin
I figured it out after stumbling across the GPIO_MODE_INPUT_OUTPUT definition in some code. It's not as easy as calling gpio_set_direction(GPIO_NUM_12, GPIO_MODE_INPUT_OUTPUT) as gpio_set_direction doesn't handle GPIO_MODE_INPUT_OUTPUT properly. It does seem to work when calling gpio_config() with t...
- Sat Feb 24, 2018 9:18 am
- Forum: General Discussion
- Topic: How to connect GPIO output with peripheral input - single pin
- Replies: 3
- Views: 5523
Re: How to connect GPIO output with peripheral input - single pin
Thanks, but GPIO_SYNC0_IN is #defined to 12 in my code for the SYNC_PIN_SOURCE_INTERNAL test, so my code is effectively the same as what you suggested.WiFive wrote:Shouldn't it be
Code: Select all
PIN_INPUT_ENABLE(GPIO_PIN_MUX_REG[12]); gpio_matrix_in(12, PWM0_SYNC0_IN_IDX, false);
- Fri Feb 23, 2018 1:57 pm
- Forum: General Discussion
- Topic: How to connect GPIO output with peripheral input - single pin
- Replies: 3
- Views: 5523
How to connect GPIO output with peripheral input - single pin
I have a GPIO output driving an external chip that I would like to connect to a MCPWM timer sync input, without using an extra pin. I haven't been able to get this to work, but ESP_Sprite's comment from this thread gives me hope: Are all pin uses mutually exclusive or may some be overlapped during u...