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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,007件の閲覧回数
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
ラベル(1)
0 件の賞賛
1 返信

297件の閲覧回数
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 件の賞賛