Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UPD17P136ACT Datasheet(PDF) 134 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) 134 Page - NEC

Back Button UPD17P136ACT Datasheet HTML 130Page - NEC UPD17P136ACT Datasheet HTML 131Page - NEC UPD17P136ACT Datasheet HTML 132Page - NEC UPD17P136ACT Datasheet HTML 133Page - NEC UPD17P136ACT Datasheet HTML 134Page - NEC UPD17P136ACT Datasheet HTML 135Page - NEC UPD17P136ACT Datasheet HTML 136Page - NEC UPD17P136ACT Datasheet HTML 137Page - NEC UPD17P136ACT Datasheet HTML 138Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 134 / 292 page
background image
CHAPTER 13 PERIPHERAL HARDWARE
115
13.1.2 Operation of 8-Bit Timers/Counters
(1) Count register
The count register of timers 0 and 1 is an 8-bit up counter whose initial value is 00H, and is incremented each
time a count pulse has been input.
The count register is initialized to 00H in the following cases.
(1) When this product is reset (refer to CHAPTER 17 RESET).
(2) When the contents of the 8-bit modulo register and the value of the count register coincide, and the
comparator generates a coincidence signal.
(3) In the case of timer 0, when “1” is written to TM0RES of the register file.
In the case of timer 1, when “1” is written to TM1RES of the register file.
(2) Modulo register
The modulo register of timers 0 and 1 determines the count value of the count register and its initial value is
set to FFH.
A value is set to the modulo register by using the PUT instruction via DBF (data buffer).
(3) Comparator
The comparator of timers 0 and 1 outputs a coincidence signal when the value of the count register and the
value of the modulo register coincide. If the value of the modulo register is the initial value FFH, for example,
the comparator outputs the coincidence signal when the count register counts 256.
The coincidence signal output from the comparator clears the contents of the count register to 0, and
automatically sets interrupt request flags (IRQTM0 and IRQTM1) to “1”. If the EI instruction (that enables
accepting interrupts) is executed, and if the interrupt enable flags (IPTM0 and IPTM1) are set at this time,
interrupts are accepted. When an interrupt has been accepted, the interrupt request flag (IRQTM0 or IRQTM1)
is cleared to “0”, and program execution branches to a specified interrupt routine.
13.1.3 Selecting Count Pulse
The count pulse for timer 0 is selected by TM0CK0 and TM0CK1.
As the count pulse, a pulse resulting from dividing the system clock (fX) by 256, 64, or 16, or an external count pulse
input from the INT pin can be selected.
At reset, fX/256 is selected as a count pulse because TM0CK0 = 0 and TM0CK1 = 0.
The count pulse for timer 1 is selected by TM1CK0 and TM1CK1.
As the count pulse, a pulse resulting from dividing fX by 1024, 512, or 256, or the count up signal from timer 0 can
be selected.
Timer 1 is also used to generate oscillation stabilization time on power application or at reset. Therefore, the initial
values are TM1CK0 = 0 and TM1CK1 = 0, and fX/512 is selected as the count pulse.
Because TM1EN = 1 as the initial condition, the
µPD17134A subseries starts program execution from address
0000H after it has been reset at fX = 8 MHz and after about 16.4 ms (about 65.5 ms at 2 MHz) (refer to CHAPTER
17 RESET).



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