ZigBee Stack and Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

ZigBee Stack and Timer

3,803 Views
antarex
Contributor I
Hi,
I have a problem with interaction from ZigBee and Timer2 on the HCS08GB60.I have develop application on "Wireless Dimmer" to module light intensity with a TRIAC TIC206M, with TPM2C0 in input capture to decect the zero crossing signal for 230V 50Hz power net.For every impulse capture the TPM2C1 is started to port PTC0 ON,for 60microsecond on the Gate of the TRIAC. The problem is that the ZigBee Stack Figure8ZStack V1.2.2 don't responde to other node's on  the network when the input capture command is fired from other node with afFillAndSendMessage.
 
I task that micro controller is engaged to satisfy the demands for TPM2C0 and C1 and does not succeed to satisfy the demands for stack the ZigBee concurrent.  How I can resolve the problem?  Someone has some suggestion?  Excused for my English
 
Thanks
 
Labels (1)
0 Kudos
4 Replies

269 Views
magic
Contributor I
Hi antarex...
 
I'm working on the same problem that is trying to use TPM2 but I have minimal knowledge on hardware programming. Could you pls send me your code or explain how should I do it? Thank you
0 Kudos

269 Views
yshmuly
Contributor I

im having the sampe problem

i think there is a problem with enabling TPM interrupts and the stack

when im trying to read the zero crossing and control the other pin

the mcu stuck

0 Kudos

269 Views
Ware
Contributor III
 
I know the OSAL for Z-Stack uses TPM1...  so any modifications to Timer 1 will totally mess up Z-Stack.
But using TPM2 should be ok (as long as you don't change any of the TPM1 control bits).
 
0 Kudos

269 Views
antarex
Contributor I
I have used only TPM2, infact i know use of TPM1 from Z-Stack, but the problem is present.
I think that the Z-Stack is not optimized for this operation
0 Kudos