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

pwm hardware individual loading mode nrf52

Please can anyone help me on how to use(program) PWM hardware with individual loading mode? My goal is to control 12 LEDs individually with different duty cycles and playbacks using pwm hardware which has 12 outputs to make a kind of led chaser.

Thanks in advance

Parents
  • @Akshaey: Have you tried to play with the pwm_driver example in the SDK the demo 1 example ? We have 3 PWM instance (PWM0, PWM1, PWM2) and each has 4 channels. In these 4 channel, they will have the same frequency, you can control duty cycle for each of them.

  • please check the program i have attached-

    drive.google.com/open

    i have copied code from pwm_driver into pwm_library and have added relative .c files like app_timer.c or nrf_drv_pwm.c It gives the following error-

    ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_timer_init (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_buttons_enable (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_init (referred from main.o)..

    etc

    what am i missing to add? Please let me know. thanks

Reply
  • please check the program i have attached-

    drive.google.com/open

    i have copied code from pwm_driver into pwm_library and have added relative .c files like app_timer.c or nrf_drv_pwm.c It gives the following error-

    ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_timer_init (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_buttons_enable (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol bsp_init (referred from main.o)..

    etc

    what am i missing to add? Please let me know. thanks

Children
No Data
Related