We are using nRF51822,We require to develop 3.69Mhz.Is it possible to use GPIO as PWM Regards K.Baskaran
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.
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.