This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CAPCOM6 Timers as general timer?

Hi,

is it possible to use the timers T12 and T13 from CAPCOM6 as generel purpose timers (C164CI)?
The description of the CAPCOM6 unit is quite heavy stuff and to me its not clear if I can use those timers as normal timers to generate a periodic interrupt.

Thx for help

Bert

Parents
  • Hi Stefan,

    I read your answer to the CAPCOM6 question. I have a very simple question to the same module:

    Is it posible, to use pin CC61 as a kind of fast external input? In dave I found that it should do, when I enable rising and falling interrupts on pin CC61. But I never get an int and the interrupt request bit does not toggle.

    Is there a known bug in C164CI-LM with this part of CAPCOM61 or do I oversee some thing?

    Thanks a lot,
    Mike

Reply
  • Hi Stefan,

    I read your answer to the CAPCOM6 question. I have a very simple question to the same module:

    Is it posible, to use pin CC61 as a kind of fast external input? In dave I found that it should do, when I enable rising and falling interrupts on pin CC61. But I never get an int and the interrupt request bit does not toggle.

    Is there a known bug in C164CI-LM with this part of CAPCOM61 or do I oversee some thing?

    Thanks a lot,
    Mike

Children
  • Hello Mike,

    yes it works.
    Since I am not familar with C164CL I wrote a test program and it works very fine with the simulator.
    So it should also works with hardware.
    I took only care of the functionality, but not
    for the timings itself.

    It seems, that something in your DAvE setup
    must be wrong.
    From the "bug side" there is nothing related to this topic.

    Either we must compare your settings against
    my or I can e-mail you the simulator program, which works regarding your expected functionality.

    Stefan

  • Hi Stefan,

    my solution also works in the simulator but not at the hardware. A simular case I had as I wanted to move CAN-Pins from P5 to P8, which also works in simulator and is described in Infineons PDFs. A half year later a friend, working at Infineon in munich told us that this feature never worked at th c164ci. So I guessed, I am in the same sort of pitfall.

    My hope is, that there is another reason for the difference between simulator and hardware.

    Any suggestions?
    Mike

  • Hi Mike,

    unfortunately I have no hardware, that I can test.
    Normaly the behaviour you speak about occours,
    if there are differences in simulator setup and hardware setup.
    ( Because sometimes for the simulator some settings are not relevant, which you must take care about for running in hardware )

    What I remember for the Xc16x devices is,
    that we have some problems, if we used
    the CAPCOM6 and did accesses in parallel
    to the bus.
    Than the CAPCOM6 was not worked as expected.
    For this cases the errata only says, that an software access overwrites the hardware.
    ( What I am a little bit in doubt of, because
    the bus controller is from my point of view a piece of hardware )

    In my case the problems came from wrong EBC -settings.
    That is the only suggestion at the moment I have.

    Sorry, Stefan