Search found 5 matches

by Wielebny
Mon Jan 04, 2021 11:15 pm
Forum: ESP-IDF
Topic: Connect RMT TX out to MCPWM FAULT in
Replies: 2
Views: 2152

Re: Connect RMT TX out to MCPWM FAULT in

Thank you for the right direction.

Code: Select all

	gpio_set_direction(GPIO_NUM_17, GPIO_MODE_INPUT_OUTPUT);
	gpio_matrix_out(GPIO_NUM_17, RMT_SIG_OUT0_IDX, 0, 0);
	gpio_matrix_in(GPIO_NUM_17, PWM0_F0_IN_IDX, 0);
regards
Paweł
by Wielebny
Sun Jan 03, 2021 11:50 am
Forum: ESP-IDF
Topic: Connect RMT TX out to MCPWM FAULT in
Replies: 2
Views: 2152

Connect RMT TX out to MCPWM FAULT in

Hi, Its possible to connect RMT TX to MCPWM FAULT via gpio matrix? Im trying like this: mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM_FAULT_0, GPIO_NUM_15); rmt_set_pin(RMT_CHANNEL_0l, RMT_MODE_TX, GPIO_NUM_2); gpio_matrix_out(GPIO_NUM_15, SIG_IN_FUNC224_IDX, false, false); gpio_matrix_in(GPIO_NUM_2, SIG_IN_F...
by Wielebny
Mon Nov 16, 2020 8:42 pm
Forum: ESP-IDF
Topic: GPIO logical AND
Replies: 4
Views: 2857

[SOLVED] GPIO logical AND

No, sorry. Yes ;-) Solution: mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM0A, GPIO_PWM0A_OUT); mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM_FAULT_0, INPUT_0); mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM_FAULT_1, INPUT_1); mcpwm_config_t mcpwm_config = { .frequency = 125000, .cmpr_a = 100.0, .counter_mode = MCPWM_UP_DOWN_COUN...
by Wielebny
Sat Nov 14, 2020 7:16 pm
Forum: ESP-IDF
Topic: GPIO logical AND
Replies: 4
Views: 2857

GPIO logical AND

Hi,
Can you realize AND logical for 2 GPIO inputs and 1 GPIO output without interrupts and reading states in the loop?
Is the use of gpio_matrix_in and gpio_matrix_out the right direction?

regards
by Wielebny
Wed Mar 18, 2020 7:03 pm
Forum: General Discussion
Topic: MCPW OOK modulator
Replies: 0
Views: 2594

MCPW OOK modulator

Hi,
I need help configuring the MCPWM driver.
I want to control the H-bridge, OOK modulation, carrier wave - 50 kHz.
The details are shown in the picture.
OOK.JPG
OOK.JPG (23 KiB) Viewed 2594 times