參數(shù)資料
型號(hào): UPD17147CT
廠(chǎng)商: NEC Corp.
英文描述: SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 小,通用4位單晶片微控制器
文件頁(yè)數(shù): 32/102頁(yè)
文件大?。?/td> 408K
代理商: UPD17147CT
32
μ
PD17145(A1), 17147(A1), 17149(A1)
11.3 Port 0C (P0C
0
/ADC
0
, P0C
1
/ADC
1
, P0C
2
/ADC
2
, P0C
3
/ADC
3
)
Port 0C is a 4-bit I/O port with an output latch. It is mapped at address 72H of BANK0 of the data memory.
The output format is CMOS push-pull output.
This port can be set in the input or output mode in 1-bit units. The input or output mode is specified by
P0CBIO0-P0CBIO3 (address 1CH) on the register file.
When P0CBIOn = 0 (n = 0 to 3), the corresponding port pin, P0Cn, 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 P0CBIOn = 1 (n
= 0 to 3), the P0Cn 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.
At reset, P0CBIO0-P0CBIO3 are cleared to “0”, setting all the P0C pins in the input mode. The contents of
the output latch are also cleared to “0” at this time.
Port 0C is also used to input analog voltages to the A/D converter. Whether each pin of the port is used as
a port pin or analog input pin is specified by P0C0IDI-P0C3IDI (address 1BH) on the register file.
When P0CnIDI = 0 (n = 0-3), the P0C
n
/ADC
n
pin functions as a port pin. When P0CnIDI = 1 (n = 0 to 3), the
P0C
n
/ADC
n
pin functions as an analog input pin of the A/D converter. If any of the P0CnIDI (n = 0 to 3) bits
is set to “1”, the P0F
1
/V
REF
pin is used as the V
REF
pin.
When a pin of port 0C is used as an analog input pin of the A/D converter, set the P0CnIDI corresponding
to the pin to which an analog voltage is applied to 1, to disable the port input function. Moreover, clear P0CBIOn
(n = 0-3) to 0 to set the input port mode. The pin used as an analog input pin is selected by ADCCH0 and ADCCH1
(bits 1 and 0 of address 22H) on the register file.
At reset, P0CBIO0-P0CBIO3, P0C0IDI-P0C3IDI, ADCCH0, and ADCCH1 are cleared to 0, setting the input
port mode.
Table 11-3. Selecting Port or A/D Converter Mode
(n = 0 to 3)
P0CnIDI
P0CBIOn
BANK0 72H
Function
RF:1BH
RF:1CH
Write
Read
0
Input port
Enabled. P0C latch
Pin status
1
Port output
Enabled. P0C latch
Contents of P0C latch
0
Analog input of A/D
Note 1
Enabled. P0C latch
Contents of P0C latch
1
Output port and analog
1
Enabled. P0C latch
Contents of P0C latch
input of A/D
Note 2
Notes 1.
Normal setting when the P0C pins are used as the analog input pins of the A/D converter.
The P0C pins function as output port pins. At this time, the analog input voltages change with
the output from the port. To use the pins as analog input pins, be sure to clear P0CBIOn to
0.
2.
0
相關(guān)PDF資料
PDF描述
UPD17147CTA1 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149CT SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GT SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GTA1 SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPD17147CTA1 制造商:NEC 制造商全稱(chēng):NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GT 制造商:NEC 制造商全稱(chēng):NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17147GTA1 制造商:NEC 制造商全稱(chēng):NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149 制造商:NEC 制造商全稱(chēng):NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS
UPD17149CT 制造商:NEC 制造商全稱(chēng):NEC 功能描述:SMALL, GENERAL-PURPOSE 4-BIT SINGLE-CHIP MICROCONTROLLERS