Applied Instructions
A of the
pr es the
FE output
p t on
ex
[FEND] AND [END]
1
n FEND instruction indicates the first end of a main program and the start
ogram area to be used for subroutines. Under normal operating circumstanc
ND instruction performs a similar action to the END instruction, i.e.
rocessing, input processing and watchdog timer refresh are all carried ou
ecution.
6 bits instruction:FEND、END 32 bits instruction:-
Suitable Models:
XC1、XC3、XC5
None
Suitable Device
Function
z If program the tag of CALL instruction behind FEND instruction, there must be SRET
instruction. If the interrupt pointer program behind FEND instruction, there must be SRET
instruction.
z After executing CALL instruction and before executing SRET instruction, if execute FEND
instruction; or execute FEND instruction after executing FOR instruction and before
executing NEXT, then an error will occur.
z In the condition of using many FEND instruction, please compile routine or subroutine
between the last FEND instruction and END instruction.
76