參數(shù)資料
型號(hào): MB90P641APFV
元件分類: 微控制器/微處理器
英文描述: 16-BIT, OTPROM, 17 MHz, MICROCONTROLLER, PQFP100
封裝: PLASTIC, LQFP-100
文件頁(yè)數(shù): 21/94頁(yè)
文件大小: 1542K
代理商: MB90P641APFV
28
MB90640A Series
Notes: If read-modify-write instructions (bit set instruction, etc.) are used to access this register, the bit that is the
focus of the instruction is set to the prescribed value, but the contents of the output register corresponding
to any other bits for which the input setting has been made are overwritten with the current input value of
the corresponding pin. Therefore, when switching a pin that was being used for input over to output, first
write the desired value to PDR, and then set the data DDR as output direction.
Reading and writing an I/O port differs from reading and writing memory as follows:
Input mode
Reads: The read data is the level of the corresponding pin.
Writes: The write data is stored in the output latch. The data is not output to the pin.
Output mode
Reads: The read data is the value stored in the PDR.
Writes: The write data is both stored in the output latch and output to the pin.
Take attention that the operation of R/W in port 6 is different from that of in other port.
Port 6 (P67 to P60) is an general-purpose I/O port with an open-drain output. When port 6 is used as a general-
purpose port, always be sure to set the corresponding bits in DDR6 to “0”.
When port 6 is used as an input port, it is necessary set the output port data register value to “1” in order to turn
off the open-drain output transistor; it is also necessary to connect a pull-up resistor to the external pins.
In addition, depending on the instruction used to read these bits, one of the following two different operations is
performed:
When read by a read-modify-write instruction:
The contents of the output port data register are read. Even if pins are forcibly set to “0” externally, the contents
of the bits not specified by the instruction do not change.
When read by any other instruction:
The pin level can be read.
When used as output ports, the pin values can be changed by writing the desired value to the corresponding
output port data register.
In addition, the pin which corresponds to the bit of which port 6 direction register is set to “1” can be read “0”.
Port direction registers
DDx7
DDx6
DDx5
DDx4
DDx3
DDx2
DDx1
DDx0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
R/W
Initial value
: 000011H
: 000013H
: 000015H
: 000017H
: 000019H
: 000010H
: 000012H
: 000014H
: 000018H
: 00001AH
00000000B
Address :
DDx7
DDx6
DDx5
DDx4
DDx3
DDx2
DDx1
DDx0
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
Initial value
00000000B
R/W : Readable and writable
Address : DDR1
DDR3
DDR5
DDR7
DDR9
DDR0
DDR2
DDR4
DDR8
DDRA
Port direction register
相關(guān)PDF資料
PDF描述
MB90641APF 16-BIT, MROM, 17 MHz, MICROCONTROLLER, PQFP100
MB90P641APF 16-BIT, OTPROM, 17 MHz, MICROCONTROLLER, PQFP100
MB90V595GCR 16-BIT, 16 MHz, MICROCONTROLLER, CPGA256
MB90V595CR 16-BIT, 16 MHz, MICROCONTROLLER, CPGA256
MB91151APMC-G RISC MICROCONTROLLER, PQFP144
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MB90V340A-102CR 制造商:FUJITSU 功能描述:
MB-910 制造商:Circuit Test 功能描述:BREADBOARD WIRING KIT - 350 PCS
MB9100100 制造商:COM/DUO 功能描述:FAN 4-6WKS
MB9100-100 制造商:COM/DUO 功能描述:FAN 4-6WKS
MB91101 制造商:Panasonic Industrial Company 功能描述:IC