參數(shù)資料
型號(hào): 3820
廠商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
中文描述: 單芯片8位CMOS微機(jī)
文件頁(yè)數(shù): 13/66頁(yè)
文件大?。?/td> 1093K
代理商: 3820
13
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
I/O PORTS
Direction Registers (ports P2, P4
1
–P4
7
, and
P5–P7)
The 3820 group has 43 programmable I/O pins arranged in seven
I/O ports (ports P0–P2 and P4–P7). The I/O ports P2, P4
1
–P4
7
,
and P5–P7 have direction registers which determine the input/out-
put direction of each individual pin. Each bit in a direction register
corresponds to one pin, each pin can be set to be input port or
output port.
When “0” is written to the bit corresponding to a pin, that pin be-
comes an input pin. When “1” is written to that bit, that pin be-
comes an output pin.
If data is read from a pin set to output, the value of the port output
latch is read, not the value of the pin itself. Pins set to input are
floating. If a pin set to input is written to, only the port output latch
is written to and the pin remains floating.
Direction Registers (ports P0 and P1)
Ports P0 and P1 have direction registers which determine the in-
put /output direction of each individual port.
Each port in a direction register corresponds to one port, each
port can be set to be input or output.
When “0” is written to the bit 0 of a direction register, that port be-
comes an input port. When “1” is written to that port, that port be-
comes an output port.
Bits 1 to 7 of ports P0 and P1 direction registers are not used.
Ports P3 and P4
0
These ports are only for input.
Pull-up/Pull-down Control
By setting the PULL register A (address 0016
16
) or the PULL reg-
ister B (address 0017
16
), ports except for port P4
0
can control ei-
ther pull-down or pull-up (pins that are shared with the segment
output pins for LCD are pull-down; all other pins are pull-up) with a
program.
However, the contents of PULL register A and PULL register B do
not affect ports programmed as the output ports.
Fig. 4 Structure of PULL register A and PULL register B
PULL register A
(PULLA : address 0016
16
)
0 : Disable
1 : Enable
7
0
Note
: The contents of PULL register A
and PULL register B do not affect
ports programmed as the output ports.
PULL register B
(PULLB : address 0017
16
)
7
0
P0
0
–P0
7
pull-down
P1
0
–P1
7
pull-down
P2
0
–P2
7
pull-up
P3
0
–P3
7
pull-down
P7
0
, P7
1
pull-up
Not used (return "0" when read)
P4
1
–P4
3
pull-up
P4
4
–P4
7
pull-up
P5
0
–P5
3
pull-up
P5
4
–P5
7
pull-up
P6
0
, P6
1
pull-up
Not used (return "0" when read)
相關(guān)PDF資料
PDF描述
383-2UBC 5.0mm Round Type LED Lamps
383-2UBC-C470 5.0mm Round Type LED Lamps
3832 300mA LDO Linear Regulators with Internal Microprocessor Reset Circuit
3842B HIGH-PERFORMANCE CURRENT-MODE PWM CONTROLLERS
3842GM GREEN MODE PWM CONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
3820 AS 制造商:Ck Tools 功能描述:Bulk
3820_03 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
382000 功能描述:測(cè)試引線 VOLTAGE TEST LEADS W/ALLIGATOR CLIPS RoHS:否 制造商:Pomona Electronics 設(shè)備類型:Patch Cords 連接器類型:Banana plug (stackable) on both ends 長(zhǎng)度:60 in 顏色:Black
38200-0000-00-1 制造商:Kontron 功能描述:ETXEXPRESS EVAL TYPE 3 BOARD W/ GIGE - Boxed Product (Development Kits)
382-0004 功能描述:螺絲刀、螺母起子和套筒扳手 KNURLED NUT DRIVER TOOL 4mm RoHS:否 制造商:Wiha 產(chǎn)品: 類型:Wiha Magic Ring Ball End Hex Keys 大小: