| Motore di ricerca datesheet componenti elettronici |
|
ADE7569 Scheda tecnica(PDF) 120 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7569 Scheda tecnica(HTML) 120 Page - Analog Devices |
|
120 / 148 page ![]() ADE75xx/ADE71xx Preliminary Technical Data Rev. PrE | Page 120 of 148 Note: This register is reset after a watchdog reset, an external reset or a power on reset (POR). Table 118. Interrupt pins configuration SFR (INTPR, 0xFF) Bit Location Bit Mnemonic Default Value Description 7 RTCCAL 0 Control RTC calibration output When set, the RTC calibration frequency selected by FSEL[1:0] is output on the P0.2/CF1/RTCCAL pin. Sets RTC calibration output frequency and calibration window FSEL[1:0] Calibration window, frequency 0 0 30.5 seconds, 1Hz 0 1 30.5 seconds, 512 Hz 1 0 0.244 seconds, 500Hz 6-5 FSEL[1:0] 1 1 0.244 seconds, 16.384 kHz 4 Reserved Controls the function of INT1T INT1PRG[2:0] Function x 0 0 GPIO x 0 1 BCTRL 0 1 x INT1 input disabled 3-1 INT1PRG[2:0] 000 1 1 x INT1 input enabled Controls the function of INT0 INT0PRG Function 0 INT0 input disabled 0 INT0PRG 0 1 INT0 input enabled Table 119. Key SFR (KYREG, 0xC1) Bit Location Bit Mnemonic Default Value Description 7-0 KYREG 0 Write 0xA7 to the KYREG SFR before writing the POWCON SFR, to unlock it Write 0xEA to the KYREG SFR before writing to the HTHSEC, SEC, MIN, or HOUR timekeeping register to unlock it.. READ AND WRITE OPERATIONS Writing the RTC Registers The RTC circuitry runs off a 32.768kHz clock. The timekeeping registers, HTHSEC, SEC, MIN, HOUR are updated with a 32.768 kHz clock. However, the TIMECON and INTVAL SFRs are updated with a 128Hz clock. It takes up to two 128Hz clock cycles from when the MCU writes the TIMECON or INTVAL register until it is successfully updated in the RTC. To protect the RTC timekeeping registers from runaway code, a key must be written to the KYREG register to obtain write access to the HTHSEC, SEC, MIN and HOUR registers. The KYREG should be set to 0xEA to unlock the timekeeping registers and is reset to zero after a timekeeping register is written to. The RTC registers can be written using the following 8052 assembly code: MOV RTCKey, #0EAh CALL UpdateRTC … UpdateRTC: MOV KYREG, RTCKey MOV SEC, #30 MOV KYREG, RTCKey MOV MIN, #05 MOV KYREG, RTCKey MOV HOUR, #04 RET Reading the RTC Counter SFRs The RTC cannot be stopped to read the current time because stopping the RTC would introduce an error in its timekeeping. So the RTC is read on the fly. Therefore the counter registers |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |