Electronic Components Datasheet Search
  English  ▼

X  

UPD17062 Datasheet(PDF) 145 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) 145 Page - Renesas Technology Corp

Back Button UPD17062 Datasheet HTML 141Page - Renesas Technology Corp UPD17062 Datasheet HTML 142Page - Renesas Technology Corp UPD17062 Datasheet HTML 143Page - Renesas Technology Corp UPD17062 Datasheet HTML 144Page - Renesas Technology Corp UPD17062 Datasheet HTML 145Page - Renesas Technology Corp UPD17062 Datasheet HTML 146Page - Renesas Technology Corp UPD17062 Datasheet HTML 147Page - Renesas Technology Corp UPD17062 Datasheet HTML 148Page - Renesas Technology Corp UPD17062 Datasheet HTML 149Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 145 / 298 page
background image
143
µPD17062
12.4.2
Correcting the Timer Carry FF at a CE reset
This section describes an example of correcting the timer at a CE reset.
If the timer carry FF is used both to check for power failure and as a timer, it is necessary to correct the
timer at a CE reset, as explained in the following example.
The timer carry FF is reset to 0 at a power-on reset, and it is kept from being set until the BTM0CY flag is
read-accessed using a PEEK instruction.
When the CE pin goes from a low to a high, a CE reset occurs in synchronization with the positive-going
edge of the timer carry FF set pulse. At this point, the BTM0CY flag is set to 1 and becomes active.
Therefore, checking the state of the BTM0CY flag at a system reset (power-on reset or CE reset) can
discriminate between a power-on reset and CE reset; if the flag is 0, it indicates a power-on reset, and if 1,
it indicates a CE reset (power failure check).
A timer for ordinary time measurement must continue to operate even at a CE-reset.
Reading the BTM0CY flag for a power failure check could reset the BTM0CY flag to 0, thus losing a chance
of detecting a set (1) state of the flag.
To skirt the above problem, it is necessary to update the timer for time measurement at a CE reset that occurs
because of power failure.
See also Section 14.6 for details about a power failure check.
Example
Correcting the timer at a CE reset
When using the timer carry FF for a power failure check and clock update
START:
; Program address 0000H
Process A
;
#
SKT1
BTM0CY
; Built-in macro
; Tests the BTM0CY flag.
BR
INITIAL
; Branches to INITIAL if 0 (power failure check)
BACKUP:
;
$
Update the clock by 100 ms ; Correct the clock because of a backup (CE reset).
LOOP:
;
%
Process B
; While performing process B,
SKF1
BTM0CY
; tests the BTM0CY flag and updates the clock.
BR
BACKUP
BR
LOOP
INITIAL:
INITFLG NOT BTM0ZX, NOT BTM0CK2, NOT BTM0CK1, NOT BTM0CK0
; Built-in macro
; Because a power failure (power-on reset) is detected, the timer
; carry FF setting time interval is set to 100 ms, and passes
; control to process C.
Process C
BR
LOOP
Fig. 12-6 shows the timing chart for the above program.



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