参数资料
型号: MTA85812S-10I/SS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, OTPROM, 10 MHz, RISC MICROCONTROLLER, PDSO20
封装: 0.209 INCH, PLASTIC, SSOP-20
文件页数: 8/72页
文件大小: 760K
代理商: MTA85812S-10I/SS
MTA85XXX
DS40115C-page 16
1995 Microchip Technology Inc.
5.8
I/O Registers (Ports)
The I/O registers can be written and read under
program control like any other register of the register
file.
However,
"read"
instructions
(e.g.,
MOVF
PORTB,W
) always read the I/O pins, regardless if a pin
is defined as "input" or "output." Upon a RESET, all I/O
ports are defined as "input" (= hi impedance mode) as
the I/O control registers (TRISA, TRISB) are all set to
'1's.
The
execution
of
a
"TRIS
f"
instruction
with
corresponding ’0’s in the W register is necessary to
define any of the I/O pins as output.
5.8.1
PORTA f5
4-bit I/O register. Low-order 4-bits only are used (RA3:
RA0). Bits (STATUS <7:4>) are unimplemented and
read as '0's.
5.8.2
PORTB f6
8-bit I/O register. Note that RB7 is tied to SEE VDD on
MTA85XIX devices.
5.8.3
I/O INTERFACING
The equivalent circuit for an I/O port bit is shown in
Figure 5-7. All ports may be used for both input and
output operations. For input operations these ports are
non-latching. Any input must be present until read by
an input instruction (e.g., MOVF PORTB, W). The out-
puts are latched and remain unchanged until the output
latch is rewritten. To use a port pin as output, the
corresponding direction control bit (in TRISA, TRISB)
must be set to '0'. For use
as an input, the
corresponding TRIS bit must be '1'. Any I/O pin can be
programmed individually as an input or output.
FIGURE 5-7:
EQUIVALENT CIRCUIT FOR A SINGLE I/O PIN
FIGURE 5-8:
I/O PORT READ/WRITE TIMING
DQ
CK
Q
VDD
VSS
P
I/O Pin
From
Data
Bus
Write
To Data Bus
From
W-Register
TRIS f
"Read"
Reset
Data
Latch
Q1
N
Q2
DQ
CK
Q
Set
I/O
Control
Latch
Note:
This example shows a write to PORTB
followed by a read from PORTB.
Note that:
data setup time = (0.25 TCY - TPD)
where TCY = instruction cycle.
Therefore, at higher clock frequencies,
a write followed by a read may be problematic.
TPD = propagation delay
PC
PC + 1
PC + 2
PC + 3
Q1 Q2
Q3 Q4
Q1 Q2
Q3 Q4 Q1 Q2 Q3 Q4
Q1
Q2 Q3 Q4
Instruction
fetched
RB7:RB0>
MOVWF PORTB
write to
PORTB
NOP
Port pin
sampled here
NOP
MOVF PORTB,W
Instruction
executed
MOVWF PORTB
NOP
Read PORTB
TPD
Execute
MOVF PORTB,W
Execute
相关PDF资料
PDF描述
MB91661PMC 32-BIT, MROM, 33 MHz, RISC MICROCONTROLLER, PQFP120
MPC8266ACZULHDX 32-BIT, 250 MHz, RISC PROCESSOR, PBGA480
MPC8266ACZUPIBX 32-BIT, 300 MHz, RISC PROCESSOR, PBGA480
MPC8266AZULHDX 32-BIT, 250 MHz, RISC PROCESSOR, PBGA480
MPC8266AZUPIBX 32-BIT, 300 MHz, RISC PROCESSOR, PBGA480
相关代理商/技术参数
参数描述
MTA8808 制造商:Pulse Electronics Corporation 功能描述:
MTA8ATF1G64AZ-2G3B1 功能描述:Memory Module DDR4 SDRAM 8GB 2400MT/s 288-UDIMM 制造商:micron technology inc. 系列:- 零件状态:在售 存储器类型:DDR4 SDRAM 存储容量:8GB 速度:2400MT/s 封装/外壳:288-UDIMM 标准包装:1
MTA8ATF1G64HZ-2G3B1 功能描述:Memory Module DDR4 SDRAM 8GB 2400MT/s 260-SODIMM 制造商:micron technology inc. 系列:- 零件状态:在售 存储器类型:DDR4 SDRAM 存储容量:8GB 速度:2400MT/s 封装/外壳:260-SODIMM 标准包装:1
MTA8D50 制造商:Mallory Sonalert Products Inc 功能描述:Molded Tubular Aluminum Electrolytic Axial Leads Capacitor - 8uF 50dcV -10+100%
MTA90A 制造商:LIUJING 制造商全称:LIUJING 功能描述:可控硅(晶闸管)