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 Mark,

    you will also find in chapter 7.4 (Philips PCF8583 docu) the following information: In the event-counter mode events are stored in BCD format . What is correct ??.
    You find in table 1 the cycle length from the clock mode. What is the cycle length in the counter mode (store in BCD format) ??
    Is it allowed to use the timer and the alarm timer in the event-counter mode ?? I found no information about this point ?? How does this timer counts ??

Reply
  • Hi Mark,

    you will also find in chapter 7.4 (Philips PCF8583 docu) the following information: In the event-counter mode events are stored in BCD format . What is correct ??.
    You find in table 1 the cycle length from the clock mode. What is the cycle length in the counter mode (store in BCD format) ??
    Is it allowed to use the timer and the alarm timer in the event-counter mode ?? I found no information about this point ?? How does this timer counts ??

Children
  • 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?

  • Hi Mark,

    thanks for your help. I write only simulation DLLs for the µVision2 simulator (see http://www.c51.de/c51.de/Dateien/uVision2DLLs.php3?Spr=EN).
    I don't have hardware for this functionality (signal generator, ...).
    Do you have an example for me to test my simulation (PCF8583 event-counter) or can you test my DLL ??

    Michael