Problem with the PCF8523 in the alarm mode

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
cyke66
Professional User
Posts: 1
Joined: Tue 2021-03-30 8:57

Problem with the PCF8523 in the alarm mode

Post by cyke66 »

Hello
I try to simulate the operation of the PCF8523 in the alarm mode. The component should normally generate an interruption when the value of the « Minute_time » and « Hour_time » registers is respectively identical to that of « Minute_alarm » and « Hour_alarm » registers.
To obtain this operation, the AIE bit of the « Control_1 » register must be set to 1 (Control_1 = 0x02) and the CLKOUT output should be disabled by putting the COF bits [2:0] to 1 (TMR_CLKOUT_CTRL = 0x38).
With my program, the date is set at 26-03-2021, the time at 20:45:00 and the alarm at 20:51.
The examination of the internal registers of the PCF8523 shows that they are correctly programmed, but instead of generating an interruption at 20:51, the circuit generates this interruption every second (as if the SIE bit of the « Control_1 » register was set to 1).
When I put the same program on an Arduino Uno to control a « real » PCF8523, the circuit reacts correctly and generates the interruption at 20:51.
Could you check why the PCF8523 simulation model does not behave like the real component ?
Thanks for your help.
Best regard.
PCF8523.png
PCF8523.png (14.71 KiB) Viewed 363 times
PCF8523.pdsprj
(204.54 KiB) Downloaded 57 times
PCF8523.ino.elf.zip
(22.32 KiB) Downloaded 57 times
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Problem with the PCF8523 in the alarm mode

Post by Ettore »

This issue will be fixed for next service pack or V8.13 when released.
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply