参数资料
型号: PIC16F526-I/ST
厂商: Microchip Technology
文件页数: 15/122页
文件大小: 0K
描述: IC PIC MCU FLASH 1KX12 14TSSOP
产品培训模块: 8-bit PIC® Microcontroller Portfolio
标准包装: 96
系列: PIC® 16F
核心处理器: PIC
芯体尺寸: 8-位
速度: 20MHz
外围设备: POR,WDT
输入/输出数: 11
程序存储器容量: 1.5KB(1K x 12)
程序存储器类型: 闪存
RAM 容量: 67 x 8
电压 - 电源 (Vcc/Vdd): 2 V ~ 5.5 V
数据转换器: A/D 3x8b
振荡器型: 内部
工作温度: -40°C ~ 85°C
封装/外壳: 14-TSSOP(0.173",4.40mm 宽)
包装: 管件
产品目录页面: 638 (CN2011-ZH PDF)
配用: ICE2000-ND - EMULATOR MPLAB-ICE 2000 POD
2009 Microchip Technology Inc.
DS39689F-page 111
PIC18F2221/2321/4221/4321 FAMILY
11.0 I/O PORTS
Depending on the device selected and features
enabled, there are up to five ports available. Some pins
of the I/O ports are multiplexed with an alternate
function from 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.
Each port has three registers for its operation. These
registers are:
TRIS register (Data Direction register)
PORT register (reads the levels on the pins of the
device)
LAT register (Data Latch register)
The Data Latch (LAT register) is useful for read-modify-
write operations on the value that the I/O pins are
driving.
A simplified model of a generic I/O port, without the
interfaces to other peripherals, is shown in Figure 11-1.
FIGURE 11-1:
GENERIC I/O PORT
OPERATION
11.1
PORTA, TRISA and LATA Registers
PORTA is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register is TRISA. Setting a
TRISA bit (= 1) will make the corresponding PORTA pin
an input (i.e., put the corresponding output driver in a
High-Impedance mode). Clearing a TRISA bit (= 0) will
make the corresponding PORTA pin an output (i.e., put
the contents of the output latch on the selected pin).
Reading the PORTA register reads the status of the
pins, whereas writing to it, will write to the port latch.
The Data Latch (LATA) register is also memory mapped.
Read-modify-write operations on the LATA register read
and write the latched output value for PORTA.
The RA4 pin is multiplexed with the Timer0 module
clock input and one of the comparator outputs to
become the RA4/T0CKI/C1OUT pin. Pins RA6 and
RA7 are multiplexed with the main oscillator pins. They
are enabled as oscillator or I/O pins by the selection of
the main oscillator in the Configuration register (see
they are not used as port pins, RA6 and RA7 and their
associated TRIS and LAT bits are read as ‘0’.
The other PORTA pins are multiplexed with analog
inputs, the analog VREF+ and VREF- inputs and the
comparator voltage reference output. The operation of
pins RA<3:0> and RA5 as A/D converter inputs is
selected by clearing or setting the control bits in the
ADCON1 register (A/D Control Register 1).
Pins RA0 through RA5 may also be used as comparator
inputs or outputs by setting the appropriate bits in the
CMCON register. To use RA<3:0> as digital inputs, it is
also necessary to turn off the comparators.
The RA4/T0CKI/C1OUT pin is a Schmitt Trigger input.
All other PORTA pins have TTL input levels and full
CMOS output drivers.
The TRISA register controls the direction of the PORTA
pins, even when they are being used as analog inputs.
The user must ensure the bits in the TRISA register are
maintained set when using them as analog inputs.
EXAMPLE 11-1:
INITIALIZING PORTA
Data
Bus
WR LAT
WR TRIS
RD PORT
Data Latch
TRIS Latch
RD TRIS
Input
Buffer
I/O pin(1)
Q
D
CK
Q
D
CK
EN
QD
EN
RD LAT
or PORT
Note 1:
I/O pins have diode protection to VDD and VSS.
Note:
On a Power-on Reset, RA5 and RA<3:0>
are configured as analog inputs and read
as ‘0’. RA4 is configured as a digital input.
CLRF
PORTA
; Initialize PORTA by
; clearing output
; data latches
CLRF
LATA
; Alternate method
; to clear output
; data latches
MOVLW
0Fh
; Configure all A/D
MOVWF
ADCON1 ; for digital inputs
MOVWF
07h
; Configure comparators
MOVWF
CMCON
; for digital input
MOVLW
0CFh
; Value used to
; initialize data
; direction
MOVWF
TRISA
; Set RA<7:6,3:0> as inputs
; RA<5:4> as outputs
相关PDF资料
PDF描述
D38999/20WB99SA CONN RCPT 7POS WALL MNT W/SCKT
PIC16F506-I/P IC PIC MCU FLASH 1.5KB 14DIP
VE-B4M-IX-F4 CONVERTER MOD DC/DC 10V 75W
1744128-3 BLADE CONTACT, STR PCB, LONG
1744340-2 BLADE CONTACT, R/A PCB SHORT 45A
相关代理商/技术参数
参数描述
PIC16F526T-I/MG 功能描述:8位微控制器 -MCU 1.5KB 64B 8MHz Internal Oscillator 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
PIC16F526T-I/SL 功能描述:8位微控制器 -MCU 15KB 64B 8MHz 8B ADC Internal Oscillator 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
PIC16F526T-I/SL030 制造商:Microchip Technology Inc 功能描述:
PIC16F526T-I/SL031 制造商:Microchip Technology Inc 功能描述:
PIC16F526T-I/SL033 制造商:Microchip Technology Inc 功能描述: