EasyManua.ls Logo

Thinget XC Series - (Fend) and (End)

Thinget XC Series
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 instructionFENDEND 32 bits instruction-
Suitable Models
XC1XC3XC5
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

Table of Contents

Related product manuals