Electronic Components Datasheet Search
  English  ▼

X  

D17133CS Datasheet(PDF) 147 Page - NEC

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

D17133CS Datasheet(HTML) 147 Page - NEC

Back Button D17133CS Datasheet HTML 143Page - NEC D17133CS Datasheet HTML 144Page - NEC D17133CS Datasheet HTML 145Page - NEC D17133CS Datasheet HTML 146Page - NEC D17133CS Datasheet HTML 147Page - NEC D17133CS Datasheet HTML 148Page - NEC D17133CS Datasheet HTML 149Page - NEC D17133CS Datasheet HTML 150Page - NEC D17133CS Datasheet HTML 151Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 147 / 289 page
background image
CHAPTER 13
PERIPHERAL HARDWARE
132
13.2.2 Functions of Comparator
The comparator has a 4-channel analog input.
Concerning the pins used as analog input of the comparator, set 1 to P0CnIDI (n=0 to 3) at initial setting of the
program (refer to CHAPTER 12 PORTS).
One of analog inputs (Cin0 to Cin3) can be selected by the comparator input channel selection flag (CMPCH1,
CMPCH0 RF: 1CH, bits 1 and 0). One of the 16 types of reference voltages (external: 1, internal: 15) can be selected
by the comparator reference voltage selection flag (CMPVREF0 to CMPVREF3 RF: 1DH).
After setting the comparator start flag to 1 (CMPSTRT RF: 1EH, bit 1), comparison takes 2 instruction execution
cycles in the
µPD17132 and 17P132, and 6 cycles in the µPD17133 and 17P133.
A comparison result is stored to the comparator comparison result flag (CMPRSLT RF: 1EH, bit 0).
Whether the comparator is operating or comparison is completed can be known by reading comparator start flag.
CMPSTRT=1... Comparator is operating (during analog voltage comparison)
CMPSTRT=0... Comparator is stopped (comparison is completed)
When comparing comparator analog voltage (CMPSTRT=1), manipulating comparator input channel selection flag
(CMPCH1 CMPCH0) or comparator reference voltage selection flag (CMPVREF0 to CMPVREF3) is ignored and the
data in these registers remain unchanged. Therefore, changing comparator operation modes are disabled.
CMPSTRT is cleared only when the voltage comparison operation of comparator is completed or when STOP
instruction is executed.
Caution When using the standby function, be sure to wait for the comparator operation to stop before
executing a standby instruction (HALT/STOP). If a STOP or HALT instruction is executed while
the comparator is in operation, the comparator operation is halted. If the internal reference
voltage has been selected at this time, current will keep flowing into the internal resistor ladder,
thus resulting in increased current consumption during standby mode.
Comparator input channel selection register, reference voltage selection register, and comparator operation
control register are shown in the Figures 13-9, 13-10, and 13-11, respectively.



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