參數(shù)資料
型號: PIC14000-04I/SP
廠商: Microchip Technology
文件頁數(shù): 83/153頁
文件大小: 0K
描述: IC MCU OTP 4KX14 A/D 28DIP
產(chǎn)品培訓(xùn)模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標(biāo)準(zhǔn)包裝: 15
系列: PIC® 14
核心處理器: PIC
芯體尺寸: 8-位
速度: 4MHz
連通性: I²C
外圍設(shè)備: POR,溫度傳感器,WDT
輸入/輸出數(shù): 20
程序存儲器容量: 7KB(4K x 14)
程序存儲器類型: OTP
RAM 容量: 192 x 8
電壓 - 電源 (Vcc/Vdd): 2.7 V ~ 6 V
數(shù)據(jù)轉(zhuǎn)換器: 斜率 A/D
振蕩器型: 內(nèi)部
工作溫度: -40°C ~ 85°C
封裝/外殼: 28-DIP(0.300",7.62mm)
包裝: 管件
配用: ISPICR1-ND - ADAPTER IN-CIRCUIT PROGRAMMING
ICE2000-ND - EMULATOR MPLAB-ICE 2000 POD
1996 Microchip Technology Inc.
Preliminary
DS40122B-page 35
PIC14000
If the CMBOE bit (CMCON<5>) is set, the RD3/REFB
pin becomes the programmable reference B output
and pin RD2/CMPB becomes the comparator B output.
PORTD<1:0> also serve multiple functions. These pins
act as the I2C data and clock lines when the I2C module
is enabled.
The TRISD register controls the direction of the Port D
pins.
A
‘1’
in
each
location
congures
the
corresponding port pin as an input. Upon reset, this
register sets to FFh, meaning all PORTD pins are ini-
tially inputs. The data register should be initialized prior
to conguring the port as outputs.
Unused inputs should not be left floating to avoid
leakage currents. All pins have input protection diodes
to VDD and VSS.
EXAMPLE 5-3:
INITIALIZING PORTD
Note:
Setting CMBOE changes the denition of
RD3/REFB and RD2/CMPB, bypassing
the PORTD data and TRISD register set-
tings.
CLRF
PORTD
; Initialize PORTD data
;
latches before setting
;
the data direction
;
register
BSF
STATUS, RP0
; Select Bank1
MOVLW
0xFF
; Value used to initialize
; data direction
MOVWF
TRISD
; Set RD<7:0> as inputs
5.4
I/O Programming Considerations
5.4.1
BI-DIRECTIONAL I/O PORTS
Reading the port register reads the values of the port
pins. Writing to the port register writes the value to the
port latch. Some instructions operate internally as
read-modify-write. The BCF and BSF instructions, for
example, read the register into the CPU, execute the bit
operation, and write the result back to the register.
Caution must be used when these instructions are
applied to a port with both inputs and outputs dened.
For example, a BSF operation on bit5 of PORTC will
cause all eight bits of PORTC to be read into the CPU.
Then the BSF operation takes place on bit5 and
PORTC is written to the output latches. If another bit of
PORTC is used as a bi-directional I/O pin (say bit0) and
it is dened as an input at this time, the input signal
present on the pin itself would be read into the CPU
and re-written to the data latch of this particular pin,
overwriting the previous content. As long as the pin
stays in the input mode, no problem occurs. However,
if bit0 is switched into output mode later on, the content
of the data latch may now be unknown.
A pin actively outputting a LOW or HIGH should not be
driven from external devices at the same time in order
to change the level on this pin (“wire-or”, “wire-and”).
The resulting high output currents may damage the
chip.
Example 5-4 shows the effect of two sequential read
modify write instructions (ex. BCF, BSF, etc.) on an I/O
Port.
EXAMPLE 5-4:
READ MODIFY WRITE
INSTRUCTIONS ON AN
I/O PORT
;
Initial PORT settings:
PORTC<7:4> Inputs
;
PORTC<3:0> Outputs
;
PORTC<7:6> have external pull-up and are not
connected to other circuitry
;
PORT
latch
PORT pins
;
----------
BCF PORTC, 7
; 01pp
pppp
11pp pppp
BCF PORTC, 6
; 10pp
pppp
11pp pppp
BSF STATUS,RP0
;
BCF TRISC, 7
; 10pp
pppp
11pp pppp
BCF TRISC, 6
; 10pp
pppp
10pp pppp
;
; Note that the user may have expected the pin
; values to be 00pp pppp. The 2nd BCF caused
; RC7 to be latched as the pin value (High).
相關(guān)PDF資料
PDF描述
C8051F231 IC 8051 MCU 8K FLASH 32LQFP
C8051F230 IC 8051 MCU 8K FLASH 48TQFP
C8051F226 IC 8051 MCU 8K FLASH 48TQFP
1-100526-3 Z-PACK F.CODING KEY
1-100526-2 Z-PACK F.CODING KEY
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC14000-20/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小: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
PIC14000-20/SP 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小: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
PIC14000-20/SS 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小: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
PIC14000-20I/P 制造商:Microchip Technology Inc 功能描述:MCU 8BIT PIC14 RISC 7KB EPROM 5V - Bulk
PIC14000-20I/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小: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