English
Language : 

PD72042B_15 Datasheet, PDF (74/92 Pages) Renesas Technology Corp – LSI DEVICE FOR Inter Equipment BusTM (IEBusTM) PROTOCOL CONTROL
µPD72042B
6.4 PROCESSING ROUTINES
This section describes the processing routines called from the main routine.
6.4.1 µPD72042B Initial Setting Routine
This routine is executed when the µPD72042B is first started or upon the detection of a program crash (RAW =
1).
Fig. 6-4 shows the flow of the µPD72042B initial setting routine.
Fig. 6-4 µPD72042B Initial Setting Routine
Start
Reset the µPD72042BNote
UAR1 ← Local station address (four low-order bits)
UAR2 ← Local station address (eight high-order bits)
Condition code
CMR ← 100000 b1 b0
End
; Set local address and condition code.
; Set condition code.
; Set optional functions.
Note There are two methods of performing reset, as follows:
1 Set the RESET pin to low.
2 Set SRST in CTR to 1.
Type 1 reset causes the µPD72042B to enter standby mode, thus requiring the subsequent release of
standby mode.
Caution To enable normal IEBus communication, always perform the above initial setting.
6.4.2 Communication Flag Initialization Routine
This routine initializes the communication flags listed in Table 6-1, as follows:
RAWF ← 0
TRRQW ← 0
RERQW ← 0
SIZEW ← 0
J
←1
PW
←0
PR
←0
MCRQ ← 0
SDRQ ← 0
CORQ ← 0
MTRQF ← 0
MRRQF ← 0
STRQF ← 0
SLREF ← 0
72
Data Sheet S13990EJ3V0DS