AnsweredAssumed Answered

ADuC7061 Timer 0 capture

Question asked by on Nov 16, 2012
Latest reply on Nov 18, 2012 by MMA


Hardware ADuC7061MKZ

IDE-Version: µVision V4.54.0.0


I tried to capture T0 value on the falling edge of P1.0 (IRQ1 event). I get interrupt but T0CAP register contains default value 0xFFFFFFFF.


Falling edge is generated by serial terminal client on PC, when any key pressed.


Output of the test:

T0CON: 0x10AC580,                                                                                                                                                                                

T0CAP:0xFFFFFFFF,                                                                                                                                                                                    IRQCONE: 0xC,                                                                         

IRQEN:0x4000,                                                                                                                                                                                            Press a key to generate falling adge pulse on P1.0                                                                                                                                            (here i pressed a key)                                                                                                                                                                              

Falling adge: int #1,                                                                                                                                                                                      T0CAP:0xFFFFFFFF,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             



Again T0CAP didnt change value...