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

Need help for the PCF8583 (I²C chip)

I write a simulation for this chip in the µVision2 simulation. Unfortunatly the Philips documentation for this chip is not complete. Philips also can not help me.
I have some questions for the event-counter mode. Has anybody experience in this mode ?

Parents
  • Hi Michael,

    The event counter stores up to 6 digits of data which are stored as 6 hexadecimal values located in locations 1,2 and 3. thus upto 1 million events may be recorded (this is in section 7.8). For this to be true, the number MUST be in BCD format.
    I dont think you can use the alarm timer or timer in event count mode because the 'alarm' registers are used as the event counter alarm match and the timer register can be used to generate interrupts every 1, 100, 10000 or 1000000 events.

    Hope this helps,
    Mark.

    P.S. Can you not try it on 'real' H/W?

Reply
  • Hi Michael,

    The event counter stores up to 6 digits of data which are stored as 6 hexadecimal values located in locations 1,2 and 3. thus upto 1 million events may be recorded (this is in section 7.8). For this to be true, the number MUST be in BCD format.
    I dont think you can use the alarm timer or timer in event count mode because the 'alarm' registers are used as the event counter alarm match and the timer register can be used to generate interrupts every 1, 100, 10000 or 1000000 events.

    Hope this helps,
    Mark.

    P.S. Can you not try it on 'real' H/W?

Children