Skip to main content
Visitor II
June 2, 2004
Question

Problem while updating the DCR register in ART 2 of Lite2x

  • June 2, 2004
  • 3 replies
  • 749 views
Posted on June 02, 2004 at 06:39

Problem while updating the DCR register in ART 2 of Lite2x

    This topic has been closed for replies.

    3 replies

    Visitor II
    June 1, 2004
    Posted on June 01, 2004 at 09:46

    When I change the DCR value in my code, I notice that it is not getting updated at the overflow. Can anyone suggest what could be the problem.

    Visitor II
    June 1, 2004
    Posted on June 01, 2004 at 09:56

    In Lite2 ART Timer you have a TRAN bit in TRANCR register which should be set at the time of overflow so that the DCR preloaded values are transferred to the DCR shadow register.

    The reset value of this bit is 1, so the first time in your application the DCR would have been updated even though you are not setting this bit; but once a transfer is completed this bit is cleared by hardware so you need to set it if you want your DCR register to be updated at overflow.

    Visitor II
    June 2, 2004
    Posted on June 02, 2004 at 06:39

    Thanks a lot, setting the TRAN bit has solved my problem