Configure TCC of SAML21J18B in capture mode

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

 

I have to measure the frequency of Square wave which is varying from 125KHz to 150KHz. This square wave is fed at pin-39 (TCC0/WO[4]) of SAML21J18B micro-controller. Can anyone please guide me as how to configure TCC0 in Capture mode so as to calculate the exact frequency of the square wave ?

 

Bye,