參數(shù)資料
型號(hào): PIC16F84A-04/P
廠商: Microchip Technology
文件頁(yè)數(shù): 26/81頁(yè)
文件大小: 0K
描述: IC MCU FLASH 1KX14 EE 18DIP
產(chǎn)品培訓(xùn)模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標(biāo)準(zhǔn)包裝: 25
系列: PIC® 16F
核心處理器: PIC
芯體尺寸: 8-位
速度: 4MHz
外圍設(shè)備: POR,WDT
輸入/輸出數(shù): 13
程序存儲(chǔ)器容量: 1.75KB(1K x 14)
程序存儲(chǔ)器類型: 閃存
EEPROM 大小: 64 x 8
RAM 容量: 68 x 8
電壓 - 電源 (Vcc/Vdd): 4 V ~ 5.5 V
振蕩器型: 外部
工作溫度: 0°C ~ 70°C
封裝/外殼: 18-DIP(0.300",7.62mm)
包裝: 管件
產(chǎn)品目錄頁(yè)面: 638 (CN2011-ZH PDF)
配用: I3-DB16F84A-ND - BOARD DAUGHTER ICEPIC3
DVA16XP180-ND - ADAPTER DEVICE FOR MPLAB-ICE
AC164010-ND - MODULE SKT PROMATEII DIP/SOIC
PIC16F84A
DS35007B-page 30
2001 Microchip Technology Inc.
6.9
Context Saving During Interrupts
During an interrupt, only the return PC value is saved
on the stack. Typically, users wish to save key register
values during an interrupt (e.g., W register and
STATUS register). This is implemented in software.
The code in Example 6-1 stores and restores the
STATUS and W register’s values. The user defined
registers, W_TEMP and STATUS_TEMP are the tem-
porary storage locations for the W and STATUS
registers values.
Example 6-1 does the following:
a)
Stores the W register.
b)
Stores the STATUS register in STATUS_TEMP.
c)
Executes the Interrupt Service Routine code.
d)
Restores the STATUS (and bank select bit)
register.
e)
Restores the W register.
EXAMPLE 6-1:
SAVING STATUS AND W REGISTERS IN RAM
6.10
Watchdog Timer (WDT)
The Watchdog Timer is a free running On-Chip RC
Oscillator which does not require any external
components. This RC oscillator is separate from the
RC oscillator of the OSC1/CLKIN pin. That means that
the WDT will run even if the clock on the OSC1/CLKIN
and OSC2/CLKOUT pins of the device has been
stopped, for example, by execution of a SLEEP
instruction. During normal operation, a WDT time-out
generates a device RESET. If the device is in SLEEP
mode, a WDT wake-up causes the device to wake-up
and continue with normal operation. The WDT can be
permanently disabled by programming configuration bit
WDTE as a '0' (Section 6.1).
6.10.1
WDT PERIOD
The WDT has a nominal time-out period of 18 ms, (with
no
prescaler).
The
time-out
periods
vary
with
temperature, VDD and process variations from part to
part (see DC specs). If longer time-out periods are
desired, a prescaler with a division ratio of up to 1:128
can be assigned to the WDT under software control by
writing to the OPTION_REG register. Thus, time-out
periods up to 2.3 seconds can be realized.
The CLRWDT and SLEEP instructions clear the WDT
and the postscaler (if assigned to the WDT) and pre-
vent it from timing out and generating a device
RESET condition.
The TO bit in the STATUS register will be cleared upon
a WDT time-out.
PUSH
MOVWF
W_TEMP
; Copy W to TEMP register,
SWAPF
STATUS,
W
; Swap status to be saved into W
MOVWF
STATUS_TEMP
; Save status to STATUS_TEMP register
ISR
:
; Interrupt Service Routine
:
; should configure Bank as required
:;
POP
SWAPF
STATUS_TEMP,W
; Swap nibbles in STATUS_TEMP register
; and place result into W
MOVWF
STATUS
; Move W into STATUS register
; (sets bank to original state)
SWAPF
W_TEMP,
F
; Swap nibbles in W_TEMP and place result in W_TEMP
SWAPF
W_TEMP,
W
; Swap nibbles in W_TEMP and place result into W
相關(guān)PDF資料
PDF描述
DSPIC30F2020-20E/MM IC DSPIC MCU/DSP 12K 28QFN
ATTINY13V-10SSI IC MCU AVR 1K FLASH 10MHZ 8SOIC
ATTINY13V-10SI IC MCU AVR 1K FLASH 10MHZ 8SOIC
ATTINY13V-10PI IC MCU AVR 1K FLASH 10MHZ 8DIP
ATTINY13-20SSI IC MCU AVR 1K FLASH 20MHZ 8SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16F84A-20/P 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 20MHz PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16F84A-20/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 16F84 DIP18
PIC16F84A-20/SO 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 20MHz SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16F84A-20/SO 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F84 SOIC18
PIC16F84A-20/SS 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 20MHz SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT