欢迎访问ic37.com |
会员登录 免费注册
发布采购

MPC82G516AD 参数 Datasheet PDF下载

MPC82G516AD图片预览
型号: MPC82G516AD
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AD的Datasheet PDF文件第108页浏览型号MPC82G516AD的Datasheet PDF文件第109页浏览型号MPC82G516AD的Datasheet PDF文件第110页浏览型号MPC82G516AD的Datasheet PDF文件第111页浏览型号MPC82G516AD的Datasheet PDF文件第113页浏览型号MPC82G516AD的Datasheet PDF文件第114页浏览型号MPC82G516AD的Datasheet PDF文件第115页浏览型号MPC82G516AD的Datasheet PDF文件第116页  
21.2 Power-Down Mode  
To save even more power, the Power-Down mode can be invoked by software .An instruction that sets PD bit  
(PCON.1) causes that to be the last instruction executed before going into the Power-Down mode. In the Power-  
Down mode, the on-chip oscillating is stopped. With the clock frozen, all functions are stopped, the contents of  
the on-chip RAM and all of the Special Function Registers retain their values. The port pins output the values  
held by their respective SFRs.  
Either a hardware reset from the RST pin or the External Interrupt (INT0~INT3) & Keypad Interrupt can be used  
to exit from Power-Down. Reset initializes all the SFRs but does not change the on-chip RAM. The External  
Interrupt & Keypad Interrupt allow both the SFRs and the on-chip RAM to retain their values; and, once the  
interrupt is serviced, the next instruction to be executed after RETI will be the one following the instruction that  
put the device into Power-Down.  
21.2.1 Wake-up from Power-Down Mode  
To exit from Power-Down mode by External Interrupts or Keypad Interrupt, it is recommended to insert at least  
one NOP instruction following the instruction that invokes Power-Down mode. The NOP instruction is used to  
eliminate the possibility of unexpected code execution when returning from the interrupt service routine.  
Note: /INT0 is used in this example.  
;******************************************************************************************  
; Wake-up-from-power-down by /INT0 interrupt  
;******************************************************************************************  
INT0  
EA  
EX0  
BIT  
BIT  
BIT  
0B2H  
0AFH  
0A8H  
;P3.2  
;IE.7  
;IE.0  
CSEG  
JMP  
AT 0000h  
start  
;
CSEG  
JMP  
AT 0003h ;/INT0 interrupt vector, address=0003h  
IE0_isr  
IE0_isr:  
CLR  
EX0  
;... do something  
;...  
RETI  
;
start:  
;...  
;...  
SETB  
INT0  
;pull high P3.2  
CLR  
IE0  
IT0  
EA  
;clear /INT0 interrupt flag  
;may select falling-edge/low-level triggered  
;enable global interrupt  
SETB  
SETB  
SETB  
EX0  
;enable /INT0 interrupt  
ORL  
NOP  
PCON,#02h ;put MCU into power-down mode  
;! Note: here must be a NOP  
Resume_operation:  
;If /INT0 is triggered by a falling-edge, the MCU will wake up, enter "IE0_isr",  
;and then return here to run continuously !  
;...  
;...  
;
MEGAWIN  
MPC82G516A Data Sheet  
112  
 
 复制成功!