This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM frequency repeater

Hi, 

I have a task to do PWM frequency repeater on nrf52832. After reading forums I decided to make it with PPI, 2 GPIOTE and 3 Timers. Here what I did: https://github.com/ArtG89/nrf52832_ppi/tree/master/Application

But there are 2 problems:

1. When I want to measure and change frequency quicker than 1 Hz (for example 1 time per 200 ms) (change PPI_PWM_IN_MEASURE_TIME_PRESCALER in ppi_pwm_in_driver.h to 5) - pwm out doesn't work.

2. PWM out randomly shuts down on hi or low level when I quickly change input frequency (even when measured 1 time per second).

What I did wrong? In debug mode timer for pwm out shows correct cc[0].

I only need to repeat frequency not duty.

Thanks in advance.

Parents Reply Children
No Data
Related