Counting the frequency of the tuner worked. However the counter input required a lot of current. I build some amplifiers to boos the signal but is was not enough.
I found out that when the counter was stopped the counter input pin was configured as output. This messesd up signal. PORT A was configured as output. Turning on the counter overrides this setting. However when the counter was stopped the port was set to output again. My codes starts and stops the counter 50 times a second.
My port A has been configured correctly in my startup code. However the HITEC LCD software reconfigured it.
I fixed it, now the counter works fine.
Geen opmerkingen:
Een reactie posten