Search found 9 matches

by jmcornil
Tue Feb 18, 2020 9:42 am
Forum: General Discussion
Topic: What is and when to use IRAM_ATTR ?
Replies: 7
Views: 12012

Re: What is and when to use IRAM_ATTR ?

Thank you very much for all your replies !

I see a little bit clear about this problem.
by jmcornil
Tue Feb 18, 2020 9:39 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 580

Re: Question about uart_rx_one_char

Oh thank you very much !
It was the flow control material which was ON
I put it OFF and all is OK.

But do you know wher I ca find documentation on these ROM functions ?

Best regards
by jmcornil
Mon Feb 17, 2020 11:22 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 580

Re: Question about uart_rx_one_char

Hello and thank you for your quick answer You have swapped idy.py for minicom.exe. That's all. I don't understand what you are meaning by "swap". I type idf.py flash and then minicom without .exe for I work with linux Probably your minicom serial port settings are wrong, baud rate, parity etc? If yo...
by jmcornil
Mon Feb 17, 2020 9:47 am
Forum: General Discussion
Topic: Question about uart_rx_one_char
Replies: 4
Views: 580

Question about uart_rx_one_char

Hello everybody As I wanted a mean to drive a program with a simple char key pressed, and after searching the web, I found the uart_rx_one_char and uart_rx_one_char_block functions. In order to wait a char, I can use each of these functions in a task and they work like a charm when I use idf.py flas...
by jmcornil
Sat Feb 15, 2020 4:57 pm
Forum: General Discussion
Topic: What is and when to use IRAM_ATTR ?
Replies: 7
Views: 12012

Re: What is and when to use IRAM_ATTR ?

Hello and Thank you for these great explanations ! But I have a question about the variables used in a such ISR tagged as IRAM_ATTR. I have read in the doc that they must be tagged as DRAM_ATTR. Can someone explain why, and the risk if we do not so ? I tried with a counter increment by an ISR, with ...
by jmcornil
Thu Feb 13, 2020 9:18 am
Forum: General Discussion
Topic: Using MCPWM periferal to generate desired pattern
Replies: 5
Views: 1388

Re: Using MCPWM periferal to generate desired pattern

Hello I think than it is OK with the following init. I use MCPWM but with only one timer : TIMER_0 The three Operator are linked to TIMER_0 On GPIO_PWM0A_OUT, I get your pin1 signal On GPIO_PWM1A_OUT, I get your pin2 signal The third pin is just for me to control I used huge prescaler for i have no ...
by jmcornil
Wed Feb 12, 2020 2:59 pm
Forum: General Discussion
Topic: Using MCPWM periferal to generate desired pattern
Replies: 5
Views: 1388

Re: Using MCPWM periferal to generate desired pattern

Hello

did you try to use MCPWM and an XOR gate ?
  • with TIMER_0, you cant get the first signal : (1 0 0 0) for pin 1
  • with TIMER_1, you can get the two signals : (1 1 0 0) and (1 1 1 0) of which the XOR gives pin 2
Is it not good for you ?

Best regards
by jmcornil
Tue Feb 11, 2020 5:53 pm
Forum: General Discussion
Topic: Issue with MCPWM Prescaler
Replies: 3
Views: 1057

Re: Issue with MCPWM Prescaler

Hello Since yesterday I have found the LL layer for ESP32 MCPWM register operations (in the file components/soc/esp32/include/hal/mcpwm_ll.h). I find that it provides an efficient method to initialize the MCPWM (only one timer and one operator for the moment). And so, I can choose freely my two pres...
by jmcornil
Mon Feb 10, 2020 5:44 pm
Forum: General Discussion
Topic: Issue with MCPWM Prescaler
Replies: 3
Views: 1057

Issue with MCPWM Prescaler

Hello everybody and thank you for reading my post. I am beginning to play with MCPWM and I would change on the fly some values such as the prescaler which are in MCPWM_CLK_CFG_REG and in MCPWM_TIMER0_CFG0_REG. For the moment I have no oscillo and I test with leds. For the prescaler in MCPWM_CLK_CFG_...

Go to advanced search