Hi all...
I'm using the 802.15.4 My_Wireless_App.mcp project on HCS(08) microcontroller. I have some issues with the timer resolution used in the mcp application project. I have minimal knowledge on hardware stuffs. I hope those working on HCS(08) and 802.15.4 could help me with the following.
Based on the timer function provided in My_Wireless_App.mcp, the resolution is about 4 ms. That is the clock tick happens every 4 ms. For example: Timer_Get() function will return a numeric value every 4 ms. Another way to look at it: if(Timer_Get() == 1; the value returned is about 4ms while if(Timer_Get() == 2; the value returned is about 8 ms. The interval between the two is somehow too large for my application. I can't get the timer value of say 5 ms, 6 ms, 6.754ms, etc.
Is there a solution to my problems? The My_Wireless_App.mcp is using TPM1 for the timer function. Not sure whether TPM2 is being used. If i'm to use TPM2, assuming it is not occupied, how do I do it? Is there a sample code? Again my knowledge on hardware programming is limited.
Thank you