mirror of https://github.com/wwarthen/RomWBW.git
Browse Source
DS1210 datasheet "The fourth function the DS1210 performs is a battery status warning so that potential data loss is avoided. Each time that the circuit is powered up the battery voltage is checked with a precision comparator. If the battery voltage is less than 2.0 volts, the second memory cycle is inhibited. Battery status can, therefore, be determined by performing a read cycle after power-up to any location in memory, verifying that memory location content. A subsequent write cycle can then be executed to the same memory location altering the data. If the next read cycle fails to verify the written data, then the batteries are less than 2.0V and data is in danger of being corrupted" This also works: LD HL,HBX_IMG-2 LD DE,HBX_LOC-2 LD BC,HBX_SIZ+2 LDIR Regards Philpull/35/head
committed by
GitHub
1 changed files with 5 additions and 3 deletions
Loading…
Reference in new issue