English
Language : 

PD17012_15 Datasheet, PDF (129/320 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17012, 17P012
Therefore, do not create a cyclic program that satisfies the following condition.
tSET × 225
= n (n: natural number)
X
tSET: BTM0CY flag setting time
X: Cycle X step of instruction that reads BTM0CY flag
An example of a program that satisfies the above condition is shown below. Do not create such a
program.
Example
Processing A
SET
LOOP:
; <1>
SKT1
BR
AAA:
BTM0CK1, BTM0CK0
BTM0CY
BBB
; Embedded macro
; Sets BTM0CY flag setting pulse to 1 ms
; Embedded macro
221 steps
BR
BBB:
LOOP
221 steps
BR LOOP
Because the BTM0CY flag reading instruction in <1> is repeatedly executed every 225 instructions in
this example, CE reset is not effected if the BTM0CY flag happens to be set at the timing of the instruction
in <1>.
Data Sheet U10101EJ4V0DS
127