Electronic Components Datasheet Search
  English  ▼

X  

UPD17P136ACT Datasheet(PDF) 122 Page - NEC

Part # UPD17P136ACT
Description  4-BIT SINGLE-CHIP MICROCONTROLLER
PDF  292 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NEC [NEC]
Direct Link  http://www.nec.com/
Logo NEC - NEC

UPD17P136ACT Datasheet(HTML) 122 Page - NEC

Back Button UPD17P136ACT Datasheet HTML 118Page - NEC UPD17P136ACT Datasheet HTML 119Page - NEC UPD17P136ACT Datasheet HTML 120Page - NEC UPD17P136ACT Datasheet HTML 121Page - NEC UPD17P136ACT Datasheet HTML 122Page - NEC UPD17P136ACT Datasheet HTML 123Page - NEC UPD17P136ACT Datasheet HTML 124Page - NEC UPD17P136ACT Datasheet HTML 125Page - NEC UPD17P136ACT Datasheet HTML 126Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 122 / 292 page
background image
CHAPTER 12 PORTS
103
12.3 PORT 0C (P0C0/ADC0, P0C1/ADC1, P0C2/ADC2, P0C3/ADC3)
Port 0C is a 4-bit input/output port with an output latch. It is mapped into address 72H of BANK0 in data memory.
The output format is CMOS push-pull output.
Input or output can be specified in 1-bit unit. Input/output can be specified by P0CBIO0 to P0CBIO3 (address 1CH)
in the register file.
If P0CBIOn is 0 (n = 0 to 3), the P0Cn pins are used as input port. If a data read instruction is executed for the
port register, the pin statuses are read. If P0CBIOn is 1 (n = 0 to 3), the P0Cn pins are used as output port and the
contents written in the output latch are output to pins. If a read instruction is executed when pins are used as output
ports, the contents of the latch, rather than pin statuses, are fetched.
At reset, P0CBIO0 to P0CBIO3 are 0 and all P0C pins are input ports. The contents of the port output latch are
0.
Port 0C can also be used as an analog input to the A/D converter. P0C0IDI to P0C3IDI (1BH address) in the register
file are used to switch the port and analog input pin.
If P0CnIDI is 0 (n = 0 to 3), the P0Cn/ADCn pin functions as a port. If P0CnIDI is 1 (n = 0 to 3), the P0Cn/ADCn
pin functions as the analog input pin of the A/D converter.
ADCCH0 and ADCCH1 (bits 1 and 0 at address 22H) in the register file are used to select the input pin for A/D
conversion.
To use P0C pins as A/D converter input pins, set P0CBIOn = 0 so that they are set as input ports. (See 13.3
A/D CONVERTER.)
At reset, P0CBIO0 to P0CBIO3, P0C0IDI to P0C3IDI, ADCCH0, and ADCCH1 are set to 0 and the P0C pins are
used as input ports.
Table 12-3. Switching the Port and A/D Converter
Notes 1.
Normal setting when the pins are used as A/D converter analog input pins.
2.
Functions as an output port. At this time, the analog input voltage changes affected by the port output.
When using this pin as an analog input pin, be sure to set P0CBIOn to 0.
(n = 0 to 3)
BANK0 72H
P0CnIDI
RF: 1BH
Pin status
P0C latch contents
P0C latch contents
P0C latch contents
Input port
Port output
A/D converter analog
inputNote1
Output port and A/D
converter analog inputNote2
0
1
0
1
0
1
P0CBIOn
RF: 1CH
Function
Possible
P0C latch
Possible
P0C latch
Possible
P0C latch
Possible
P0C latch
Write
Read



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com