This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Does nRF51822 gives 3.69MHz clock using PWM

We are using nRF51822,We require to develop 3.69Mhz.Is it possible to use GPIO as PWM Regards K.Baskaran

Parents
  • Since the nRF51 runs on a 16MHz clock there is no way you can divide this clock by an integer to get 3.69MHz.

    You can divide it to 4MHz as in this example, or to 2.67 MHz if you change the CC register to 3. You can then of course use counters to change the CC register to either 2 or 3 continuously so it will average to 3.69 MHz, but that doesn't sound like a good idea to me.

Reply
  • Since the nRF51 runs on a 16MHz clock there is no way you can divide this clock by an integer to get 3.69MHz.

    You can divide it to 4MHz as in this example, or to 2.67 MHz if you change the CC register to 3. You can then of course use counters to change the CC register to either 2 or 3 continuously so it will average to 3.69 MHz, but that doesn't sound like a good idea to me.

Children
No Data
Related