| Motore di ricerca datesheet componenti elettronici |
|
DS83C320-WNL Scheda tecnica(PDF) 155 Page - Dallas Semiconductor |
|
|
|||||||||||||||||||||||||||||
DS83C320-WNL Scheda tecnica(HTML) 155 Page - Dallas Semiconductor |
|
155 / 175 page ![]() High-Speed Microcontroller User’s Guide 155 of 175 SECTION 13: TIMED ACCESS PROTECTION The High-Speed Microcontroller uses a protection feature called Timed Access to prevent accidental writes to critical SFR bits. These bits could cause a system failure or prevent the Watchdog Timer from doing its job if improperly written. The Timed Access involves opening a timing window during which the protected bit can be modified. If the window is opened correctly, it remains open long enough to alter one protected bit. This section explains which bits are protected, why, and how to use the Timed Access feature. PROTECTED BITS Bits which are protected by the Timed Access feature are shown below. Only critical function bits which are unique to the High-Speed Microcontroller family are protected, assuring code compatibility with the original 80C51 or 80C52. A full description of the function of each bit is provided in Section 4. EXIF.0 BGS Band-gap Select WDCON.6 POR Power-on Reset Flag WDCON.1 EWT Watchdog Reset Enable WDCON.0 RWT Reset Watchdog Timer WDCON.3 WDIF Watchdog Interrupt Flag TRIM.7 E4K 4096 Hz RTC Output TRIM.6 X12/ 6 12pF/6pF Crystal Select TRIM.5 TRM2 Capacitance Trim Bit 2 TRIM.4 TRM2 Inverse Capacitance Trim Bit 2 TRIM.3 TRM1 Capacitance Trim Bit 1 TRIM.2 TRM1 Inverse Capacitance Trim Bit 1 TRIM.1 TRM0 Capacitance Trim Bit 0 TRIM.0 TRM0 Inverse Capacitance Trim Bit 0 ROMSIZE.2 RMS2 ROM Size Select Bit 2 ROMSIZE.1 RMS1 ROM Size Select Bit 1 ROMSIZE.0 RMS0 ROM Size Select Bit 0 RTCC.2 RTCWE RTC Write Enable RTCC.0 RTCE RTC Enable PROTECTION SCHEME Each bit mentioned above is protected against an accidental write by requiring the software to perform a procedure before writing the bit. Timed Access requires the software to write two specific values to the Timed Access register during two consecutive instruction cycles. The values AAh, then 55h, must be written in consecutive instructions to the TA register at SFR location C7h. If the writes are performed correctly, the write access window will open for three machine cycles. During this window, the software may modify a protected bit. The suggested code to open a Timed Access window is: MOV 0C7h, #0AAh MOV 0C7h, #55h The procedure to modify a Timed Access protected bit begins by writing the value AAh to the Time Access register (TA;C7h). The value 55h must then be written to the Timed Access register within three machine cycles of writing AAh. This opens a three machine cycle window, after the write of 55h, during which any Timed Access protected bits may be modified. Failure to complete any of the required steps will also require the procedure to begin again, starting with the write of AAh to the Timed Access register. Attempts to modify Timed Access protected bits after the window has closed will be ignored. |
|
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 |