參數(shù)資料
型號(hào): PIC12F681
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Enhanced FLASH Microcontroller with Serial I/O Interface(-2.0~5.5V,串行I/O接口,閃速微控制器)
中文描述: 8引腳,8位串行我的CMOS增強(qiáng)型閃存微控制器/ O接口(-2.0?5.5V的,串行的I / O接口,閃速微控制器)
文件頁數(shù): 36/170頁
文件大?。?/td> 4191K
代理商: PIC12F681
PIC16F62X
DS40300C-page 34
Preliminary
2003 Microchip Technology Inc.
TABLE 5-2:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTA
(1)
5.2
PORTB and TRISB Registers
PORTB is an 8-bit wide bi-directional port. The
corresponding data direction register is TRISB. A '1' in
the TRISB register puts the corresponding output driver
in a Hi-impedance mode. A '0' in the TRISB register
puts the contents of the output latch on the selected
pin(s).
PORTB is multiplexed with the external interrupt,
USART, CCP module and the TMR1 clock input/output.
The standard port functions and the alternate port
functions are shown in Table 5-3. Alternate port
functions override TRIS setting when enabled.
Reading PORTB register reads the status of the pins,
whereas writing to it will write to the port latch. All write
operations are read-modify-write operations. So a write
to a port implies that the port pins are first read, then
this value is modified and written to the port data latch.
Each of the PORTB pins has a weak internal pull-up
(
200
μ
A typical). A single control bit can turn on all the
pull-ups. This is done by clearing the RBPU
(OPTION<7>) bit. The weak pull-up is automatically
turned off when the port pin is configured as an output.
The pull-ups are disabled on Power-on Reset.
Four of PORTB’s pins, RB<7:4>, have an interrupt-on-
change feature. Only pins configured as inputs can
cause this interrupt to occur (i.e., any RB<7:4> pin con-
figured as an output is excluded from the interrupt-on-
change comparison). The input pins (of RB7:RB4) are
compared with the old value latched on the last read of
PORTB. The “mismatch” outputs of RB7:RB4 are
OR’ed together to generate the RBIF interrupt (flag
latched in INTCON<0>).
This interrupt can wake the device from SLEEP. The
user, in the interrupt service routine, can clear the
interrupt in the following manner:
a)
Any read or write of PORTB. This will end the
mismatch condition.
b)
Clear flag bit RBIF.
A mismatch condition will continue to set flag bit RBIF.
Reading PORTB will end the mismatch condition and
allow flag bit RBIF to be cleared.
This interrupt on mismatch feature, together with
software configurable pull-ups on these four pins allow
easy interface to a key pad and make it possible for
wake-up on key-depression. (See AN552)
The interrupt-on-change feature is recommended for
wake-up on key depression operation and operations
where PORTB is only used for the interrupt-on-change
feature. Polling of PORTB is not recommended while
using the interrupt-on-change feature.
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR
Value on
All Other
RESETS
05h
PORTA
RA7
RA6
RA5
RA4
RA3
RA2
RA1
RA0
xxxx 0000
xxxu 0000
85h
TRISA
TRISA7
TRISA6
TRISA5
TRISA4
TRISA3
TRISA2
TRISA1
TRISA0
1111 1111
1111 1111
1Fh
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0
0000 0000
0000 0000
9Fh
VRCON
VREN
VROE
VRR
VR3
VR2
VR1
VR0
000- 0000
000- 0000
Legend:
Note 1:
Shaded bits are not used by PORTA.
— = Unimplemented locations, read as ‘0’, u = unchanged, x = unknown
Note:
If a change on the I/O pin should occur
when a read operation is being executed
(start of the Q2 cycle), then the RBIF inter-
rupt flag may not get set.
相關(guān)PDF資料
PDF描述
PIC16C164 OTP 8-Bit High-Performance CMOS Microcontroller(主從模式,工作電壓3.0~5.5V,2路PWM的微控制器)
PIC16C165 OTP 8-Bit High-Performance CMOS Microcontroller(主從模式,工作電壓3.0~5.5V,2路PWM的微控制器)
PIC16C174 OTP 8-Bit High-Performance CMOS Microcontroller(主從模式,工作電壓3.0~5.5V,2路PWM的微控制器)
PIC16C175 OTP 8-Bit High-Performance CMOS Microcontroller(主從模式,工作電壓3.0~5.5V,2路PWM的微控制器)
PIC16C176 OTP 8-Bit High-Performance CMOS Microcontroller(主從模式,工作電壓3.0~5.5V,2路PWM的微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12F683 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC12F683 DEVELOPMENT BOARD KIT 制造商:Custom Computer Services (CCS) 功能描述:BOARD DEV FOR PIC12F683
PIC12F683 DEVELOPMENT KIT 功能描述:KIT DEV EMBEDDED C RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 通用嵌入式開發(fā)板和套件(MCU、DSP、FPGA、CPLD等) 系列:- 標(biāo)準(zhǔn)包裝:1 系列:PICDEM™ 類型:MCU 適用于相關(guān)產(chǎn)品:PIC10F206,PIC16F690,PIC16F819 所含物品:板,線纜,元件,CD,PICkit 編程器 產(chǎn)品目錄頁面:659 (CN2011-ZH PDF)
PIC12F683_07 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC12F683-E/MD 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 6I/O 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