Skip to main content
Visitor II
May 28, 2007
Question

ST72F321BR9 TIMER PROBLEM

  • May 28, 2007
  • 1 reply
  • 605 views
Posted on May 28, 2007 at 06:14

ST72F321BR9 TIMER PROBLEM

    This topic has been closed for replies.

    1 reply

    Visitor II
    May 28, 2007
    Posted on May 28, 2007 at 06:14

    When I use the input capture mode on timer A the MCU go in reset.

    The code sequence is:

    _asm(''rim'')

    (PORT INIZIALIZATION)

    TACR2 = 0x08; //fcpu/8

    TACR1 = 0x80; //''IC'' interrupt

    _asm(''rim'')

    AT THIS POINT THE MCU RESET.

    I use the same code on ST7C334N4 and work good.

    Now, what is the problem?