Electronic Components Datasheet Search
  English  ▼

X  

UPD17062 Datasheet(PDF) 139 Page - Renesas Technology Corp

Part # UPD17062
Description  MOS INTEGRATED CIRCUIT
PDF  298 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

UPD17062 Datasheet(HTML) 139 Page - Renesas Technology Corp

Back Button UPD17062 Datasheet HTML 135Page - Renesas Technology Corp UPD17062 Datasheet HTML 136Page - Renesas Technology Corp UPD17062 Datasheet HTML 137Page - Renesas Technology Corp UPD17062 Datasheet HTML 138Page - Renesas Technology Corp UPD17062 Datasheet HTML 139Page - Renesas Technology Corp UPD17062 Datasheet HTML 140Page - Renesas Technology Corp UPD17062 Datasheet HTML 141Page - Renesas Technology Corp UPD17062 Datasheet HTML 142Page - Renesas Technology Corp UPD17062 Datasheet HTML 143Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 139 / 298 page
background image
137
µPD17062
12.3.1
Example of Using the Timer Based on the BTM0CY Flag
An example of a program follows.
Example
INITFLG NOT BTM0ZX, NOT BTM0CK2, NOT BTM0CK1, NOT BTM0CK0
; Built-in macro
; Specifies that the timer carry FF be set at intervals of 100 ms.
LOOP1:
MOV M1, #0110B
LOOP2:
SKT1 BTM0CY
; Built-in macro
; Tests the BTM0CY flag. Branches to NEXT if the flag is 0.
BR
NEXT
ADD
M1, #0100B ; Adds 4 to data memory M1.
SKT1 CY
; Built-in macro
; Tests the CY flag.
BR
NEXT
; Branches to NEXT if the flag is 0.
Process A
; Performs process A if the flag is 1.
MOV M1, #0110B
NEXT:
Process B
; Performs process B and branches to LOOP.
BR
LOOP
This program performs process A at intervals of one second.
Note the following point (1) when creating this program.
(1) The time interval at which the BTM0CY flag is checked must be less than the time interval at which the
timer carry FF is set to 1.
This is because if it takes 100 ms or longer to perform process B, it is impossible to detect when the timer
carry FF is set, as shown in Fig. 12-3.
Fig. 12-3
BTM0CY Flag Check and Timer Carry FF
#$%
&(
SKT1
BTM0CY
SKT1
BTM0CY
SKT1
BTM0CY
Timer carry FF set pulse
BTM0CY flag
Process B
Process B'
Because it takes long to perform process B' after it is detected that the
BTM0CY flag is set at
$, it is impossible to detect when the BTM0CY
flag is set at
%.



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