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 84TDSPPATTERN CONVERSION FOR 16/7-SEGMENT DISPLAYFUN 84TDSPMd : Mode selectionS : Starting address of begin converted charactersNs : Start of characterNl : Length of characterD : Starting address to store the converted patternS operand can be combined with V, Z, P0~P9 indexregisters for indirect addressingRangeHR OR ROR DR K XRR0 R3904 R5000 D0V、Z∣ ∣ ∣ ∣ 16/32 bitOperandR3839 R3967 R8071 D4095P0~P9Md 0~1S ○ ○ ○ ○ ○ ○Ns ○ ○ ○ ○ ○Nl ○ ○ ○ ○ ○D ○ ○ ○* ○● This instruction is used for FBs-7SG1/FBs-7SG2 module’s application. It can convert the sourcealphanumeric characters into display patterns suited for 16 segment encoded mode display or perform theleading zero substitution of the packed BCD number for non-decoded mode 7 segment display.● When execution control “EN” = 1, and input “OFF” = 0, input “ON” = 0, if Md = 0, this instruction willperform the display pattern conversion, where S is the starting address storing the begin convertedcharacters, Ns is the pointer to locate the starting address character, Nl tells the length of begin convertedcharacters, and D is the starting address to store the converted result.Byte 0 of S is the “1st” displaying character, byte 1 of S is the 2nd displaying character,…….Ns is the pointer to tell where the start character is.Nl is the character quantity for conversion.After execution, each 8-bit character of the source will be converted into the corresponding 16-bit displaypattern.● When input “OFF” = 1, all bits of display pattern will be ‘off’ if Md = 0. if Md=1, all BCD codes will besubstituted by blank code(0F)● When input “ON”= 1,all bits of display pattern will be ‘on’ if Md = 0. if Md = 1, all BCD codes will besubstituted by code 8(all light).● Please refer Chapter 16 “FBs-7SG display module” for more detail description.16-Segment display patterns shown as below :7-67

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

Saved successfully!

Ooh no, something went wrong!