![Epson E0C6001 Technical Manual Download Page 93](http://html.mh-extra.com/html/epson/e0c6001/e0c6001_technical-manual_106884093.webp)
E0C6001 TECHNICAL SOFTWARE
II-12
The above program is a basic initialization program for the
E0C6001. The setting data are all initialized as shown in
Table 2.1.1 by executing this program. When using this
program, add setting items necessary for each specific
application. (Figure 2.2.1 is the flow chart for this program.)
Fig. 2.2.1
Flow chart of the initialization
program
Initialization
Reset
I (Interrupt flag)
D (Decimal adjustment flag)
Clear RAM
Set SP
Reset timer
Enable timer interrupt
Enable input interrupt
Reset registers (X, Y, A, B)
flags (I, Z, D, C)
EI (enable interrupt)
I : Interrupt flag
D : Decimal adjustment flag
Clear data RAM (00H to 04FH)
Clear segment RAM (90H to 0AFH)
Set stack pointer to 40H
Enable K03–K00 input port interrupt
Enable timer interrupt 2 Hz, 8 Hz, 32 Hz
To next process