This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

In TI StarterWare code , How to generate 1 Hz frequency with Beagle bone black TI SW EHRPWM code?

How to change how fast TBCNT change ? I mean to say with which register we can change it ? so that we can generate lower frequency like 1 hz, 10 hz ?

  • Please check out the EHRPWM example that comes with StarterWare. The trick is to set an as big as possible clock divider. But you have to check if a 1 Hz frequency is really possible . If not I'd recommend to use DMTimer for this.

  • Thank you for suggestion. 1 TBPRD = 1 count per 10 ns . so 1/10ns = 100Mhz that is maximum frequency can be generated from BBB. 65535 is maximum count can be performed as TBPRD is 16 bit. so 655350 ns is the time required for 65535 TBPRD. so 1/655350ns = 1.5Khz that is the minimum frequency can be generated with BBB. I am developing PWM driver for RTEMS RTOS so for testing driver I am trying to generate 1 hz frequency Any ideas or suggestions are most welcome.
  • In this case you need to use DMTimer.