参数资料
型号: PIC14000-20I/SS
厂商: Microchip Technology
文件页数: 83/153页
文件大小: 0K
描述: IC MCU OTP 4KX14 A/D 28SSOP
产品培训模块: Asynchronous Stimulus
标准包装: 47
系列: PIC® 14
核心处理器: PIC
芯体尺寸: 8-位
速度: 20MHz
连通性: I²C
外围设备: POR,温度传感器,WDT
输入/输出数: 20
程序存储器容量: 7KB(4K x 14)
程序存储器类型: OTP
RAM 容量: 192 x 8
电压 - 电源 (Vcc/Vdd): 2.7 V ~ 6 V
数据转换器: 斜率 A/D
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 28-SSOP(0.209",5.30mm 宽)
包装: 管件
配用: 309-1025-ND - ADAPTER 28-SSOP TO 28-DIP
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).
相关PDF资料
PDF描述
ADG884BCPZ-REEL IC SWITCH DUAL SPDT 10LFCSP
PIC18LF6620T-I/PT IC MCU FLASH 32KX16 LV 64-TQFP
ADG701BRJ-500RL7 IC SWITCH SPST SOT23-5
VE-BWZ-IX-S CONVERTER MOD DC/DC 2V 30W
VE-BWY-IX-S CONVERTER MOD DC/DC 3.3V 49.5W
相关代理商/技术参数
参数描述
PIC14000T-04/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC14000T-04/SS 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC14000T-04I/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC14000T-04I/SS 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC14000T-20/SO 功能描述:8位微控制器 -MCU 7KB 192 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT