Thanks for checking it out!
I'm actually dumb that (40M >> 8) / 300 is actually close to 500.
I was mistaking >> 8 as divide 8 instead of divide 2^8.
The code is working as expected. Sorry for the confusion
Search found 2 matches
- Tue Oct 07, 2025 6:24 pm
- Forum: General Discussion
- Topic: GPTimer Frequency Not As Expected
- Replies: 2
- Views: 935
- Mon Oct 06, 2025 6:04 pm
- Forum: General Discussion
- Topic: GPTimer Frequency Not As Expected
- Replies: 2
- Views: 935
GPTimer Frequency Not As Expected
Hi!
I'm developing a custom PWM driver based on the GPTimer.
Chip: ESP32S3
Borad: Adafruit ESP32S3 QTPY no psram
I tested a version on Arduino esp32, and it works as expected:
// Set timer frequency to 1Mhz
pctrl_timer = timerBegin(timerfreq);
timerAttachInterrupt(pctrl_timer, &VEMA_PWM ...
I'm developing a custom PWM driver based on the GPTimer.
Chip: ESP32S3
Borad: Adafruit ESP32S3 QTPY no psram
I tested a version on Arduino esp32, and it works as expected:
// Set timer frequency to 1Mhz
pctrl_timer = timerBegin(timerfreq);
timerAttachInterrupt(pctrl_timer, &VEMA_PWM ...