Fujitsu F2MC-16L User Manual page 51

Hide thumbs Also See for F2MC-16L:
Table of Contents

Advertisement

During sample program operation, the tasks are executed alternately depending on the ID1
eventflag as shown in Figure Bc.
a_tsk
b_tsk
Eventflag
I 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.
cwai
set
1→0
0
: READY state
: RUN state
: WAIT state
Figure Bc Sample Program Operation (1)
*
APPENDIX B Running the Sample System
cwai
cwai
set
1→0
0
cwai : Issues cwai_flg.
set : Issues set_flg.
set
0
1→0
39

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16xlF2mc-16F2mc-16hF2mc-16f

Table of Contents