參數(shù)資料
型號(hào): 35007B
廠商: Microchip Technology Inc.
英文描述: 18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
中文描述: 18針/ EEPROM的8位微控制器的閃存
文件頁(yè)數(shù): 13/88頁(yè)
文件大?。?/td> 1495K
代理商: 35007B
2001 Microchip Technology Inc.
DS35007B-page 11
PIC16F84A
2.4
PCL and PCLATH
The program counter (PC) specifies the address of the
instruction to fetch for execution. The PC is 13 bits
wide. The low byte is called the PCL register. This reg-
ister is readable and writable. The high byte is called
the PCH register. This register contains the PC<12:8>
bits and is not directly readable or writable. If the pro-
gram counter (PC) is modified or a conditional test is
true, the instruction requires two cycles. The second
cycle is executed as a
NOP
. All updates to the PCH reg-
ister go through the PCLATH register.
2.4.1
STACK
The stack allows a combination of up to 8 program calls
and interrupts to occur. The stack contains the return
address from this branch in program execution.
Mid-range devices have an 8 level deep x 13-bit wide
hardware stack. The stack space is not part of either
program or data space and the stack pointer is not
readable or writable. The PC is PUSHed onto the stack
when a
CALL
instruction is executed or an interrupt
causes a branch. The stack is POPed in the event of a
RETURN, RETLW
or a
RETFIE
instruction execution.
PCLATH is not modified when the stack is PUSHed or
POPed.
After the stack has been PUSHed eight times, the ninth
push overwrites the value that was stored from the first
push. The tenth push overwrites the second push (and
so on).
2.5
Indirect Addressing; INDF and
FSR Registers
The INDF register is not a physical register. Addressing
INDF actually addresses the register whose address is
contained in the FSR register (FSR is a pointer). This is
indirect addressing.
EXAMPLE 2-1:
Register file 05 contains the value 10h
Register file 06 contains the value 0Ah
Load the value 05 into the FSR register
A read of the INDF register will return the value
of 10h
Increment the value of the FSR register by one
(FSR = 06)
A read of the INDF register now will return the
value of 0Ah.
INDIRECT ADDRESSING
Reading INDF itself indirectly (FSR = 0) will produce
00h. Writing to the INDF register indirectly results in a
no-operation (although STATUS bits may be affected).
A simple program to clear RAM locations 20h-2Fh
using indirect addressing is shown in Example 2-2.
EXAMPLE 2-2:
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit (STATUS<7>), as
shown in Figure 2-3. However, IRP is not used in the
PIC16F84A.
movlw
movwf
clrf
incf
btfss
goto
0x20
FSR
INDF
FSR
FSR,4
NEXT
;initialize pointer
;to RAM
;clear INDF register
;inc pointer
;all done
;NO, clear next
NEXT
CONTINUE
:
;YES, continue
相關(guān)PDF資料
PDF描述
350PJT 1200A ITGQ Gate Turn-Off Hockey Puk SCRs
351-90-116-00-017 PCB connectors 2.54 mm Single row / double row Solder tail
351-90-116-00-016 HOOD DB50 PLASTIC 10 PACK
351-90-116-00-005 DB-50 PLASTIC HOOD
351-90-116-00-004 CRIMP SHELLS DB50 FEMALE
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
35-007-BU 制造商:GC Electronics 功能描述:Switch Toggle ON OFF (ON) SPDT Bat Toggle Solder 5A 250VAC 28VDC Panel Mount with Threads Bulk
35008 功能描述:WRENCH OPEN END METRIC 10X11MM RoHS:否 類別:工具 >> 鉗子、扳手 系列:350 標(biāo)準(zhǔn)包裝:1 系列:- 尖端 - 類型:針頭,直形 工具類型:鉗子 特點(diǎn):人機(jī)工程型手柄,ESD 安全,鋸齒狀 長(zhǎng)度:5.75"(146.05mm) 重量:0.23 磅(104.33g)
35-008 制造商:GC Electronics 功能描述:SPDT(ON)-OFF-(ON)MIN BAT TO 制造商:Ideal Industries Inc 功能描述:TENITE HANDLES 8 IN 制造商:GC Electronics 功能描述:Switch Toggle (ON) OFF (ON) SPDT Bat Toggle Solder 5A 250VAC 28VDC Panel Mount with Threads 制造商:Ideal Industries Inc 功能描述:Switch Toggle (ON) OFF (ON) SPDT Bat Toggle
35008 BK199 制造商:Alpha Wire Company 功能描述:35008 BLACK 1000 = 1000 FT
350080-1 功能描述:端子 RING 18-14 10 .025TP RoHS:否 制造商:AVX 產(chǎn)品:Junction Box - Wire to Wire 系列:9826 線規(guī):26-18 接線柱/接頭大小: 絕緣: 顏色:Red 型式:Female 觸點(diǎn)電鍍:Tin over Nickel 觸點(diǎn)材料:Beryllium Copper, Phosphor Bronze 端接類型:Crimp