參數(shù)資料
型號: UPD17147
廠商: NEC Corp.
英文描述: SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 小,通用4位單晶片微控制器
文件頁數(shù): 33/102頁
文件大?。?/td> 408K
代理商: UPD17147
33
μ
PD17145(A1), 17147(A1), 17149(A1)
11.4 Port 0D (P0D
0
/SCK, P0D
1
/SO, P0D
2
/SI, P0D
3
/TM1OUT)
Port 0D is a 4-bit I/O port with an output latch. It is mapped at address 73H of BANK0 of the data memory.
The output format is N-ch open-drain output.
This port can be set in the input or output mode in 1-bit units. The input or output mode is specified by
P0DBIO0-P0DBIO3 (address 2BH) on the register file.
When P0DBIOn = 0 (n = 0 to 3), the corresponding port pin, P0Dn, is set in the input mode. When an instruction
that reads the data of the port register is executed at this time, the pin status is read. When P0DBIOn = 1, the
P0Dn pin is set in the output mode, and the contents written to the output latch are output to the pin. When
an instruction that reads the port status is executed with a port pin set in the output mode, the contents of the
output latch, instead of the pin status, are read.
A pull-up resistor can be connected on-chip to this port through software. Whether the pull-up resistor is
connected or not is specified bitwise by using P0DBPU0-P0DBPU3 (address 0DH) on the register file. When
P0DBPUn = 1, the P0Dn pin is pulled up. When P0DBPUn = 0, the pull-up resistor is not connected.
At reset, P0DBIOn is cleared to “0”, setting all the P0D pins in the input mode. The contents of the output
latch are also cleared to “0” at this time. Note that the contents of the output latch are not changed even if the
status of P0DBIOn is changed from “1” to “0”.
Port 0D is also used as serial interface input/output and timer 1 output pins. Whether the P0D
0
to P0D
2
pins
are used as port pins or serial interface I/O pins (SCK, SO, and SI) is specified by SIOEN (bit 0 of 0BH) on the
register file. Whether the P0D
3
pin is used as a port pin or timer 1 output (TM1OUT) pin is specified by TM1OSEL
(bit 3 of 0BH) on the register file. If TM1OSEL = 1, “1” is output when timer 1 is reset, and the output is inverted
each time the count value of timer 1 coincides with the contents of the modulo register.
Table 11-4. Contents of Register File and Pin Function
(n = 0 to 3)
Value of Register File
Pin Function
TM1OSEL
SIOEN
P0DBIOn
RF: 0BH
RF: 0BH
RF: 2BH
P0D
0
/SCK
P0D
1
/SO
P0D
2
/SI
P0D
3
/TM1OUT
Bit 3
Bit 0
Bit n
0
Input port
1
Output port
0
Input port
1
Output port
0
Input port
1
Output port
0
1
SCK
SO
SI
SCK
SO
SI
TM1OUT
0
0
1
0
1
1
相關(guān)PDF資料
PDF描述
UPD17149GT SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149CTA1 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147CT SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147CTA1 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPD17147CT 制造商:NEC 制造商全稱:NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147CTA1 制造商:NEC 制造商全稱:NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GT 制造商:NEC 制造商全稱:NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GTA1 制造商:NEC 制造商全稱:NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149 制造商:NEC 制造商全稱:NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS