參數(shù)資料
型號: MTA85412-04I/SS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDSO20
封裝: 0.209 INCH, PLASTIC, SSOP-20
文件頁數(shù): 8/72頁
文件大?。?/td> 760K
代理商: MTA85412-04I/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
相關(guān)PDF資料
PDF描述
MU9C8248 SPECIALTY MICROPROCESSOR CIRCUIT, PQFP100
MUAA8K80M-20B388C SPECIALTY MICROPROCESSOR CIRCUIT, PBGA388
MV1626 12 pF, 20 V, SILICON, VARIABLE CAPACITANCE DIODE, DO-204AA
NKFH2TAH 10 CONTACT(S), FEMALE, MULTIWAY RACK AND PANEL CONN, CRIMP
NKFH2TH 10 CONTACT(S), FEMALE, MULTIWAY RACK AND PANEL CONN, CRIMP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MTA8808 制造商:Pulse Electronics Corporation 功能描述:
MTA8ATF1G64AZ-2G3B1 功能描述:Memory Module DDR4 SDRAM 8GB 2400MT/s 288-UDIMM 制造商:micron technology inc. 系列:- 零件狀態(tài):在售 存儲器類型:DDR4 SDRAM 存儲容量:8GB 速度:2400MT/s 封裝/外殼:288-UDIMM 標(biāo)準(zhǔn)包裝:1
MTA8ATF1G64HZ-2G3B1 功能描述:Memory Module DDR4 SDRAM 8GB 2400MT/s 260-SODIMM 制造商:micron technology inc. 系列:- 零件狀態(tài):在售 存儲器類型:DDR4 SDRAM 存儲容量:8GB 速度:2400MT/s 封裝/外殼:260-SODIMM 標(biāo)準(zhǔn)包裝:1
MTA8D50 制造商:Mallory Sonalert Products Inc 功能描述:Molded Tubular Aluminum Electrolytic Axial Leads Capacitor - 8uF 50dcV -10+100%
MTA90A 制造商:LIUJING 制造商全稱:LIUJING 功能描述:可控硅(晶閘管)