PIC16F871 Datasheet

  • PIC16F871

  • 28/40-Pin, 8-Bit CMOS FLASH Microcontrollers

  • 1755.40KB

  • 172页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16F870/871
2.2.2
SPECIAL FUNCTION REGISTERS
The Special Function Registers are registers used by
the CPU and peripheral modules for controlling the
desired operation of the device. These registers are
implemented as static RAM. A list of these registers is
given in Table 2-1.
The Special Function Registers can be classified into
two sets; core (CPU) and peripheral. Those registers
associated with the core functions are described in
detail in this section. Those related to the operation of
the peripheral features are described in detail in the
peripheral feature section.
TABLE 2-1:
Address
SPECIAL FUNCTION REGISTER SUMMARY
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on
all other
resets
(2)
Bank 0
00h
(4)
01h
02h
(4)
03h
(4)
INDF
TMR0
PCL
STATUS
FSR
PORTA
PORTB
PORTC
PORTD
PORTE
PCLATH
INTCON
PIR1
PIR2
TMR1L
TMR1H
T1CON
TMR2
T2CON
Addressing this location uses contents of FSR to address data memory (not a physical register)
Timer0 module鈥檚 register
Program Counter's (PC) Least Significant Byte
IRP
RP1
RP0
TO
PD
Z
DC
C
0000 0000 0000 0000
xxxx xxxx uuuu uuuu
0000 0000 0000 0000
0001 1xxx 000q quuu
xxxx xxxx uuuu uuuu
--0x 0000 --0u 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
04h
(4)
05h
06h
07h
08h
(5)
09h
(5)
0Ah
(1,4)
0Bh
(4)
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
14h
15h
16h
17h
18h
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
Indirect data memory address pointer
鈥?/div>
鈥?/div>
PORTA Data Latch when written: PORTA pins when read
PORTB Data Latch when written: PORTB pins when read
PORTC Data Latch when written: PORTC pins when read
PORTD Data Latch when written: PORTD pins when read
鈥?/div>
鈥?/div>
GIE
PSPIF
(3)
鈥?/div>
鈥?/div>
鈥?/div>
PEIE
ADIF
鈥?/div>
鈥?/div>
鈥?/div>
T0IE
RCIF
鈥?/div>
鈥?/div>
鈥?/div>
RE2
RE1
RE0
---- -xxx ---- -uuu
---0 0000 ---0 0000
0000 000x 0000 000u
0000 -000 0000 -000
---0 ---- ---0 ----
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Write Buffer for the upper 5 bits of the Program Counter
INTE
TXIF
EEIF
RBIE
鈥?/div>
鈥?/div>
T0IF
CCP1IF
鈥?/div>
INTF
TMR2IF
鈥?/div>
RBIF
TMR1IF
鈥?/div>
Holding register for the Least Significant Byte of the 16-bit TMR1 register
Holding register for the Most Significant Byte of the 16-bit TMR1 register
鈥?/div>
鈥?/div>
鈥?/div>
T1CKPS1
T1CKPS0
TOUTPS1
T1OSCEN
TOUTPS0
T1SYNC
TMR1CS
TMR1ON
Timer2 module鈥檚 register
TOUTPS3 TOUTPS2
--00 0000 --uu uuuu
0000 0000 0000 0000
TMR2ON T2CKPS1 T2CKPS0
-000 0000 -000 0000
CCPR1L
CCPR1H
CCP1CON
RCSTA
TXREG
RCREG
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
鈥?/div>
SPEN
鈥?/div>
RX9
CCP1X
SREN
CCP1Y
CREN
CCP1M3
ADDEN
CCP1M2
FERR
CCP1M1
OERR
CCP1M0
RX9D
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
--00 0000 --00 0000
0000 000x 0000 000x
0000 0000 0000 0000
0000 0000 0000 0000
USART Transmit Data Register
USART Receive Data Register
ADRESH
ADCON0
A/D Result Register High Byte
ADCS1
ADCS0
CHS2
CHS1
CHS0
GO/
DONE
鈥?/div>
ADON
xxxx xxxx uuuu uuuu
0000 00-0 0000 00-0
Legend:
x
= unknown,
u
= unchanged,
q
= value depends on condition, - = unimplemented read as 鈥?鈥? r = reserved.
Shaded locations are unimplemented, read as 鈥?鈥?
Note 1:
The upper byte of the program counter is not directly accessible. PCLATH is a holding register for the PC<12:8> whose
contents are transferred to the upper byte of the program counter.
2:
Other (non power-up) resets include external reset through MCLR and Watchdog Timer Reset.
3:
Bits PSPIE and PSPIF are reserved on the 28-pin devices; always maintain these bits clear.
4:
These registers can be addressed from any bank.
5:
PORTD, PORTE, TRISD and TRISE are not physically implemented on the 28-pin devices, read as 鈥?鈥?
1999 Microchip Technology Inc.
Preliminary
DS30569A-page 13

PIC16F871相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    Microcontroller
    MICROCHIP
  • 英文版
    Microcontroller 
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM-Based 8-Bit CMOS Microcontroller
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    ETC
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    28-Pin Programmable Mixed Signal Controller
    Microchip
  • 英文版
    EPROM Memory Programming Specification
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
    MICROCHIP

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!