Chapter 5 Detailed Applications
- 89 -
The following explains the content of the C language startup program (crt0mr.a30).
1. Incorporate a section definition file [13 in Figure 5.14]
2. Incorporate an include file for MR308 [14 in Figure 5.14]
3. Incorporate a system ROM area definition file [15 in Figure 5.14]
4. Incorporate a system RAM area definition file [16 in Figure 5.14]
5. This is the initialization program __SYS_INITIAL that is activated immediately after a reset.
[99 - 256 in Figure 5.14]
Setting the System Stack pointer [100 in Figure 5.14]
Setting the processor mode register [102 - 104 in Figure 5.14]
Setting the SB,FB register [105 - 109 in Figure 5.14]
Initial set the C language. [129 - 155 in Figure 5.14] When using no standard input/output func-
tions, remove the lines 191 and 192 in Figure 5.14.
Setting OS interrupt disable level [164 - 166 in Figure 5.14]
Setting the address of interrupt vector table [167 in Figure 5.14]
Set MR308's system clock interrupt [172-177 in Figure 5.14]
Initial set MR308's system timer [182-186 in Figure 5.14]
6. Initial set parameters inherent in the application [191 in Figure 5.14]
7. Initialize the RAM data used by MR308 [198-251 in Figure 5.14]
8. Activate the initial startup task. [254 in Figure 5.14]
9. This is a system clock interrupt handler [295-306 in Figure 5.14]