| Electronic Components Datasheet Search |
|
ST2204 Datasheet(PDF) 19 Page - Sitronix Technology Co., Ltd. |
|
|
|||||||||||||||||||||||||||||
ST2204 Datasheet(HTML) 19 Page - Sitronix Technology Co., Ltd. |
|
19 / 24 page ![]() ST2204 Ver 0.6 19/24 2008/11/10 1 17 7.. P PO OW WE ER R D DO OW WN N M MO OD DE ES S ST2204 has three power down modes: WAI-0, WAI-1 and STP. The instruction WAI will enable either WAI-0 or WAI-1, which is controlled by WAIT (SYS[2]). And the instruction STP will enable STP mode in the same manner. WAI-0 and WAI-1 modes can be waked up by interrupt. However, STP mode can only be waked up by hardware reset. 17.1 WAI-0 Mode: If WAIT is cleared, WAI instruction makes MCU enter WAI-0 mode. In the mean time, the oscillator, interrupts, timer/counter, and PSG are still working. On the other hand CPU and the related instruction execution stop. All registers, RAM, and I/O pins will retain the same states as those before the MCU entered power down mode. WAI-0 mode can be waked up by reset or interrupt request even If user sets interrupt disable flag I. In that case MCU will be waked up but not entering interrupt service routine. If interrupt disable flag is cleared (I=’0’), the corresponding interrupt vector will be fetched and the service routine will be executed. The sample program is shown below: LDA #$00 STA <SYS WAI ; WAI 0 mode 17.2 WAI-1 Mode: If WAIT is set, WAI instruction makes MCU enter WAI-1 mode. In this mode, CPU stops, but the PSG, timer/counter keep running if their clock sources are from OSCX. The wake-up procedure is the same as for WAI-0. The difference is that the warm-up cycles occur when waking from WAI-1. Sample program is shown as following: LDA #$04 STA <SYS WAI ; WAI 1 mode 17.3 STP Mode: STP instruction will force MCU to enter stop mode. In this mode, MCU stops, but PSG, timer/counter won’t stop if the clock source is from OSCX. In power-down mode, MCU can only be waked up by hardware reset, and the warm-up cycles occur at the same time. FIGURE 17-1 Status Under Power Down Modes SYSCK source is OSC: Mode Timer0,1 SYSCK LCD OSC OSCX Base Timer RAM REG. I/O Wake-up condition WAI-0 Retain Reset, Any interrupt WAI-1 Stop Stop Stop Stop Retain Reset, Any interrupt STP Stop Stop Stop Stop Retain Reset SYSCK source is OSCX: Mode Timer0,1 SYSCK OSC OSCX Base Timer RAM REG. I/O LCD Wake-up condition WAI-0 Retain Wrong Frame Reset, Any interrupt WAI-1 Stop Stop Retain Stop Reset, Any interrupt STP Stop Stop Retain Stop Reset ***notice: If high frequency was optioned to crystal mode (not RC oscillator), system clock need to be switched to low frequency (32768Hz) before into WAI1 mode. smb7 <SYS ;; Change to OSCX bbr7 <SYS,$ ;; Wait OSCX stable smb6 <SYS ;; OSC OFF wai ;; sleep ;;after wake up. rmb6 <SYS ;; OSC ON. jsr WAIT_8ms ;; For OSC stable. rmb7 <SYS ;; Change to OSC bbs7 <SYS,$ ;; Wait OSC stable. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |