Hi,all. i want to use nrf51822 to generate a 3.3M hz wave,but i don't know how to do this.Can this chip reach so high frequency?Can someone help me? Thanks !
Hi,all. i want to use nrf51822 to generate a 3.3M hz wave,but i don't know how to do this.Can this chip reach so high frequency?Can someone help me? Thanks !
You can generate 4MHz but not 3.3MHz, the divisor in the TIMER modules generates only frequencies which are divisors of HFCLK frequency.
One post to see how 8MHz can be generated is here
Thanks Aryan! if i use Timer modules to generates 4M frequency and count a number in timer interrupt , if the count reached a special number, i toggle pin in interrupt function.Can i get 3.3Mhz wave? Thanks again!
no you cannot. You need the divisor to be 4.84 for timer to accurately get 3.3MHz with prescaler 0. nRF chip does not support floating divisors. And even if you want to count the number of interrupt and toggle pin you still will get frequency which is the power of 2 divisor to 16MHz
Thanks again,Aryan!