DS3232 model "Automatically Initialise from PC clock?"

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
Andrew Larkin
Expert User
Posts: 331
Joined: Tue 2006-10-10 10:34

DS3232 model "Automatically Initialise from PC clock?"

Post by Andrew Larkin »

I am getting some confusing results from this option, so I went looking for documentation and failed to find it.

The option has a check box which has three states: Empty, Ticked, and a dash.

What are the meanings of the options?
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: DS3232 model "Automatically Initialise from PC clock?"

Post by Ettore »

In the DS3232 the registers are loaded with all 0's when empty option is selected. If ticked, then the current PC time and date is loaded into the registers. This happens all the time at simulation startup if, and only if, the battery is not connected to VBAT pin. If a battery is connected then the registers becomes persistent and you can re-initialize them only after you select "Reset Persistent Model Data" item under Debug menu.
Other real time clock model parts in the Proteus library which do not have external battery get persistent memory by design.
Kind regards,
Ettore Arena - Labcenter Electronics.
Andrew Larkin
Expert User
Posts: 331
Joined: Tue 2006-10-10 10:34

Re: DS3232 model "Automatically Initialise from PC clock?"

Post by Andrew Larkin »

Thanks - that helps.

What about the third option (a "dash")?
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: DS3232 model "Automatically Initialise from PC clock?"

Post by Ettore »

It's default option and its value depends by the model.
In general, if you set dash then the property is assigned directly by the model; in the DS3232 case it gets the same effect of the ticked option.
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply