Direct access to timer count in the new gptimer.h lib

xien551
Posts: 69
Joined: Wed Feb 02, 2022 4:04 am

Re: Direct access to timer count in the new gptimer.h lib

Postby xien551 » Sat Feb 12, 2022 12:28 pm

hey, dizcza, could you share the whole file, I am interested int the GPS-related function. The MCPWM example in IDF gives a capture project using hc_sr04. I have the hc_sr04 module and it works well with 80MHz clock, but without GPS module.

In addition, Spirit has another suggestion by using I2C and SPI, which I am more familiar with than PWM. I would like to try them also. And how do you think about it.Thanks!

dizcza
Posts: 56
Joined: Tue Sep 07, 2021 6:59 pm

Re: Direct access to timer count in the new gptimer.h lib

Postby dizcza » Mon Feb 14, 2022 11:09 am

xien551 wrote:
Sat Feb 12, 2022 12:28 pm
hey, dizcza, could you share the whole file, I am interested int the GPS-related function. The MCPWM example in IDF gives a capture project using hc_sr04. I have the hc_sr04 module and it works well with 80MHz clock, but without GPS module.
Unfortunately, my clients refuse to open-source my project. The example of using MCPWM coupled with GPS I showed above is correct and I have been using it ever since. I heard others have tried an RMT module to capture the signal width though I find PWM convenient.
xien551 wrote:
Sat Feb 12, 2022 12:28 pm
In addition, Spirit has another suggestion by using I2C and SPI, which I am more familiar with than PWM. I would like to try them also. And how do you think about it.Thanks!
I have no idea how I2C and SPI would help... how? Neither do I think that it'd be better than a PWM.

xien551
Posts: 69
Joined: Wed Feb 02, 2022 4:04 am

Re: Direct access to timer count in the new gptimer.h lib

Postby xien551 » Mon Feb 14, 2022 11:38 am

Not at all, I have found another GPS module of mine has a independent output with PPS, so everything is easy. Thanks.

tlaritz
Posts: 9
Joined: Tue Mar 15, 2022 3:01 am

I can't find gptimer.h in IDE framework

Postby tlaritz » Wed Mar 16, 2022 1:05 am

I like to use gptimer utilities but can't seem find a gptimer.h file in the hierarchy of Espressif folders. Am I missing something?

Thanks.

dizcza
Posts: 56
Joined: Tue Sep 07, 2021 6:59 pm

Re: I can't find gptimer.h in IDE framework

Postby dizcza » Thu Mar 17, 2022 1:55 pm

tlaritz wrote:
Wed Mar 16, 2022 1:05 am
I like to use gptimer utilities but can't seem find a gptimer.h file in the hierarchy of Espressif folders. Am I missing something?
It's "driver/gptimer.h". See the official gptimer example at https://github.com/espressif/esp-idf/bl ... ple_main.c

Who is online

Users browsing this forum: Baidu [Spider] and 132 guests