13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 65LBLLABELFUN 65LBLS : Alphanumeric, 1~6 characters• This instruction is used to make a tag on certain address within a program, to provide a target address forexecution of JUMP, CALL instruction and interrupt service. It also can be used for document purpose toimprove the readability and interpretability of the program.• This instruction serves only as the program address marking to provide the control of procedure flow or forremark. The instruction itself will not perform any actions; whether the program contains this instruction or not,the result of program execution will not be influenced by this instruction.• The label name can be formed by any 1~6 alphanumeric characters and can’t be duplicate in the sameprogram. The following label names are reserved for interrupt function usage. These “reserved words”, can’tbe used for normal program labels.Reserved wordsX0+I~X15+I(INT0~INT15)X0−I~X15−I(INT0−~INT15−)HSC0I~HSC7I1MSI(1MS)、2MSI(2MS),3MSI(3MS),4MSI(4MS),5MSI(5MS),10MSI(10MS),50MSI(50MS),100MSI(100MS)HSTAI(ATMRI)PSO0I~PSO3IDescriptionlabels for external input (X0~X15) interruptservice routine.labels for high speed counter HSC0~HSC7interrupt service routine.Labels for 8 kinds of internal timer interruptservice routine.Label for High speed fixed timer interruptservice routine.Labels for the pulse output commandfinished interrupt service routine.Only the interrupt service routine can use the label names listed on above table, if mistaken on using thereserved label on the normal subroutine can cause the CPU fail or unpredictable operation.The label of following diagram illustration served only as program remarks (it is not treated as a label for callor jump target). For the application of labeling in jump control, please refer to JMP instruction forexplanation. As to the labeling serves as subroutine names, please refer to CALL instruction for details.65LBLPGM1Program 165LBLPGM2Program 27-48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!