39
APPENDIX B Running the Sample System
During sample program operation, the tasks are executed alternately depending on the ID1
eventflag as shown in Figure Bc.
Figure Bc Sample Program Operation (1)
■
Sample system workspace file
Two types of sample programs are provided for the 16LX support board.
❍
smp1.wsp
The internal MB90V550 UART and internal 16 bit timer are used. Two methods are
described for the UART (uart.asm). The first uses polling for data communication when
there is a call from the interrupt handler. The second uses interrupts for data
communication for a call from a task. The internal 16 bit timer (timer16.asm) is used for
the interval interrupt for the system clock count.
When a simulator is used, each task is switching to the standby state in order unless
simulation of the UART send enable interrupt has been set.
The sample program is recommended for operation with the emulator.
❍
smp2.wsp
The MB89371AH serial controller on the 16LX support board and MB89254H timer are
used.
MB89371AH (mb89371.asm) communicates using the polling method. The MB89254H
(mb89254.asm) is used as the interval interrupt for the system lock count.
This sample operation is easily checked with the simulator. If the simulator is used for
checking, address C0h can be used for output to the terminal when the I/O port is set up.
a_tsk
b_tsk
Eventflag
cwai
cwai
cwai
set
set
0
1
→
0
0
0
1
→
0
set
1
→
0
: READY state
: RUN state
: WAIT state
cwai : Issues cwai_flg.
set : Issues set_flg.
*
Содержание F2MC-16L Series
Страница 2: ... ...
Страница 4: ... ...
Страница 10: ...vi ...
Страница 12: ...viii ...
Страница 44: ...32 CHAPTER 4 Program Reference for the Standard I O Library ...
Страница 53: ...41 APPENDIX B Running the Sample System Figure Be Project Member List ...
Страница 54: ...42 APPENDIX Figure Bf Set Configuration File Dialog Box ...
Страница 64: ...52 APPENDIX Figure Cb Sample System Memory Map Continued ...
Страница 65: ...53 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 68: ... ...