Page 2 of 2
Re: Direct access to timer count in the new gptimer.h lib
Posted: Sat Feb 12, 2022 12:28 pm
by xien551
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!
Re: Direct access to timer count in the new gptimer.h lib
Posted: Mon Feb 14, 2022 11:09 am
by dizcza
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.
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.
Re: Direct access to timer count in the new gptimer.h lib
Posted: Mon Feb 14, 2022 11:38 am
by xien551
Not at all, I have found another GPS module of mine has a independent output with PPS, so everything is easy. Thanks.
I can't find gptimer.h in IDE framework
Posted: Wed Mar 16, 2022 1:05 am
by tlaritz
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.
Re: I can't find gptimer.h in IDE framework
Posted: Thu Mar 17, 2022 1:55 pm
by dizcza
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