Web Analytics
Datasheet 搜索 > 8位微控制器 > Microchip(微芯) > PIC16LF628A-I/SS 数据手册 > PIC16LF628A-I/SS 数据手册 33/180 页
PIC16LF628A-I/SS
器件3D模型
27.605
导航目录
PIC16LF628A-I/SS数据手册
Page:
of 180 Go
若手册格式错乱,请下载阅览PDF原文件
© 2009 Microchip Technology Inc. DS40044G-page 33
PIC16F627A/628A/648A
5.0 I/O PORTS
The PIC16F627A/628A/648A have two ports, PORTA
and PORTB. Some pins for these I/O ports are
multiplexed with alternate functions for the peripheral
features on the device. In general, when a peripheral is
enabled, that pin may not be used as a general
purpose I/O pin.
5.1 PORTA and TRISA Registers
PORTA is an 8-bit wide latch. RA4 is a Schmitt Trigger
input and an open drain output. Port RA4 is multiplexed
with the T0CKI clock input. RA5
(1)
is a Schmitt Trigger
input only and has no output drivers. All other RA port
pins have Schmitt Trigger input levels and full CMOS
output drivers. All pins have data direction bits (TRIS
registers) which can configure these pins as input or
output.
A ‘1’ in the TRISA register puts the corresponding
output driver in a High-impedance mode. A ‘0’ in the
TRISA register puts the contents of the output latch on
the selected pin(s).
Reading the PORTA 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.
The PORTA pins are multiplexed with comparator and
voltage reference functions. The operation of these
pins are selected by control bits in the CMCON
(Comparator Control register) register and the VRCON
(Voltage Reference Control register) register. When
selected as a comparator input, these pins will read
as 0’s.
TRISA controls the direction of the RA pins, even when
they are being used as comparator inputs. The user
must make sure to keep the pins configured as inputs
when using them as comparator inputs.
The RA2 pin will also function as the output for the
voltage reference. When in this mode, the V
REF pin is a
very high-impedance output. The user must configure
TRISA<2> bit as an input and use high-impedance
loads.
In one of the comparator modes defined by the
CMCON register, pins RA3 and RA4 become outputs
of the comparators. The TRISA<4:3> bits must be
cleared to enable outputs to use this function.
EXAMPLE 5-1: INITIALIZING PORTA
FIGURE 5-1: BLOCK DIAGRAM OF
RA0/AN0:RA1/AN1 PINS
Note 1: RA5 shares function with VPP. When VPP
voltage levels are applied to RA5, the
device will enter Programming mode.
2: On Reset, the TRISA register is set to all
inputs. The digital inputs (RA<3:0>) are
disabled and the comparator inputs are
forced to ground to reduce current
consumption.
3: TRISA<6:7> is overridden by oscillator
configuration. When PORTA<6:7> is
overridden, the data reads ‘0’ and the
TRISA<6:7> bits are ignored.
CLRF PORTA ;Initialize PORTA by
;setting
;output data latches
MOVLW 0x07 ;Turn comparators off and
MOVWF CMCON ;enable pins for I/O
;functions
BCF STATUS, RP1
BSF STATUS, RP0 ;Select Bank1
MOVLW 0x1F ;Value used to initialize
;data direction
MOVWF TRISA ;Set RA<4:0> as inputs
;TRISA<5> always
;read as ‘1’.
;TRISA<7:6>
;depend on oscillator
;mode
Data
Bus
QD
Q
CK
WR
PORTA
WR
TRISA
Data Latch
TRIS Latch
RD
RD PORTA
Analog
I/O Pin
QD
Q
CK
Input Mode
DQ
EN
To Comparator
Schmitt Trigger
Input Buffer
VDD
VSS
TRISA
(CMCON Reg.)

PIC16LF628A-I/SS 数据手册

Microchip(微芯)
180 页 / 2.92 MByte
Microchip(微芯)
688 页 / 2.66 MByte
Microchip(微芯)
22 页 / 0.44 MByte
Microchip(微芯)
15 页 / 0.24 MByte
Microchip(微芯)
24 页 / 0.47 MByte
Microchip(微芯)
2 页 / 0.1 MByte
Microchip(微芯)
4 页 / 0.15 MByte

PIC16LF628 数据手册

Microchip(微芯)
MICROCHIP  PIC16LF628A-I/SO  微控制器, 8位, 闪存, PIC16LF6xx, 20 MHz, 3.5 KB, 224 Byte, 18 引脚, SOIC
Microchip(微芯)
MICROCHIP  PIC16LF628A-I/SS  微控制器, 8位, 闪存, PIC16LF6xx, 20 MHz, 3.5 KB, 224 Byte, 20 引脚, SSOP
Microchip(微芯)
PIC16F627A/628A/648A 微控制器Microchip 的 PIC16F 系列微控制器 8 位 MCU,将 Microchip 的 PIC® 体系架构融入到引脚和封装选件中,从节省空间的 14 引脚设备到功能丰富的 64 引脚设备。 带有基线、中级或增强型中级体系架构的设备提供多种不同的外围设备组合,可谓设计人员提供灵活性,并为应用提供选择。 PIC16F627A/628A/648A 系列微控制器基于 Microchip 中档内核,带 8 层深硬件堆栈和 35 个指令。 这些 MCU 提供高达 5 MIPS、高达 3.5 K 字节的程序内存,224 字节 RAM 和多达 128 字节的数据 EEPROM。 板载是一个振荡器,工厂校准到 ±1% 精确度。### 微控制器功能最大 20 MHz CPU 速度 35 个指令 8 级硬件堆栈 16 个输入/输出引脚 通电重置 (POR) 通电计时器 (PWRT) 振荡器启动计时器 (OST) 掉电重置 (BOR) 监控计时器 (WDT) 低电压编程 (LVP) 在线串行编程 (ICSP) ### 外设两个比较器 捕获/比较/PWM 模块 两个 8 位计时器 一个 16 位计时器 ### PIC16 微控制器
Microchip(微芯)
MICROCHIP  PIC16LF628-04I/P  微控制器, 8位, 闪存, PIC16LF6xx, 4 MHz, 3.5 KB, 224 Byte, 18 引脚, DIP
Microchip(微芯)
基于闪存的8位CMOS微控制器 FLASH-Based 8-Bit CMOS Microcontrollers
Microchip(微芯)
PIC16F627A/628A/648A 微控制器Microchip 的 PIC16F 系列微控制器 8 位 MCU,将 Microchip 的 PIC® 体系架构融入到引脚和封装选件中,从节省空间的 14 引脚设备到功能丰富的 64 引脚设备。 带有基线、中级或增强型中级体系架构的设备提供多种不同的外围设备组合,可谓设计人员提供灵活性,并为应用提供选择。 PIC16F627A/628A/648A 系列微控制器基于 Microchip 中档内核,带 8 层深硬件堆栈和 35 个指令。 这些 MCU 提供高达 5 MIPS、高达 3.5 K 字节的程序内存,224 字节 RAM 和多达 128 字节的数据 EEPROM。 板载是一个振荡器,工厂校准到 ±1% 精确度。### 微控制器功能最大 20 MHz CPU 速度 35 个指令 8 级硬件堆栈 16 个输入/输出引脚 通电重置 (POR) 通电计时器 (PWRT) 振荡器启动计时器 (OST) 掉电重置 (BOR) 监控计时器 (WDT) 低电压编程 (LVP) 在线串行编程 (ICSP) ### 外设两个比较器 捕获/比较/PWM 模块 两个 8 位计时器 一个 16 位计时器 ### PIC16 微控制器
Microchip(微芯)
PIC16 微控制器
Microchip(微芯)
PIC16F627/628 8 位闪存微控制器Microchip 的 PIC16F 系列微控制器 8 位 MCU,将 Microchip 的 PIC® 体系架构融入到引脚和封装选件中,从节省空间的 14 引脚设备到功能丰富的 64 引脚设备。 带有基线、中级或增强型中级体系架构的设备提供多种不同的外围设备组合,可谓设计人员提供灵活性,并为应用提供选择。 PIC16F627/628 系列微控制器基于 Microchip 的中级内核,带 8 层深硬件堆栈和 35 个指令。 这些 MCU 提供高达 5 MIPS、高达 3.5 K 字节的程序内存,224 字节 RAM 和多达 128 字节的数据 EEPROM。### 微控制器功能最大 20 MHz CPU 速度 35 指令 8 级硬件堆栈 16 个输入/输出引脚 通电重置 (POR) 通电计时器 (PWRT) 振荡器启动计时器 (OST) 掉电重置 (BOR) 监控器计时器 (WDT) 在线串行编程 (ICSP) ### 外设两个比较器 捕获/比较/PWM 模块 两个 8 位计时器 一个 16 位计时器 通用同步接收器发送器 (USART)
Microchip(微芯)
MICROCHIP  PIC16LF628-04I/SO  微控制器, 8位, 闪存, PIC16LF6xx, 20 MHz, 3.5 KB, 224 Byte, 18 引脚, SOIC
Microchip(微芯)
基于闪存的8位CMOS微控制器 FLASH-Based 8-Bit CMOS Microcontrollers
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件