Timer issues on HCS(08) microcontroller using Zigbee/IEEE 802.15.4 standard application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timer issues on HCS(08) microcontroller using Zigbee/IEEE 802.15.4 standard application

974 Views
magic
Contributor I
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
Labels (1)
0 Kudos
1 Reply

264 Views
J2MEJediMaster
Specialist I
check out the Zigbee application notes AN2731, AN2902, AN2935, AN2975 and AN2976. Also, try searching the forums for "zigbee" and "wireless" and there are a number of threads that discuss programming for this type of application.

---Tom
0 Kudos