参数资料
型号: PIC16LF720-I/SS
厂商: Microchip Technology
文件页数: 69/135页
文件大小: 0K
描述: MCU PIC 2K FLASH 20-SSOP
产品培训模块: 8-bit PIC® Microcontroller Portfolio
标准包装: 67
系列: PIC® XLP™ 16F
核心处理器: PIC
芯体尺寸: 8-位
速度: 16MHz
连通性: I²C,SPI,UART/USART
外围设备: 欠压检测/复位,POR,PWM,WDT
输入/输出数: 17
程序存储器容量: 3.5KB(2K x 14)
程序存储器类型: 闪存
RAM 容量: 128 x 8
电压 - 电源 (Vcc/Vdd): 1.8 V ~ 3.6 V
数据转换器: A/D 12x8b
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 28-SSOP(0.209",5.30mm 宽)
包装: 管件
2010-2011 Microchip Technology Inc.
Preliminary
DS41430C-page 39
PIC16(L)F720/721
4.3
Interrupts During Sleep
Some interrupts can be used to wake from Sleep. To
wake from Sleep, the peripheral must be able to
operate without the system clock. The interrupt source
must have the appropriate Interrupt Enable bit(s) set
prior to entering Sleep.
On waking from Sleep, if the GIE bit is also set, the
processor will branch to the interrupt vector. Otherwise,
the processor will continue executing instructions after
the SLEEP instruction. The instruction directly after the
SLEEP instruction will always be executed before
branching to the ISR. Refer to the Section 19.0
4.4
INT Pin
The
external
interrupt,
INT
pin,
causes
an
asynchronous, edge-triggered interrupt. The INTEDG bit
of the OPTION_REG register determines on which edge
the interrupt will occur. When the INTEDG bit is set, the
rising edge will cause the interrupt. When the INTEDG
bit is clear, the falling edge will cause the interrupt. The
INTF bit of the INTCON register will be set when a valid
edge appears on the INT pin. If the GIE and INTE bits
are also set, the processor will redirect program
execution to the interrupt vector. This interrupt is
disabled by clearing the INTE bit of the INTCON register.
4.5
Context Saving
When an interrupt occurs, only the return PC value is
saved to the stack. If the ISR modifies or uses an
instruction that modifies key registers, their values
must be saved at the beginning of the ISR and restored
when the ISR completes. This prevents instructions
following the ISR from using invalid data. Examples of
key registers include the W, STATUS, FSR and
PCLATH registers.
The code shown in Example 4-1 can be used to do the
following.
Save the W register
Save the STATUS register
Save the PCLATH register
Execute the ISR program
Restore the PCLATH register
Restore the STATUS register
Restore the W register
Since most instructions modify the W register, it must
be saved immediately upon entering the ISR. The
SWAPF instruction is used when saving and restoring
the W and STATUS registers because it will not affect
any bits in the STATUS register. It is useful to place
W_TEMP in shared memory because the ISR cannot
predict which bank will be selected when the interrupt
occurs.
The processor will branch to the interrupt vector by
loading the PC with 0004h. The PCLATH register will
remain unchanged. This requires the ISR to ensure
that the PCLATH register is set properly before using
an instruction that causes PCLATH to be loaded into
details on PC operation.
EXAMPLE 4-1:
SAVING W, STATUS AND PCLATH REGISTERS IN RAM
Note:
The microcontroller does not normally
require saving the PCLATH register.
However, if computed GOTOs are used,
the PCLATH register must be saved at the
beginning of the ISR and restored when
the ISR is complete to ensure correct
program flow.
MOVWFW_TEMP
;Copy W to W_TEMP register
SWAPFSTATUS,W
;Swap status to be saved into W
;Swaps are used because they do not affect the status bits
BANKSELSTATUS_TEMP
;Select regardless of current bank
MOVWFSTATUS_TEMP
;Copy status to bank zero STATUS_TEMP register
MOVF
PCLATH,W
;Copy PCLATH to W register
MOVWF
PCLATH_TEMP
;Copy W register to PCLATH_TEMP
:
:(ISR)
;Insert user code here
:
BANKSELSTATUS_TEMP
;Select regardless of current bank
MOVF
PCLATH_TEMP,W ;
MOVWF
PCLATH
;Restore PCLATH
SWAPFSTATUS_TEMP,W
;Swap STATUS_TEMP register into W
;(sets bank to original state)
MOVWFSTATUS
;Move W into STATUS register
SWAPFW_TEMP,F
;Swap W_TEMP
SWAPFW_TEMP,W
;Swap W_TEMP into W
相关PDF资料
PDF描述
PIC16F720-I/SS MCU PIC 2K FLASH 20-SSOP
PIC16F526-E/P IC PIC MCU FLASH 1KX12 14DIP
PIC16F610-I/P IC PIC MCU FLASH 1KX14 14DIP
VE-B4N-IX-F3 CONVERTER MOD DC/DC 18.5V 75W
PIC12HV752-I/P IC MCU 8BIT 1024B FLASH 8-PDIP
相关代理商/技术参数
参数描述
PIC16LF720T-I/ML 功能描述:8位微控制器 -MCU 3.5 KB FLASH 128 B SRAM, 18 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF720T-I/SO 功能描述:8位微控制器 -MCU 3.5 KB FLASH 128 B SRAM, 18 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF720T-I/SS 功能描述:8位微控制器 -MCU 3.5 KB FLASH 128 B SRAM, 18 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF721-E/ML 功能描述:8位微控制器 -MCU 7 KB FLASH 256 B SRAM, 18 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16LF721-E/P 功能描述:8位微控制器 -MCU 7 KB FLASH 256 B SRAM, 18 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT