Electronic Components Datasheet Search
  English  ▼

X  

UPD17015 Datasheet(PDF) 47 Page - NEC

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

UPD17015 Datasheet(HTML) 47 Page - NEC

Back Button UPD17015 Datasheet HTML 43Page - NEC UPD17015 Datasheet HTML 44Page - NEC UPD17015 Datasheet HTML 45Page - NEC UPD17015 Datasheet HTML 46Page - NEC UPD17015 Datasheet HTML 47Page - NEC UPD17015 Datasheet HTML 48Page - NEC UPD17015 Datasheet HTML 49Page - NEC UPD17015 Datasheet HTML 50Page - NEC UPD17015 Datasheet HTML 51Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 47 / 120 page
background image
47
µPD17015
10.2.6
Cautions for Using Basic Timer 0
(1) Correcting the basic timer 0 at a CE reset
The following paragraphs describe an example of correcting the timer at a CE reset.
As explained in the example, it is necessary to correct the timer at a CE reset, if the BTM0CY flag is used both
to detect a power failure and to control the clock timer.
The BTM0CY flag is cleared (0) when the supply voltage is first applied (at power-on reset). It is not set until
its contents have been read by an instruction listed in Table 10-1.
When the CE pin goes from a low level to a high level, a CE reset occurs in synchronization with the rising edge
of the BTM0CY flag set pulse, setting the BTM0CY flag to “1” and making it active.
Detecting the state of the BTM0CY flag at a system reset (power-on or CE reset) can therefore check for a power
failure. If the flag is “0”, it means that a power-on reset has occurred. If it is “1”, it means that a CE reset has
occurred (power failure detection).
In this case, a clock timer must keep operating even at a CE reset.
However, reading the BTM0CY flag for power failure detection clears the flag to 0 and makes it impossible to
detect the set (1) state of the flag for one cycle.
To solve this problem, it is necessary to update the clock timer if an attempt to detect a power failure detects
a CE reset. See Section 15.5 for power failure detection.
Example
Correcting the timer at a CE reset (when the BTM0CY flag is used for both power failure detection
and timer update)
START :
; Program address 0000H
Process A
; 1
SKT1
BTM0CY
; Built-in macro
; Checks the BTM0CY flag and branches to INITIAL
BR
INITIAL
; if the flag is “0” (power failure detected).
BACKUP :
; 2
Timer update by 125 ms
; Timer correction because of backup (CE reset)
LOOP:
; 3
Process B
; While performing process B,
SKF1
BTM0CY
; tests the BTM0CY flag and updates the timer.
BR
BACKUP
BR
LOOP
INITIAL :
Process C
BR
LOOP
Fig. 10-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