Home
User`s manual for my GDISP3 design, a smart daughter card for the
Contents
1. DECIMAL DESCRIPTION INDEX 000 USER 0 001 USER 1 002 USER 2 003 USER 3 004 USER 4 005 USER 5 006 USER 6 007 USER 7 008 USER 8 009 USER 9 010 USER 10 011 USER 11 012 USER 12 013 USER 13 014 USER 14 015 USER 15 016 017 DEER 018 DOG 019 FEMALE 020 MALE 021 FISH 022 OSTRICH 023 SMILEY 024 ANCHOR 025 BOAT RAMP 026 BOUY 027 SHIPWRECK 028 CARDCLUBS 029 CARDDIAMONDS 030 CARDHEARTS 031 CARDSPADES 032 SPACE 033 EXCLAMATION 034 DOUBLEQUOTE 035 POUND 036 DOLLAR 037 PERCENT 038 AMPERSAND 039 TIC 040 OPENPARENTHESES 041 CLOSEPARENTHESES 042 ASTERISK 043 PLUS 044 COMMA 045 MINUS 046 PERIOD 047 SLASH 048 0 049 1 050 2 OPP 444 4 4444 4 4 4460 0 0 51 IMAL ND EX 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 101 Jg ESCR PTION OLON MICOLON n n d UALS HAN EAT ERTHAN EST ON Q0 Pd Ed UU 2S DS iO Q x0 4 H G AIO b pl
2. modev 00 00 alue 0 0 gd gp td tp 0000 2 2 2 2 yl 2 y2 Select mode 0 2T G or mode gd graphics display on gp graphics display page sel td text display on tp text display page select g graphics edit page selected t text edit page selected Switch edit and display pages Clear text page and home the pointer Wipe graphics page Line draw from to x2 y2 Fat triple wide line draw from to 2 2 Dashed line of dash dash length from xl yl to x2 y2 2 y2 xn yninvalid Unbroken chain of lines command send Y gt 127 row c count mode dotva Scy sel o sel o sel 8 sel x ol 1 lue paq inv x y paq inv x y databytes y src dest pelsw count row c 2 ide pelstall TEXT olumn xlcol x2col to stop the chain Set text pointer to row col 0 0 is upper left Put count text characters to the text page Box of opposite corners xl yl and x2 y2 Modes O blackline 1 whiteline 2 blackarea 3 whitearea 4 invertarea Initialize command resets the display to defaults Home the text pointer to row 0 column 0 Set dot x y to dotvalue Alarm sounds for 1 4 second Place graphics cursor to x y saving affected dots Restore the dots from the K cursor Graphics symbol sel to x y with opaque and inverse
3. Doo DRE COE YN OH mao tom 36 DECIMAL DESCRIPTION INDEX 102 t 103 g 104 h 105 3 106 j 107 k 108 l 109 m 110 n 11 112 113 114 15 S 116 t 17 u 118 V 119 w 120 121 122 7 123 LEFTBRACE 124 VBAR 125 RIGHTBRACE 126 TILDA 127 NO 128 BARN 129 CHURCH 130 COURTHOUSE 131 HOUSE 132 SCHOOL 133 SHELTER 134 BATTERY 1335 CAPACITOR 136 COMPUTER 137 DISKETTE 138 POWER PLUG 139 COFFEE CUP 140 GOBLET 141 GOLDEN ARCHES 142 KNIFE SPOON 143 PICNIC TABLE 144 MICRO 145 OHM 146 PI 147 SIGMA 148 EYEGLASSES 149 HOSPITAL 150 RED CROSS 151 MEDICAL WORMSTK 152 COMPACT DISK 153 MUSICAL NOTE 154 BARBELL 155 BED 156 BOWLING 157 BRIDGE Q IMAL DESCRIPTION CAMERA BANK BLKSMALLCHKRS HTSMALLCHKRS BIGCHKRS HTBIGCHKRS A lt ELOPE DGUN DER ECYCLING HI Dpuo 2 gt gt WINDOW MOUNTAIN PINETREE TENT 1 2 1 4 lt lt lt gt
4. 00001001b NA NOY NU 09h 9 decimal No end of string character is sent as the command parser automatically quits accepting text characters after n text bytes are received If you send extra characters they will be processed as if they were commands Thus do not send more text characters than the count parameter indicates or undesired commands may be interpreted The text command executes in 4 32 milliseconds for a 32 character string A general formula for completion time is 125 count x 131 microseconds Box Command Format B mode xl yl x2 y2 This six byte command allows you to draw a rectangle or rectangular area into the currently selected for edit graphics page Specify any two opposite corners 1 1 and x2 y2 The corners do not have to be sorted any way The smart card handles the sorting of the corners mode selector byte specifies the kind of box to be drawn Mode type oF Black lines The outline of box drawn in black The outline of box is drawn in white Filled area The entire box area is set to black 04h Invert area The entire box area is inverted black to white and white to black As an example starting with a blank graphics screen the following boxes are added in order decimal values are shown for the byte sized parameters
5. t us BUSY Interface Timings tse 0 ns Data setup before rising edge of STROBE a a a eer us Time for controller to acknowledge a tem 0 ta hold after ACK rising 5 to execute command command dependent The normal process of sending a byte of data is Ensure that the BUSY line is at a low state not Busy Apply a data byte to bus Drop the STROBE line Raise the STROBE line Wait until the line has returned to a high state Tristate the data bus optional usual time that you have to wait for the line to return high after issuing a STROBE rising edge is two microseconds You may also use just the BUSY line as a command and data throttling signal without using the line That process is presented her 1 Ensure that the BUSY line is low not busy 2 Apply the data byte to bus 3 Drop then raise the STROBE line 4 Wait at least three microseconds for the control card to grab the data 5 Tristate the data bus optional The standard PC printer port supports the BUSY ACK protocol and the BUSY only protocol Electrical Specifications Power supply voltage Vu 0 2 0 8 Volts Input low level 0 23 KHz 1 tone frequency See Not
6. 1 000101006 00001011b 11111010b 01101111b 14h OBh FAh 6Fh 20 dec 11 dec 250 dec 111 dec That 5 byte command will draw a line from 20 11 to 250 111 To estimate a line draw time use the benchmark of 157 microseconds for each dot in the long dimension Thus the line 0 0 to 255 127 takes 256 dots x 157 microseconds 40 3 milliseconds to complete Graphic Dots Page Layout Field of 756 dots wide x 128 dots tall Value mon A ee 21 254 255 X Value 13 Fat Line Command Format yl 2 y2 This performs the same basic function as the L line command except that the line drawn is 3 pixels fat and the drawing time is almost three times as long as the single line E No error checking is performed on the Y endpoints You should not send a Y value greater than 127 The graphics screen is 256 dots wide in the X dimension so any value is permitted for X The Y axis is limited to coordinate values from 0 to 127 Essentially this command draws three lines side by side offset in the Y axis if the major length is along X and offset in the X axis if the major length is along Y any of the outer lines has dots that fall off the screen those dots will not be drawn If you draw a fat line along an edge of the screen it will only be two dots wide since the outermost line is offscreen and is not drawn Since this routine draws lot
7. UD 000 1001 0 NN HG Hz rj p Ed d Du IMAL 295 SQUARE SQUARE 5 5 ESCRIPTI ON HOLOW BI SOLID 1 POINT STAR X PO FOOTBALL PUTTER A B HAMMER WRENCH IRPLANI LH CYCLE BUS CAR POL CRAN E FLAT ROCKET E CAR RETRUCK ED TRUCK P TRUCK BOAT Q D X DaQaWHRH A SAILBOAT TOW TRUCK NT STAR 38 Controller Card Component Layout GND GND 1188191817 161511131210 21 0 PRapresza U3 IT e 416 C1 U4 ts R9 722522 RH PULLUPS R9 MOUNTS ET ON BOTTOM O RTSIFTETDICTSTA SISE TS O J2 GDISP3 Schematic GDISP3 HYUNDAI HG25564NG 61 2564128 GRAPHICS LCD PANEL SMART CARD LCD CONNECTOR J2 1 FG 2 VSS 3 upp 4 UD 5 RST 6 RD 7 R Pid 8 CS pis 8051 16 R9 MOUNTS ON Pi THE BOTTOM OF RST P38 RXD gt P31 TxD 32 1 09 33 lt gt Di 234 To 02 2555 D 03 236 58 04 05 6 06 HD 3 4 5 6 5 8 9 A B C CFEMALE FOR EXTERNAL CONTRAST CONTROL USE 18 SERIES WITH 18K RESISTOR 39 Voltage Inverter Component Layout NEGBST NEGATIVE VOLTAGE BOOSTER 50 23U Voltage Inverter Schematic INDUCTOR
8. Black outline box from 10 10 to 60 40 TES 25 RBS 55 he black area inside the white lined box a 4 pixel boundary 4 pixels still blackened 150 45 200 85 Invert a portion of the figure plus some of the background screen The resulting display of the above sequence of commands is shown below 18 The lines and fills used for box opaquely overwrite any graphics data already on the screen and white already on the screen invert fill operation simply inverts the black None of the box operations affect any text characters that might be displayed on a text page Symbols that are instantiated on the graphics display can be overwritten since they lie in the graphics memory area when instantiated The box invert function is useful for flashing any rectangular section of the graphics screen Simply invert the box wait a short time and repeat the inversion wait cycle to flash the area in normal inverse modes Completion times for the box command vary according to the type of box attributes and the edge boundaries along the X axis Here are som xamples of completion times Type of Box lack Out White Out Black Filled White Cleared Inverted Inverted Inverted I Initialize Command Format E ean K E e i a S i 1
9. play in mode 0 Initialize command resets the LC nitializes the text It is roughly eq X x Y Box size Completion Time milliseconds 756 x 128 256 x 128 o i 256 x 128 16 x 16 tialize command ule itself or to quickly return t power up defaults and the initialize con D hardware display parameters lso sends a power on reset to the display itself ows software to correct any kind of fatal startup error in the displ Operational Mode 0 Graphics page 0 enabled for display and editing Text page 0 enabled for display and editing selected 2T G he displ and graphics selection parameters homes the text racter pointer and clears all graphic and text pages and puts the 1 1 uivalent to a power reset The This ay lay to the power up condition nmand defaults are identical and 19 Text row and column pointers are reset to 0 upper left Both text pages and the graphic page is cleared out The stored sprite Kursor is invalidated All user defined graphic symbols are cleared out The graphic virtual text block is set to 6 wide x 8 tall 14111101 graphic virtual text cursor is set to row 0 column 0 The initialize command is a good command to use if a control program changes operating modes and screens alltogether The initialize command does not override an
10. restore command to remove cursor from display If exiting from pointer cursor routine goto END Put the new pointer position in oldx oldy Goto CYCLE Exit routine This algorithm will only erase and update the cursor on the screen when its position actually changes This creates a smoother display with fewer draw cycles to the display Another way of generating a restorable cursor is by using the YANK and XOR commands This technique is described in those sections The restore cursor command completes in 1 7 milliseconds G Graphics Symbol Instantiate Command Format sel opaque inverse This command places the graphic symbol selected by the byte sel to the location x y on the current edit graphic screen with opaqueness and inversion options There are 240 predefined symbols and 16 user defined symbols The predefined symbols are accessed using a sel value of from 16 to 255 decimal 10h to FFh and the user symbols are accessed using a sel value of from 0 to 15 decimal 00h to OFh Each predefined symbol and each user defined symbol is eight pixels wide and eight pixels tall The opaque flag in the command determines if whitespace in the symbol overwrites already drawn black dots on the screen If the opaque flag is set to any nonzero value 01h through FFh then the whitespace overlays existing graphic screen data If the opaque flag is set
11. 0 Opaque Invert Mods Valus 0 positive data transparently 1 negative data transparently 2 positive data opaquely 3 negative data opaquely 30 In positive mode INVERT 0 1 bit in the data stream will turn black dot on In negative mode INVERT 1 1 bit is a white or transparent dot In opaque mode OPAQUE 1 both black and white video dots overwrite the existing data on the graphics screen In Transparent mode OPAQUE 0 existing dots on the screen will show through the white areas of the new video data e is the leftmost byte column and ranges from 0 to 31 e X2 is the rightmost byte column and ranges from 0 to 31 and must be greater than or equal to Xl e Yl is the lowest line number from 0 to 127 where data will be placed e Y2 is the highest line number where byte data will be placed and must be greater than or equal to Y1 All X and Y position data is inclusive meaning that the start and ending ranges will receive data Data is the bit block data bytes to be placed on the graphics screen The number of data bytes required for the command is 32 x 2 1 1 x X2 X1 1 The ones are added because of end inclusiveness Only whole bytes are placed on byte aligned dot sets of the screen No partial bytes are allowed Therefore the bitmap must be a multiple of 8 dots wide
12. allowed to be displayed Text Turned On when 1 the text page selected by bit 0 is shown on the display Text Page Selector This selects which text page 0 or 1 is allowed to be displayed Note that in mode 1 2G the text control fields are ignored since there is no text window mode 0 2T G the Graphics Page Selector bit is ignored and is forced to 0 since there is only graphics page 0 in mode 0 Examples Mode 0 2T G Behavior Mode 1 2G Behavior 00001010b Display graphics page 0 and Display graphics page 0 text page 0 110b Display graphics page 0 and Display graphics page 1 text page 0 the second 1 there are no text pages in is ignored in mode 0 mode 1 ay graphics page 0 and Display graphics page 0 page 1 there are no text pages in mode 1 00000101b Displays neither graphics nor Displays neither graphics text pages page 2212140 1 Display text 1 and I ay graphics page graphics page 0 no graphics pages in mode 1 page 1 in mode 0 Displays graphics page 0 I ay graphics page mode 0 only has one graphics page 10005 Display just graphics page 0 Display just graphics page 0 You can use this command to FLASH the display graphics and or text on and off by first displaying the data then turning the displayed page off then repeating at your own desired rate The display select command executes
13. being displayed YST Switch that page 1 is displayed TO is selected for editing Example 2 2 000000015 Select mode 1 display edit GO E 000000105 Edit Gl graphic drawing commands go into page Gl while GO is being displayed S Switch so that page Gl is displayed and GO is selected for editing The switch command executes in 172 microseconds C Clear and Home The Text Page Command Format C Send the single byte command ASC C capital C and the text page currently selected for editing not necessarily the displayed one is cleared to all spaces This command also resets the text row and column pointers to 0 0 the top row leftmost column If the edit selected text page is ALSO selected for display you will see the clear take place immediately You may clear the NON displayed text page if it s set up for editing The clear text command executes in 8 1 milliseconds W Wipe Clean The Graphics Page Command Format W Send the single byte command ASC W capital W and the graphics page currently selected for editing not necessarily the displayed one is cleared to whitespace This command does not clear out any actively stored K cursor saved command The non edit selected graphics page is not cleared If the currently selected for edit graphics page is also selected to be displayed
14. but can be any number of dots tall from 1 to 128 Example Place a 120 dot wide by 60 dot tall pixelmap onto the screen in inverse video transparently at the lower left corner dot position 16 7 x y V 02h 02h 10h 07h 42h 900 bytes data cmd mode 1 x2 yl y2 data 2d 16 7 66 gt calculated INTEGER left dot column 8 or 16 8 2 gt X2 is calculated as 1 INTEGER width 8 1 or 2 120 8 1 16 Yl is the same as the desired bottom most line which is 7 in this example Y2 is calculated as Y1 tall 1 or 7 60 1 66 The left most desired dot position MUST be a multiple of 8 0 8 16 To put a bitmap with a non multiple of eight width in pixels you must first crop or pad it to a whole number of bytes wide A program convbmp exe is included that converts a black and white bitmap into various data f formats Suitable for this command Here is an example bitmap of a piano keyboard as shown on the display 31 The best bitmaps to present should be high contrast in nature due to the black and white nature of the presentation This command s completion time depends on the size of the block transferred and whether opaque or transparent mode is selected The above full screen picture transfer times are shown here Transfer Time in Milliseconds Opaque transfer times may be approximate
15. gt gt APPROX DEGREES DIVIDE BY O MATELY TA ENTICAL TEGRAL SQUAREROOT IMES CHECKMARK ARROW EAST ARROW NE ARROW NORTH ARROW NE ARROW WEST ARROW SW ARROW SOUTH ARROW SE TRIANGLE EAST TRIANGLE NE TRIANGLE NORTH TRIANGLE NE TRIANGLE WEST NGLE SW ANGLE SOUTH NGE SE UP DOWN LEFT RIGHT RIGHT TURN LEFT TURN gg ggg EMETARY HRIST ANCROSS 37 1 z Jg Jg LI D 1 Jg gt 1 OY O1 4 ND PES O Hj Ed E E Ed Bd Dd Dd Ed Dd Dd Ed Ed O UO U DECIMAL DESCRIPTION INDEX 214 MENORA 215 TOWNCENTER 216 TOLL 217 FUEL 218 NTERSTATE 219 PARKING 220 RR CROSSING 221 ROUTESYMBOL 222 STOPLIGHT 223 STOPSIGN 224 TELEPHONE 225 TELEPHONE POLE 226 TIRE 221 TP TURNPIKE 228 XT EXIT 229 CIRCLE X 230 QUESTION BOX 231 CIRCLE HOLOW SML 232 CIRCLE SOLID SML 233 CIRCLE SOLID BIG 234 SQUARE HOLOW SML Ha z Jg H O wW mj rm of Gn o onm onn
16. Place a graphics cursor on the currently edit selected graphics page while saving the graphics dots for later restore Restore the graphics cursor pixels turned on by the Kursor command Double sized symbol instantiation to the graphics page Yank graphic symbol allows yanking an 8x8 symbol off graphics screen to a user symbol XOR two symbols together into a user symbol set the horizontal and vertical graphic text spacing Plot text and symbol strings to the graphics layer Position t t pointer to a row and column Ellipse command Note The following letters are not used by the controller for commands J fghijklmnopqrstuvwxyz Command Descriptions Some of the controller commands are single ASC characters and some include additional data bytes that supply values and data needed by the command Each space separated element in the command format represents one byte either an ASC character or 8 bit byte The times for execution are based on using a 24 MHz crystal for the processor and include the time spent sending the commands to the controller over the parallel bus Z Mode Selection Command Format Z mode There are two modes of operation The command is first activated by sending the ASC character Z 5Ah Then send
17. The built in text layer characters are fixed at eight pixels horizontal spacing and eight pixels vertical spacing and might be difficult to read with three white pixel spaces between them horizontally This virtual text feature allows you to easily plot character strings and symbols at a user defined spacing on the graphics layer The t command is followed by a single byte character count from 0 to 255 decimal count of zero is interpreted as a count of 256 characters The characters are plotted transparently allowing existing black dots to show through white spaces in the symbols The existing graphic symbols and the sixteen user definable symbols are what get plotted Following the character count byte you must send charcount number of bytes each representing a character or symbol to be plotted They are plotted from left to right across the screen with automatic line wrapping according to the block width and block height you set in the z size command The number of characters across is determined by the setting of the pixel Spacing width set in the z size command The number of rows of characters from top to bottom is determined by the setting of the pixel spacing height set in the z command While plotting characters if the virtual cursor shifts beyond the current row it wraps back to the left column and down a line If that new line is below the bottom of the
18. either a zero byte 00h for mode 0 or any nonzero byte for mode 1 Mode 0 supports two selectable text screens TO and Tl and one graphics Screen 60 The selected text screen is transparently ORed with the graphics screen dots on the display but are in physically separate portions of memory In mode 0 you can independently select which of the two text Screens to edit and which of the two text screens to display The graphics Screen 60 is automatically selected for editing and display You may turn the selected text screen and or the graphics 0 screen on or off at will independently of each other Mode 0 is useful if you don t change graphics Screens too much and need to independently incorporate text into the display without having to redraw the graphics screen Mode 1 supports two graphics screens GO and Gl and no text screens You may select which graphics screen is displayed or none of them and you may select which graphics screen is selected for editing You may edit either the displayed or the nondisplayed screen Mode 1 is useful if you are frequently redrawing the graphics data and want to be able to draw the new Screens while hidden and present the finished screen to the user only when its composition is complete thus eliminating the on screen drawing distraction When you select mode 0 the following things occur 1 Both text screen layers are cleared to all spaces 2 T
19. errant text command or long video block transfer If you fail to send the specified number of bytes following a text or video block command the text command will continue to receive up to 256 characters before accepting any more commands and the video block might require up to 4096 bytes of video If you want to force an initialize command regardless of what previous commands are being executed the safest way is to send 4096 bytes of value 128 80h then send the initialization command This will purge any possible text or video command of all characters expected or terminate any incomplete line chain command or terminate any other command requiring parameters Execution of this command takes 197 milliseconds H Home Command Format H This command resets the text pointer to the top row and the leftmost column This command is equivalent to 00 00h This command does not clear any text from the screen The home command completes in 50 microseconds O SetDot Command Format dotvalue x y The setdot command is started by first sending the character capital O Oh This command sets the dot located at graphics location x y on or off based on the value of dotvalue If dotvalue is zero then the dot will be turned off whitespace If the dotvalue is nonzero then the dot will be turned on black dots The valid range for Y is from 0 to 127 No error checking is performed on the Y v
20. in 275 microseconds 10 Edit Pages Selection Command Format En This command allows you to select which graphics page and which text page are allowed to be edited This is a two byte command The first byte is the ASCII character E The second byte selects which pages are editable Graphics Text Edit Edit Selector Selector 0 in a selector bit directs editing into page 0 of the graphic or text page A 1 in a selector bit directs editing into page 1 of the graphic or text page Editing consists of any operation that changes the pag composition like adding characters clearing inverting etc Examples Command Command Description 000000005 edit of graphics page 0 text page 0 GI 000000015 1 edit of graphics page 0 and text page 1 E 000000105 e edit of graphics page 1 and text page O0 Wy 1b 1 1 Ed Ed 000000 e edit of graphics page 1 and text page When an edit selection is made that is not supported by a particular mode such as selecting a text page to edit when in graphics only mode the selection bit is ignored The Edit select command executes in 100 microseconds S Switch The Active Pages Command Format S This command simplifies the editing and display control of two screens of data If you are dynamically
21. symbol is limited to an 8x8 bit area 8 bytes worth There are 16 user definable symbols selected by the value sel from 0 to 15 decimal 00h to OFh The symbols from 16 to 255 decimal 10h to FFh are predefined in system ROM and cannot be changed but can be copied into a user symbol To define a symbol supply the M command the symbol number from 0 to 15 and then 8 bytes of data The first byte should be the top row of bits The left most side should be supplied in the most significant bit of each of the 8 bytes bit value of 1 will turn on the black dot As an example let s build symbol of house with a chimney into user symbol selection 0 25 X X X X X X X X The command to define th xample symbol is 00h 19h 25h 43h FFh 81h 81h 81h FFh When defined and instantiated on a blank screen at location X 10 Y 10 the above definition appears as shown below Remember that the lower leftmost dot of the screen is at 0 0 not Toca 1 lt 10 At power on reset after an initialize command all the user defined symbols are set to all off dots If you supply a selector higher than 15 OFh the entire command will be ignored and all the data will be read and discarded The center of the symbol is the same as that in the graphics symbol instantiation command namely the 4th row up and the 4t
22. the restore command description below The dots of the cursor are placed on the screen using logical OR ing of the dots Thus the cursor will not be seen if it is placed onto heavily drawn areas of the screen If the cursor is instantiated off Screen no dots will be drawn and the restore Kursor will be invalidated If the cursor is instantiated near the edge of the screen only those dots that fall inside the screen boundaries are drawn and saved for the restore command The Kursor command completes in 1 7 milliseconds R Restore The Kursor Area Command Format R Since the K cursor command saves the eight cursor dots original settings and the location where the cursor is placed no arguments are required for the restore command If a valid K cursor is stored then the restore command removes the cursor from the screen and restores th ight original dots to their appearance before the K cursor was added The normal use of the K and R commands is to provide a quickly moved and nondestructive cursor pointer on a graphics screen Typically the following Sequence of programming is used to implement a pointer cursor 21 Get pointer location x y from user mouse joystick etc Save x y in oldx oldy Use K cursor command to place cursor at oldx oldy Wait until pointer location changes or an exit from the pointer cursor routine is invoked Use
23. video options Double sized graphics symbol sel to x y with opaque and inverse video options Make graphics symbol 5 1 8 data bytes Yank into user symbol sel from the graphics screen centered at x y XOR symbol number src into user symbol number dest Set the graphic text spacing to pelswide horizontally and pelstall vertically Put count graphic symbols to the graphics page at the graphics virtual row and column pointer Set graphics virtual text pointer to row col 0 0 is upper left ylline y2line data Video bit block transfer inv c X Cy ry Draw ellipse optionally in inverse video centered at cx cy with X and Y radii xradius and yradius 34 SYMBOL SET FROM FILE GPS TXT Graphics Symbol Set for GDISP3 Control Card For example the symbol 8Ch is a goblet LOG Apo p HE cec 2 4010 amp ng dolp se RL AN OMe E pm RID 0 720 N as VSO x oe TOs oam y S32 0 2 vun O De oT es Fel Uo 555 eli XX Le GA r ociur 2 aL He TRH 55 opto eo c OO O Gg a amp ac c 91 G2 03 04 95 06 08 99 CA GB GC CD GE GF Graphics Symbol Listing HEX N AO
24. GRAPHIC DISPLAY VERSION 3 1 a k a GDISP31 A Comprehensive Functional Specification of an intelligent controller for a Hyundai HG25504NG 01 256x128 LCD Graphics Display Module Duane Becker September 27 2005 Table Of Contents IJESCRIPTION 3 BMBEDDED BEA TURES EEE EEEE E E EA E E E E EA E E E m E 3 HARDWARE INTERFACE DESCRIPTION ccccccccsssseeecccectccessssecccceeecausseeeccceeesauunseeececeseauanseccccesessuuessecceesusauansseccceesssauaeeeeeceeseeeeneees 3 o ee iret eee ORE tes A 4 Timing Diagram of a Typical Byte Transfer morenen a O a 4 Interface ETT RH 5 Electrical Specifications osa mas ttt taut etti eats 5 MEMORY MAP OF THE HYUNDAI DISPLAY CARD seee ra EA E a E ENAA Eea E EE EES E EEKE E E ATEO TEER 5 COMMAND SUMMARY dier er ERE OP etica og itm ERE 8 COMMAND DESCRIPTIONS ect t eue suu EM 9 e e O a a a 9 Die Display Selection dde dele eed lait roe d gae de Ren dea elt e E Re ORE ERR 10 E Edit PagesSelectioni i DIE GEB 11 S Swi ch Tlie Active 11 C Clearand Home The Text Page tente lit n E 12 W Wipe Clean The Graphics Page das fd dada d fed P d d d P dedo 12 iD Cn M ER BR DEM Ce e ce 12 JUN EHE ERE oS EEE E 14 Ba ITATN DITE T UA 14 U U
25. IS 58 TURNS OF THIN RED ENAMELLED WIRE ON SMALL TOROID OUTPUT IS 22 VOLTS INTO A 5 OHM LOAD 66 VOLTS OPEN CIRCUIT WHEN LOADED THE OUTPUT VOLTAGE WILL FALL BELOW THE 58 SPEC ON C3 Li CAN BE ANY VALUE gt 166 UH 2004 by Duane K Becker Snowleopard Labs The architecture design software firmware and features of the GDI card remain the sole property of Duane K Becker SP3 40
26. UMMARY CARD 34 GRAPHICS SYMBOL SET FOR GDISP3 CONTROL 12 00 0000000000000000000 000 35 GRAPHICS SYMBOL 36 CONTROLLER CARD COMPONENT _ 39 CIDISP3 SCHEMATIC OR Dto ee ER E Gute aa ENS t sce ees 39 VOLTAGE INVERTER COMPONENT LAYOUT 40 VOLTAGE INVERTER SCHEMATIC 40 Description This manual describes the functional a Hyundai HG25504NG 01 display panel control card for AllElectronics hig config tools to speed development of a project A parallel operation of the GDI The front end card and firmware of Simplifies the interface and use of the display panel accepts byte reads byte writes and configuration commands h level commands This front end card handles all ure and control the panel and provide high level SP3 front end available from the control card The panel natively but supports no the work needed to drawing and text interface port with 5 and BUSY signals allows the card to be controlled with printer port or any parallel inter The display module itself is bl about 15 Volts on its LCD backplane voltage pin display is pretty slow abou
27. alue If you try to turn on a dot at a Y ordinate higher than 127 something else on the screen might be affected As for all graphics commands the valid range for X is 0 to 255 fully representing the one byte X parameter The setdot command completes in 346 microseconds A Alarn Command Format A The alarm tone and duration are fixed by hardware and do not use controller cycles making for a quick completing command The controller is ready for new commands even while the alarm is still sounding The duration of the alarm is fixed at 1 4 second and cannot be extended by repeating the alarm command until the alarm has silenced 20 Completion of the alarm command takes 45 microseconds The alarm will continue to sound after this time for the full 1 4 second K Kursor Command Format K x y Yes we know cursor is spelled with a C but C was already taken for Clear This command puts a graphics cursor at x y on the selected for editing graphics page and saves the eight original dots where the cursor sits for use by the restore command The cursor is a small 5 pixel by 5 pixel X with the middle point x y location missing The old value of the eight dots surrounding the x y location and the actual location of the cursor are saved for use by the restore command to return those dots to their original state when the cursor area is restored Detailed usage of the cursor is described in
28. automatically reset to row 0 column 0 If you are changing the spacing of the characters to be plotted you should also ensure you ve set the cursor position to the desired point This is because switching to a smaller or larger pitch resets the cursor location on the screen As described in the z size command the number of rows and columns are affected by the width and height spacing of the characters If you supply a value for textrow or textcol that falls off the screen according to the current size settings then the off screen parameter is forced to its maximum allowable location horizontally or vertically on the screen The actual positions of the row and column are defined as a function of the selected pelswide and pelstall parameters in the z size command The X position of the center of the symbol to be plotted is defined by 3 textcol X pelswide The Y position of the center of the symbol to be plotted is defined by 123 textrow X pelstall V Video Block Transfer Command Format V mode xl x2 yl 2 data This allows you to move blocks of byte aligned bitmap data into the graphic display memory quickly mode allows four different ways of putting the data into memory Bit 0 of the mode byte is the invert video flag Bit 1 of the mode byte is the opaque video flag 0 50 j 0 0
29. changing the screen you can display one set of pages while you edit the other set of pages When you are done creating the second set of pages you can SWITCH and the selected pages for display will be flipped and the selected pages for editing will also be flipped This is the easiest way to swap between creating and displaying two pages and allows display of a stable picture while you edit and create a second picture Of course you can edit and display the same pages if you desire to watch the creation of the data dynamically This command takes no arguments Just send the character S capital S in ASCII In mode 0 2T G the switch command only toggles which text screen is displayed and edited mode 1 2G the switch command only toggles which graphics Screen is displayed and which one is selected for editing NOTE Switching from one text page to the other does not alter the character pointer row and column for next text You may desire to use one of the cursor altering commands to reset the text pointer before sending characters to the switched into text page The H home P position and C clear text commands all are likely candidates 11 Example 1 commands are in sequence 2 000000006 Select mode 0 display and edit GO and TO E 000000015 edit GO and T1 text and drawing commands go into pages GO and Tl while GO and TO are
30. d pages in each mode can be edited or displayed independently That is you can edit one while the display shows the other or you can edit the one you re actually looking at You can even edit a page and display neither pag For example in mode 0 you have graphics page 0 and text pages 0 and 1 Graphics page 0 the only graphics page in mode 0 is always available f for editing but may be selectively displayed or hidden The two text pages are independently edit selectable and displayable You may select either or neither text page to display and you may select which text page is active for editing whether displayed or not The text pages are 32 characters across and 16 characters tall Each character sits inside an 8X8 pixel box The graphics pages are 256 pixels wide by 128 pixels tall The text characters are logically ORed with the graphics drawings so that graphics shows through the whitespaces of the text characters Erasing text characters does not alter the graphics data since they held in separate areas of the display memory In mode 0 you are limited to editing only graphics page 0 but may enable or disable its display You have fr selection about which text page to This allows you to edit and which text page or neither to display if you so desire formulate a new text page while displaying the other In mode 1 you have two indepen
31. d though the equation 135 microseconds x height of picture lines x width of picture column 8 The byte block order is always sent in the order leftmost data to rightmost data row by row from the bottom to the top as described in the figure below The picture in the bottom left corner was created by the command shown in hexadecimal 56 02 00 01 00 OA 7 19 FF 01 80 01 40 03 20 05 10 09 08 11 04 21 02 41 01 81 FF FF V ROS XT X2 Yl Y2 Ue em 19 The mini picture in the lower left corner is 16 dots wide 2 bytes wide and lI dots The leftmost byte column X1 is 00 from 0 to 31 left to 32 right and the rightmost column X2 is 01 The bottom most destination row is 00 from 0 at the bottom to 127 7Fh at the top and the topmost destination row is OAh 10 decimal Ten since all four edges are inclusive in the range 11 rows ranging from 0 to 10 Then 22 data bytes follow going from left to right row by row from the bottom up For more information about the use of the program convbmp exe to package black and white images into data suitable for the Video Block transfer command run the convbmp exe program without specifying any filename Here is another example of a bitmap that is not a photograph but is perfectly suited for display Snowleopard Labs GDISP3 Ol e Ellipse Command For
32. dent graphic windows and full control of which or neither is displayed and which one is selected for editing This independent control allows you to compose a new graphic screen while the other one is being displayed if so desired In this document page refers to the text or graphics page of data This is not necessarily the same page that is being displayed since you can edit a graphic or text page of data that may or may not be currently displayed This allows building new pages of data while the old page is still being displayed which can be used to provide snap updates to the display while hiding the display building process Command Character Command Description Mode Selection to select 2T G or 2G operating modes Display selection which pages are displayed Edit selection which graphic and text pages are editable Switch the pages being displayed and those being edited Clear the text page selected for edit and home the character pointer Wipe clean the graphics page selected for editing Draw a line from one coordinate to another Y Draw a Fat line from one coordinate to another Draw a dashed line wi table dash 1 Unbroken chain of lines on screen Position the text pointer to a row and column Send text charac to the text page selected for editing Draw an opposite corner specified rectangular box with various attributes Initialize th ntire display to rese
33. destinationsymbol This function is used to combine any source symbol from the available 256 graphics symbols with and into a destination user symbol using the XOR function Applications include copying a fixed symbol into a user symbol combining two symbols together or creating an XOR symbol based cursor There are a couple methods to copy any of the 256 graphic symbols into a user symbol One way is to instantiate the desired source symbol onto a graphic screen then use the symbol Yank command To copy a source symbol using the XOR feature first use XOR command to XOR a user symbol into itself This will clear the user symbol Then you can use the XOR symbol to XOR a sourcesymbol into your now cleared destination user symbol To combine two symbols together using XOR use the above method to get the first desired symbol into one of the sixteen user symbols Then use the XOR command to exclusive OR another symbol into the destination user symbol If you want to create a symbol based cursor using XOR first you capture the 8 8 graphic screen target area using YANK Then you XOR your desired pointer symbol into your yanked symbol Then you instantiate your modified user symbol onto the graphics area where you originally yanked the screen data from When you want to restore your screen and remove the cursor you XOR the selected pointer symbol back into your user symbol thereby returning it to the orig
34. e 2 Signal rise and fall times When the alarm is sounding the maximum specification applies When the alarm is the minimum specification applies There is no minimum or maximum for alarm frequency The value indicated is the value Memory Map Of The Hyundai Display Card The display module has 8192 8K bytes of memory on board The smart controller card allocates this memory in two ways depending on the operational mode that is selected This diagram describes how the 8K of memory on the display module is allocated by the GDISP3 control card s firmware Normally the user does not need to know about the internal memory allocation of the display since the control card provides the high level command interface to the user Addresses Mode 0 2T G Mode 1 2G Hexadecimal Text 0 x1 Text 1 Graphics 1 not used Graphics 0 Graphics 0 You may use the Mode command to select Mode 0 or Mode 1 and the Display and Edit commands to set other parameters allowing you to edit and display different pages Mode 0 supports two text pages and one graphics page Mode 1 supports two graphics pages and no text page You can however instantiate symbols and text onto a graphics screen The Graphics 0 page is available in both modes The smart card handles all the byte and bit addressing based upon simple screen position parameters in the commands Each of the two paire
35. e upper left corner There is no support for a carriage return character It is the application s responsibility to use the P position pointer command The display module s internal character generator is used to produce characters 16 display map of text character code to appearance is shown below Note that this symbol map is different than the graphics symbol map shown later in this document Character Code Bits 3 to 0 lower nibble 01112131415 161718 9 BEBE a e pk a ei Es eea e eaa a ES HELDEFISHITES PES LU ST s I abcadetshmidk immo ar Ero i Lene if boo Past STA STO Peal ea esa FEE EEEE EEEE E HEE C2 u Character Code Bits 7 to 4 upper nibble m mud P0 Fa Bi ui T E You may send a count value of from 0 to 255 The count value of 0 is treated as 256 characters This can be confusing if you are manually sending characters since the unit will stop responding to commands until all 256 characters are received If a program is handling the display you may freely use the 0 count to mean 256 characters The number of character codes sent after the count byte MUST equal the count byte to terminate the command For example to send the word BARBAROUS you must use the command
36. el port connection leased Independent control of which pages are selected for editing ows converting a black and white bitmap to a video to the controller has eight data lines BE line BUSY line and a ACK acknowledge line When pulsed low the 5 terface that new data is available on the data line drops and the BUSY line rises as soon as a low to card has read the bus to the host that 240 predefined graphic symbols ows testing the smart controller s functions from a PC CONVBMP EXE all a The data lines are TROBE he controller is busy processing the last command or data byte The host must first ensure that the BUSY line before strobing the next command or data byte transn nission the The BUSY line is low The BUSY line stays at high level until the data byte or command is completely processed Hardware Pinout Interface Pin Pin Name Pin Type 2 of 91 5 Volt Power Supply BUSY t STROB it QU W p n D KON MoN MoN kol kol 0 ko gjelelelejelejE t ct Mj UJ H t ct ct ct ct ct ct QU H t Bi Ground t Power Return Timing Diagram of a Typical Byte Transfer DATA Data Valid STROBE ke
37. ement and the opaqueness and inversion options and functions with any of the 256 selectable symbols As in the G command the inversion option is exercised prior to the transparency option If you try to instantiate the symbol off screen NOTHING is displayed and the command will immediately complete If you instantiate the symbol such that a portion of the symbol falls off the display only the dots that fall inside the screen are drawn The x y location you specify designates the center of the symbol area In the symbol map below the X specifies th center reference point for the symbol 24 Remember that each double symbol occupies sixteen by sixteen area of dots and takes about four times as long to complete as an equivalent normal sized symbol This command completes at different rates depending on how many dots are drawn or cleared The formula for approximating the completion time is 6000 153 x microseconds N is the number of dots drawn or cleared For example placing any double sized symbol opaquely on the screen takes approximately 6000 153 x 256 45 100 microseconds Here is a screen shot of several symbols and their double sized versions rs F fs Make Graphics Symbol Command Format sel di d2 This command allows you to define a custom symbol in the controller A graphic
38. erent in nature than the paints the text pages of the display duplicated in the symbol map so that you can instantiate characters onto the graphics plane as well as the other graphic symbols user defined symbols fo 18 127 The resulting display appears Hepp As an example Goblet Car Symbol t un Dog Symbol Don t Symbol Dogs later in this document internal and the characters that are contained within the symbol map These are character generator that The classic ASCII starting with a bl owing symbol commands are performed character set is Don t Drink and Drive and any of the 16 lank screen the Another example shows the effects of the inverse and opaque options under ditions different con opaque noninverted on white use transparency are good to use if the symbol around and th 0000002020 1 2 172 1 2 1 2 1 2 1 2 1 2 1 2 sym sym sym sym sym sym sym sym The most vibrant exampl e user needs to follow their motion described here bol bol bol bol bol bol bol bol ont oni oni ont on oni whitespace whitespace blackspace blackspace gridded gridded gridded gridded opaquely opaquely opaquely opaquely space space space space wi with thout inversion les
39. ext page 0 is selected for editing and for display and the text screen is turned on for display although it is set to all blank spaces 3 The text pointer is reset to row 0 and column 0 upper right 4 Graphics page 0 is selected for editing and display and is enabled for display but it is not cleared When you select mode 1 the following things occur n The text screens are disabled 2 Graphics page 1 is cleared to all whitespace 3 Graphics page 0 is selected for editing and display and is enabled for display but is not cleared The Z mode selection command executes in 56 milliseconds D Display Selection Command Format Don This command allows selection of which graphics page and which text page is selected for LCD screen display and whether the selected graphics and or text pages are displayed Either both or none of the selected pages may be displayed The first byte is the ASCII character capital D decimal value 68 hex value 44h The second byte selects the pages and their on off status The display selection parameter byte is composed of four bit fields Graphics Graphics Text Text Turned Page Turned Page Selector On Selector Graphics Turned On when 1 the graphics page selected by bit 2 is shown on the display When 0 the graphics page display is turned off Graphics Page Selector This selects which graphics page 0 or 1 is
40. for stationary and opaque inverted on black inversion wi with thout inversion inversion The ls are going to be The examples use are ones that moving below are opaquely without inversion opaque y with inversion transparent transparent y with ly without inversion inversion 23 1 2 3 4 This command completes in different times depending upon the options selected and the number of white dots in the symbol White blank dots in a symbol are not drawn in transparent mode and shorten the drawing time for mostly white symbols Heavily black symbols or inverted mostly white symbols take longer in transparent mode since all the dots will be drawn on the graphics screen The formula for computing the approximate completion time is 2100 153 x N microseconds N is the number of dots drawn or cleared For example placing the blank character opaquely on the screen takes 2100 153 x 64 11 900 microseconds since 64 dots are forced off Conversely placing the blank character transparently on the screen only takes 2100 microseconds since no dots are turned on OR off Q Double Size Symbol Instantiate Command Format sel opaque inverse y This command is identical to the Graphics Symbol Instantiate command except that the graphic symbol selected is doubled in size supports anywhere on screen plac
41. h row over from the left The symbol definition feature allows defining up to sixteen custom graphics symbols for your particular application This command completes in 346 microseconds Y Yank Graphics Into A User Symbol Command Format symbnum x y his command reads graphic data off the selected for editing screen in an x8 dot format centered on point x y and stuffs the bytes into the user ymbol number symbnum from 0 to 15 X and Y are centered as described in he graphic symbols section above and must be located somewhere on screen If you specify an offscreen location for Y the symbol number you specified is cleared If the center location is on screen but some of the dots in the yanked symbol would be off screen then zeros off dots are assumed and put into those positions of the user symbol The yank command is useful for saving an 8x8 area of screen then using graphics symbol instanciate command to drop copies of that new symbol anywhere you want It is also useful for implementing a symbol based cursor Simply yank the area where you want to 26 OF put the cursor instantiate the graphic symbol of your choice for the cursor and when it s time to restore the graphics screen and remove the cursor reinstantiate your yanked symbol back where it was The yank command completes in about 8 8 milliseconds X XOR Symbols Command Format X sourcesymbol
42. his size command lower case z hexadecimal describing the width and height of the virtual 7A decimal 122 allows character block The characters are dropped onto the graphics screen and a virtual row and column pointer are incremented set by pelswide and pelstall Whe t graphics text command the location of each successive placed using the character is adjusted by pel and when it wraps You may set pelswide to anything f to anything from 0 to 255 pixels virtual with wrap around with a character spacing graphics character string is Swide pixels across in the horizontal direction to a new line t 128 since th screen is only he new line is adjusted down by pelstall rom 0 to 255 pixels You may set pelstall but any value greater than 128 is forced 128 pixels tall This command DOES NOT change the size of the symbols plotted just the each symbol thus plotted The standard horizontal and vertical spacing o ASCII set of characters inside eight p ixel tall by five wide is reproduced in the symbol set and generally fit block Setting pelswide toa value of 06h 6 decimal will plot centers making for one pixel of w characters Note that some of the symbols as shown in the symbol table later in this document anticipating using symbols beyo
43. inal yanked screen data Then reinstantiate your user symbol returning the screen data back to original This method results in a cursor that shows up in black or white areas since the XOR operation always selects a dot color opposite to that on the screen You can only into a user defined symbol from 0 to 15 As such the value for destinationsymbol is internally taken modulus 16 to force it into the correct range The sourcesymbol value can be any symbol from 0 to 255 This means you can combine user symbols as well Note that if you XOR a user symbol into itself it results in clearing the symbol to all blank The XOR symbol command executes in approximately 275 microseconds 2 Graphic Virtual Text Characters Block Size Command Command Format 2 pelswide pelstall The virtual cursor graphic characters feature allows a virtual character pointer for use on the graphics display The real text characters are Spaced out at 8 pixels per character due to the shared setting of the horizontal byte spacing of 8 pixels per graphic byte This can leave large gaps between text characters since there are 32 per line and usually 3 pixels between characters This adjustable virtual text character feature allows putting text and symbol strings on a graphic screen with a built in 27 cursor pointer to simplify putting differently spaced out characters to the graphic screen making them more readable T
44. justed in length for diagonal lines so that the dash length is kept approximately the same regardless of the angle of the line A dashed line always has a full dash at the starting end 1 1 anda partial dash or a single dot at the trailing end x2 y2 For example N 5 10 20 200 120 will draw a dashed line from 10 20 to 200 120 using dashes that are 5 dots long and looks like this This command executes in 26 milliseconds for a line of length 256 dots in the long axis U Unbroken Chain Of Lines Command Format U xl yl x2 y2 x3 xn yninvalid This command draws a chain of line segments each successive point joined to the previous segment Send the U character to start the chain then send the first x y pair Each successive x y pair sent thereafter draws that next line segment and prepares for the next in the chain To end the command send an X Y pair with an invalid Y value Y gt 127 The command U 10 10 200 100 50 43 255 20 0 128 draws this X1 Y X2 Y2 X3 4 Y4 Xn Yinv 15 This command draws the lines at the same rate as normal lines namely about 157 microseconds per dot of the longest dimension P Position Text Pointer Command Format P row col This command positions the text address pointer to row 0 to 15 and column 0 to 31 so the next text command will place text characters at that location on the text page selected for editing The rows ra
45. mat e inv cx cy rx ry This command lower case e will draw or erase an ellipse given th centerpoint cx cy the x axis radius rx the y axis radius ry and an invert flag inv If inv is zero then th llipse is drawn with black dots If inv is nonzero then dots along the ellipse outline ar rased to white In either case the ellipse outline is drawn opaquely overwriting existing graphics data The middle of the ellipse is transparent not affecting anything already on the graphics page The value for CX must be from 0 to 255 decimal must be from 0 to 127 decimal RX must be from 0 to 127 decimal and RY must be from 0 to 63 decimal The entire ellipse must fall inside the screen area Prechecks are performed upon the incoming data and if any of th dges are predicted to fall offscreen none of the ellipse is drawn If both the x and y radius are zero this command will default to just setting or clearing if INV is set the dot at cx cy Setting one of the two radii to zero results in drawing a line on the screen although it is a slow method of drawing a single line If you set the RX and RY radii to the same value a circle is drawn since a Circle is really a special type of ellipse of eccentricity 1 Execution of this command takes approximately 189 microseconds per dot of circumference For circles it works out to RADIUS x 1 2 milliseconds 33
46. nbroken Chain Of Limes ii cic stags aks e DER EE etd Hte ERU ER Rr ee AER OREL 15 P s Position Lext POllfer een ta basta eiie a SR i ROR 16 ERE PSR Ro fe NSRP EE ET 16 Boc ct RRSP oP PR Eo EE rere eee 18 Tes asad oe eG aS IGS a uie let tS ed 19 AA A A SE ge Oe PR 20 OS SCID Ob ia ee IEEE AI ESE REE REESE 20 PERCE ERC EER EEE CEE ESTE TTD UR mp ERE 20 21 Restore The Kursor Area cccccccccccccccsessssecccccccccuusseeccccccccuussseccccsscuusseseccccsssuuuuseeecccssseuusseeeccsssssuuussesccssssueuseseecccssseeeaesess 21 G Graphics Symbol Instantite ii Eee dete eb E e tere qu oe e 22 OQ Dolible Size Symbol mitte 24 M Make Graphics Symbol 2 RR Pd d d a e d d de da ife 25 Y Yank Graphics Into A User Symbol cR Ge 26 X XOR Symbols edu ber geb 27 z Graphic Virtual Text Characters Block Size Commuand 27 t Graphic Virtual Text Characters String 1 amp 29 p Graphic Virtual Text Characters Cursor Position eese esee ener 29 V Video Block Transfer e ERE REIR mu deeem 30 ete 33 COMMAND S
47. nd horizontal size large enough so as not to overlap the plotted symbols unless that is your goal symbols with six pixels between their hite space between the typical ASC the ASC S take more or fewer pixels to display If you are When the size command is executed the virtual pointers are reset to row 0 and column O0 t be sure to set the graphics text row and column Note that characters in row O0 are always plotted centered in the fifth dot row down from the top dot row 0 are plotted centered in the fourth dot umber 3 This is the logical character number 123 Characters in column column from the left dot column n center for the topmost fully displ Spacings of graph one spacing setting first then ch then adjust the graphic text point command lowercase p pointer com ically plotted te using the new spacings ayed symbol If you want to mix the xt strings you must plot one string using ange the block sizes using this command ers using the p graphics position mand then The actual position of the character plotting p graphic pointer command plotting command where whitespac plot the next character string locations are described in the t lowercase t are always The characters plotted using the graphic text plotted in a transparent mode will not overwrite exis
48. nge from 0 at the top to 15 on the bottom and the columns range from 0 on the left to 31 on the right There is no blinking cursor on the text page Use the unsigned byte value for row and col No checking is performed to the values for row and col Invalid values will produce unexpected results An example of using the position command follows P 000010105 000000115 This three byte command places the text OAh 03 pointer row 10 11th row from top the 10d 3d third column fourth character from left Text Page Layout 1 0 5 Field of 817 characters 5 32 columns x 16 rows 3 a 1 Is Column Humber gt 2 42 21 position command completes 108 microseconds T Text Command Format Charl Char2 T Charn The text command accepts and displays n characters following the count byte n to the currently positioned row and column position in the selected for edit text page Send regular ASCII characters If you are in mode 1 with two graphic planes and no text plane the command just purges the expected number of characters after the n count byte and does not alter the display or change the row or column pointers If you are in mode 0 the mode that supports text pages the row and column text pointers auto increment and wrap from the end of a line to the beginning of the next line and from the last character on the last line back to th
49. s more dots it takes longer to draw a fat line so use fat lines judiciously For example the command F 00 172 100 results in the line shown here This command executes in 109 milliseconds for a 256 dot long line or about 426 microseconds per dot for the longest axis length N Dashed Line Command Format dashlong xl yl x2 y2 This performs the same basic function as the L line command except that the line is drawn in dashes and is drawn faster than a regular line since only half as many dots are turned on The portion of the line that is not drawn between the dashes is not cleared off the graphic space other words the line gaps are drawn transparently so other data can show through The value dashlong represents how many dots are used for dashes non dashes and is valid from 1 to 15 In the following situations simple solid line is drawn instead of a dashed line If the value dashlong 0 or dashlong gt 15 b If the longest dimension x or y of the line is less than three dots long C If the longest dimension of the line is less than or equal to the length of the dash specified 14 No error checking is performed the endpoints and they should be from 0 to 127 Since the panel is 256 dots wide any byte value is allowed for the X coordinates The dashes are ad
50. screen then the virtual cursor wraps back to the top of the screen just like the real character cursor The character and symbol strings plotted using this command are not individually clearable like text in the text layer These characters are plotted as dots on the edit active graphics layer If you have plotted these strings on dedicated space on the graphics layer you may use the box clear function to erase the character to white space This command executes in approximately two milliseconds multiplied by the number of characters being sent p Graphic Virtual Text Characters Cursor Position 29 Command Format textrow textcol he p lowercase P command allows setting the virtual graphics character ursor position This position indicates the row and column zero based to hich a graphic text string command t lowercase t will start putting ymbols and characters The top row is textrow 0 and the leftmost column S textcol 0 each graphic symbol in the graphic text command is placed he virtual cursor row and column are incremented from left to right and hen top down simulating the real character layer cursor pointer The graphic virtual cursor pointer movement per character can be adjusted for horizontal and vertical spacing using the z size command When the z size command is issued the current values of textrow and textcol are
51. t 200 milliseconds to any change so rapi changing display data will not show up well moving cursors might be difficult to track implement a cursor trail if desired Embedded Features 256 dots wide 128 dots tall gt Contrast Control gt Single 5 Volt operation gt Standard Parallel Port Interface Two operational modes 2 text pages 1 graphics 11111114144 graphics pages 2G ack dots on white background The response time of the th and requ ires dly This implies that dynamically You can us user symbols to page 2T G or 2 Can select which text page or graphic page is displayed Can enable or disable text and graphics display independently Many built in text copy and drawing tools Built in bitmap transfer command Sixteen user definable graphic symbols 5X5 pixel fast sprite based graphic cursor GDISP3 EXE al Built in audible alarm 1 4 second beep duration transfer command data sequence Hardware Interface Description The paral STROI unidirectional and send data to the display line commands the display in lines The ACK high transition on STROBE occurs When the control it resets the ACK line to a high indicating data has been accepted and the data lines may be re indicates to the host that t data ll
52. ting black dots This allows symbols and characters surrounded by whitespaces to be plotted closer than eight pixels apart without erasing existing black dots The following table describes the number of columns of text for selected pelswide values of the quotient o f 256 pelswide In general the number of columns equals the integer part The column numbers used in the P position command number from zero up to one less than the number of columns for the selected horizontal spacing Columns Of Text 6 42 0 to 41 36 0 to 35 Eu Ce s 28 0 27 26 0 to 25 28 following table describes the number of rows of text for selected pelstall values general the number of rows equals the integer part of the quotient of 128 pelstall The row numbers used in the p position command number from zero up to one less than the number of rows for the selected vertical spacing t Graphic Virtual Text Characters String Plotting Command Format t charcount charcount characters The t lower case t text plotting command is used to plot symbol strings to th dit selected graphics screen This feature allows mixing character strings and graphics on the graphics layer AND supports character spacing of a user definable pixel width and height allotted per standard sized character
53. to zero 00h then the whitespace is NOT drawn onto the screen and existing dots on the display remain intact Since text characters on a text page are in a Separate memory space the opaque setting will not blank out text characters The inverse flag determines if the symbol data is inverted when sent to the screen If you set it to zero the symbol is placed on the Screen in normal mode where set bits in the symbol are black dots If you set inverse to any nonzero byte value the symbol is placed in inverse video on the screen The inverse option is applied to the symbol BEFORE the opaqueness option This means that if you were to apply inverse and transparency to symbol 236 ECh an all black block the inverse would first turn all the black dots to white dots then the transparency would prevent the white dots from overlaying the underlying graphics If you try to instantiate the symbol off screen NOTHING is displayed and the command will immediately complete If you instantiate the symbol such that a portion of the symbol falls off the display only the dots that fall inside the screen are drawn The x y location you specify designates the center of the symbol area the symbol map below the X specifies th center reference point for the symbol 22 The predefined symbols are shown in table symbols completely diff
54. you will s the screen wipe take place immediately You may clear the non displayed graphics page if it s set up for editing This does not clear any text placed using the T text command Since mode 0 has only one graphics page the WIPE command will always target graphics page O0 in mode 0 The wipe command executes in 54 milliseconds L Line Command Format L xl yl x2 y2 12 This draws single pixel wide line from the first X Y coordinate pair to the second X Y coordinate pair The LCD is 256 pixels wide and 128 pixels tall The range of values allowed for Y are from 0 to 127 inclusive You should not send a Y value outside of this range for any graphics command using dot coordinates Since the graphic area is 256 pixels wide and one byte exactly covers the range of 0 to 255 the value of the X parameters can be any byte value To draw a standard thin line in your currently edit selected page send the character L capital L then the two bytes representing the X Y location of one end and two more bytes representing the other X Y endpoint The screen coordinate system is set up to be mathematically correct where the lower left dot is located at X 0 Y 0 and the upper right dot is located at X 255 Y 127 No error checking is performed If you specify a Y value larger than 127 other portions of the display memory might be affected Both endpoints should be in the graphics page field For example
Download Pdf Manuals
Related Search
Related Contents
垂B便受箱は定期的にお手入れをする必要 〝あり ます Control Unit VB 10 VISIX 360 Network Camera User Manual (Firmware V5.0.9_140305). Copyright © All rights reserved.
Failed to retrieve file