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?
DS3232 model "Automatically Initialise from PC clock?"
-
- Expert User
- Posts: 331
- Joined: Tue 2006-10-10 10:34
Re: DS3232 model "Automatically Initialise from PC clock?"
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.
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.
Ettore Arena - Labcenter Electronics.
-
- Expert User
- Posts: 331
- Joined: Tue 2006-10-10 10:34
Re: DS3232 model "Automatically Initialise from PC clock?"
Thanks - that helps.
What about the third option (a "dash")?
What about the third option (a "dash")?
Re: DS3232 model "Automatically Initialise from PC clock?"
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.
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.
Ettore Arena - Labcenter Electronics.