4D Systems Picaso MD1 User Manual

Manual is about: Tiny VGA Graphics Controller QVGA, VGA, SVGA

Summary of Picaso MD1

  • Page 1

    Users manual µ v g a picaso md1 tiny vga graphics controller qvga, vga, svga revision 1.2 4d systems.

  • Page 2

    Www.4dsystems.Com.Au µ v g a -picaso- md1 2 proprietory information the information contained in this document is the property of 4d systems pty. Ltd ., and may be the subject of patents pending or granted, and must not be copied or disclosed with out prior written permission. It should not be used ...

  • Page 3: Table of Contents

    Www.4dsystems.Com.Au µ v g a -picaso- md1 3 table of contents 1. Introduction 4 2. Features 5 3. Pin description 6 4. Reference designs 7 5. Personality module micro code (pmmc) 9 6. Graphics command set (serial) 10 6.1 general command set 11 7. Serial interface (ttl level) 39 8. Using the µvga-pica...

  • Page 4: 1  Introduction

    Www.4dsystems.Com.Au µ v g a -picaso- md1 4 1 introduction the µ v g a -picaso- md1 is a compact & cost effective ready to go 'drop in' embedded graphics engine that will deliver ‘stand-alone’ functionality to your project. The ‘simple to use’ embedded commands not only control background colour but...

  • Page 5: 2  Features

    Www.4dsystems.Com.Au µ v g a -picaso- md1 5 2 features the µ v g a -picaso- md1 module is aimed at being integrated into a variety of different applications using a wealth of features designed to facilitate the designer to quickly and cost effectively complete a product and thus reduce ‘time to mark...

  • Page 6: 3  Pin Description

    Www.4dsystems.Com.Au µ v g a -picaso- md1 6 3 pin description pin function description 7, 21 vcc regulated 3.3 volts supply input @90ma average, max. 150ma 8, 15, 20 gnd ground 28 reset module hardware reset. Active low signal > 20us will reset the module 14 i/o1 general purpose input/output 1 1 i/o...

  • Page 7: 4  Reference Designs

    Www.4dsystems.Com.Au µ v g a -picaso- md1 7 4 reference designs the following reference design show how easily the µ v g a -picaso- md1 module can be integrated into a wide range of applications with very simple circuitry. Please check the following link for updated information as it becomes availab...

  • Page 8

    Www.4dsystems.Com.Au µ v g a -picaso- md1 8.

  • Page 9

    Www.4dsystems.Com.Au µ v g a -picaso- md1 9 5 personality module micro code (pmmc) one of the important features of the µvga-picaso module is the ability to upload its onboard picaso processor with a micro-code firmware which allows the module to take on a new personality. This is referred to as per...

  • Page 10

    Www.4dsystems.Com.Au µ v g a -picaso- md1 10 6 graphics command set (serial) the heart of the µ v g a -picaso- md1 module is its rich graphics oriented command set. This comprises of powerful instructions that can draw lines, circles, rectangles, text, images, etc. To provide a full graphical user i...

  • Page 11: 6.1  General Command Set

    Www.4dsystems.Com.Au µ v g a -picaso- md1 11 6.1 general command set notes: serial : those commands that can be sent via the serial link and executed by the picaso module. 4dgl : those commands that can be executed from user application code written in 4dgl via function calls within the built in 4dg...

  • Page 12: 6.1.1

    Www.4dsystems.Com.Au µ v g a -picaso- md1 12 6.1.1 a dd user bitmapped character ( a ) serial syntax : cmd, group, numb, data1, data2, …….., datan 4dgl syntax : n/a cmd : 41hex, aascii group : selects the appropriate bitmap format 00hex selects the 8x8 bitmap format 01hex selects the 16x16 bitmap fo...

  • Page 13

    Www.4dsystems.Com.Au µ v g a -picaso- md1 13 example2: 41hex , 01hex, 03hex, 3fhex, fchex, 40hex, 02hex, 80hex, 01hex, bchex, 3dhex, 98hex, 19hex, 98hex, 19hex, 81hex, 81hex, 81hex, 81hex, 80hex, 01hex, 40hex, 02hex, 24hex, 24hex, 23hex, c4hex, 21hex, 84hex, 10hex, 08hex, 08hex, 10hex, 07hex, e0hex ...

  • Page 14: 6.1.2   Set Viewing

    Www.4dsystems.Com.Au µ v g a -picaso- md1 14 6.1.2 set viewing a rea ( a ) serial syntax : cmd, linestart(msb:lsb), lineend(msb:lsb) 4dgl syntax : (refer to 4dgl programmers manual) cmd : 61hex, a ascii linestart: specify line start position. 2 bytes. Lineend: specify line stop position. 2 bytes. De...

  • Page 15: 6.1.3  Set

    Www.4dsystems.Com.Au µ v g a -picaso- md1 15 6.1.3 set b ackground colour ( b ) serial syntax : cmd, colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 42hex, bascii colour : pixel colour value: 1 byte 256 colours to choose from black = 00hex, 0dec white = ffhex, 255dec, 11 111 111 bin de...

  • Page 16: 6.1.4   Text

    Www.4dsystems.Com.Au µ v g a -picaso- md1 16 6.1.4 text b utton ( b ) serial syntax : cmd, state, x(msb:lsb), y(msb:lsb), buttoncolour, font, textcolour, textwidth, textheight, char1, .., charn, terminator 4dgl syntax : (refer to 4dgl programmers manual) cmd : 62hex, bascii state : specifies whether...

  • Page 17: 6.1.5  Draw

    Www.4dsystems.Com.Au µ v g a -picaso- md1 17 6.1.5 draw c ircle ( c ) serial syntax : cmd, x(msb:lsb), y(msb:lsb), rad(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 43hex, cascii x : circle centre horizontal position. 2 bytes y : circle centre vertical position. 2 bytes rad...

  • Page 18: 6.1.6   Block

    Www.4dsystems.Com.Au µ v g a -picaso- md1 18 6.1.6 block c opy & paste (screen bitmap copy) ( c ) serial syntax : cmd, xs(msb:lsb), ys(msb:lsb), xd(msb:lsb), yd(msb:lsb), width(msb:lsb), height(msb:lsb), src_page, dest_page 4dgl syntax : (refer to 4dgl programmers manual) cmd : 63hex, c ascii xs: to...

  • Page 19: 6.1.7

    Www.4dsystems.Com.Au µ v g a -picaso- md1 19 6.1.7 d isplay user bitmapped character ( d ) serial syntax : cmd, group, numb, x(msb:lsb), y(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 44hex, dascii group : selects the appropriate bitmap format 00hex selects the 8x8 bitmap ...

  • Page 20: 6.1.8

    Www.4dsystems.Com.Au µ v g a -picaso- md1 20 6.1.8 e rase screen ( e ) serial syntax : cmd 4dgl syntax : (refer to 4dgl programmers manual) cmd : 45hex, eascii description : this command clears the entire screen using the current background colour. The screen erase execution starts at the beginning ...

  • Page 21: 6.1.9   Draw

    Www.4dsystems.Com.Au µ v g a -picaso- md1 21 6.1.9 draw e llipse ( e ) serial syntax : cmd, x(msb:lsb), y(msb:lsb), xrad(msb:lsb), yrad(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 65hex, eascii x : ellipse centre horizontal position. 2 bytes. Y : ellipse centre vertical p...

  • Page 22: 6.1.10   Set

    Www.4dsystems.Com.Au µ v g a -picaso- md1 22 6.1.10 set f ont size ( f ) serial syntax : cmd, size 4dgl syntax : (refer to 4dgl programmers manual) cmd : 46hex, fascii size : = 00hex : 5x7 small size font = 01hex : 8x8 medium size font = 02hex : 8x12 large size font description : this command will c...

  • Page 23: 6.1.11   Draw Trian

    Www.4dsystems.Com.Au µ v g a -picaso- md1 23 6.1.11 draw trian g le ( g ) serial syntax : cmd, x1(msb:lsb), y1(msb:lsb), x2(msb:lsb), y2(msb:lsb), x3(msb:lsb), y3(msb:lsb),colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 47hex, gascii x1, y1, x2, y2, x3, y3 : 3 vertices of the triangle....

  • Page 24: 6.1.12   Draw Poly

    Www.4dsystems.Com.Au µ v g a -picaso- md1 24 6.1.12 draw poly g on ( g ) serial syntax : cmd, vertices, x1(msb:lsb), y1(msb:lsb), .. .. .. .. Xn(msb:lsb), yn(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 67hex, g ascii vertices : number of vertices from 3 to 7. Specifies th...

  • Page 25: 6.1.13   Display

    Www.4dsystems.Com.Au µ v g a -picaso- md1 25 6.1.13 display i mage ( i ) serial syntax : cmd, x(msb:lsb), y(msb:lsb), width(msb:lsb), height(msb:lsb), colourmode, pixel1, .. Pixeln 4dgl syntax : (refer to 4dgl programmers manual) cmd : 49hex, iascii x : image horizontal start position (top left corn...

  • Page 26: 6.1.14   Draw

    Www.4dsystems.Com.Au µ v g a -picaso- md1 26 6.1.14 draw l ine ( l ) serial syntax : cmd, x1(msb:lsb), y1(msb:lsb), x2(msb:lsb), y2(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 4chex, lascii x1 : horizontal position of line start. 2 bytes y1 : vertical position of line sta...

  • Page 27: 6.1.15

    Www.4dsystems.Com.Au µ v g a -picaso- md1 27 6.1.15 o paque / transparent text ( o ) serial syntax : cmd, mode 4dgl syntax : (refer to 4dgl programmers manual) cmd : 4fhex, oascii mode : = 00hex : transparent text, objects behind the text can be seen. = 01hex: opaque text, objects behind text is blo...

  • Page 28: 6.1.16   Put

    Www.4dsystems.Com.Au µ v g a -picaso- md1 28 6.1.16 put p ixel ( p ) serial syntax : cmd, x(msb:lsb), y(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 50hex, pascii x : horizontal pixel position. 2 bytes y : vertical pixel position. 2 bytes colour : pixel colour value: 1 byt...

  • Page 29: 6.1.17

    Www.4dsystems.Com.Au µ v g a -picaso- md1 29 6.1.17 set p en size ( p ) serial syntax : cmd, size 4dgl syntax : (refer to 4dgl programmers manual) cmd : 70hex, p ascii size : = 00hex : all objects such as circles, rectangles, triangles, etc are solid = 01hex : all objects are wire frame (empty) desc...

  • Page 30: 6.1.18

    Www.4dsystems.Com.Au µ v g a -picaso- md1 30 6.1.18 r ead pixel ( r ) serial syntax : cmd, x(msb:lsb), y(msb:lsb) 4dgl syntax : (refer to 4dgl programmers manual) cmd : 52hex, rascii x : horizontal pixel position. 2 bytes y : vertical pixel position. 2 bytes. Description : this command will read the...

  • Page 31: 6.1.19   Draw

    Www.4dsystems.Com.Au µ v g a -picaso- md1 31 6.1.19 draw r ectangle ( r ) serial syntax : cmd, x1(msb:lsb), y1(msb:lsb), x2(msb:lsb), y2(msb:lsb), colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 72hex, r ascii x1 : top left horizontal start position. 2 bytes y1 : top left vertical star...

  • Page 32: 6.1.20   Place

    Www.4dsystems.Com.Au µ v g a -picaso- md1 32 6.1.20 place s tring of ascii text (unformatted) ( s ) serial syntax : cmd, x(msb:lsb), y(msb:lsb), font, colour, width, height, char1, .., charn, terminator 4dgl syntax : (refer to 4dgl programmers manual) cmd : 53hex, sascii x : the horizontal start pos...

  • Page 33: 6.1.21   Place

    Www.4dsystems.Com.Au µ v g a -picaso- md1 33 6.1.21 place s tring of ascii text (formatted) ( s ) serial syntax : cmd, column, row, font, colour, char1,.., charn, terminator 4dgl syntax : (refer to 4dgl programmers manual) cmd : 73hex, s ascii column : string horizontal start position. 1 byte. Row :...

  • Page 34: 6.1.22   Place

    Www.4dsystems.Com.Au µ v g a -picaso- md1 34 6.1.22 place t ext character (formatted) ( t ) serial syntax : cmd, char, column, row, colour 4dgl syntax : (refer to 4dgl programmers manual) cmd : 54hex, tascii char : inbuilt standard ascii character, 32dec to 127dec (20hex to 7fhex) column : horizonta...

  • Page 35: 6.1.23   Place

    Www.4dsystems.Com.Au µ v g a -picaso- md1 35 6.1.23 place t ext character (unformatted) ( t ) serial syntax : cmd, char, x(msb:lsb), y(msb:lsb), colour, width, height 4dgl syntax : (refer to 4dgl programmers manual) cmd : 74hex, tascii char : inbuilt standard ascii character, 32dec to 127dec (20hex ...

  • Page 36: 6.1.24

    Www.4dsystems.Com.Au µ v g a -picaso- md1 36 6.1.24 v ersion/device info request ( v ) serial syntax : cmd, output response : device_type, hardware_rev, firmware_rev, horizontal_res, vertical_res 4dgl syntax : n/a cmd : 56hex, vascii output : 00hex : outputs the version and device info to the serial...

  • Page 37: 6.1.25

    Www.4dsystems.Com.Au µ v g a -picaso- md1 37 6.1.25 v sync lock ( v ) syntax : cmd cmd : 76hex, v ascii response : 06hex (ack) the µ v g a will respond with the ack byte once it encounters the next internal vertical sync signal. Description : this command allows the host to lock onto the start of th...

  • Page 38: 6.1.26   Displa

    Www.4dsystems.Com.Au µ v g a -picaso- md1 38 6.1.26 displa y video ram settings ( y ) serial syntax : cmd, mode, parameter 4dgl syntax : (refer to 4dgl programmers manual) cmd : 59hex, yascii mode : 00hex : display page select parameter = 00hex to 07hex for qvga page0 to page7. Parameter = 00hex or ...

  • Page 39

    Www.4dsystems.Com.Au µ v g a -picaso- md1 39 7 serial interface (ttl level) the µ v g a -picaso- md1 module communicates with the outside world via its serial link. The serial link is always used as a means to upload a pmmc file for a new platform change or to update the module with enhancements. If...

  • Page 40

    Www.4dsystems.Com.Au µ v g a -picaso- md1 40 8 using the µvga-picasomd1-ub base board pin function + +ve power supply input: 3.6 to 6.0 volts d.C tx serial transmit data pin: 0 to 3.3volt signal levels. Rx serial receive data pin: 0 to 3.3volt signal levels. - -ve power supply input: connect to gnd ...

  • Page 41: 9  Usb Interface

    Www.4dsystems.Com.Au µ v g a -picaso- md1 41 9 usb interface the µ v g a -picaso- md1 module may need to be interfaced to a pc from time to time. Using a standard usb cable and the 4d systems micro-usb module (µusb-mb5 or µusb- ce5) as shown below a pc to µvga-picaso connection can be achieved simpl...

  • Page 42: 10  Specifications

    Www.4dsystems.Com.Au µ v g a -picaso- md1 42 10 specifications the µ v g a -picaso- md1 module has the following electrical specifications which must be adhered to at all times to prevent damage to the device. Symbol characteristic min typ max units vcc supply voltage 3.0 3.3 3.6 v i current 80 100 ...

  • Page 43: 11  Mechanical Details

    Www.4dsystems.Com.Au µ v g a -picaso- md1 43 11 mechanical details top bottom the µ v g a -picaso- md1 module dimensions are 19.5 mm x 24.3 mm x 5.5 mm..

  • Page 44: Colour Organisation

    Www.4dsystems.Com.Au µ v g a -picaso- md1 44 12 colour organisation 256 colour bitmap organisation the µ v g a -picaso- md1 256 colour byte is organised as 3 bits for red ( d2, d1, d0 ), 3 bits for green ( d5, d4, d3 ) and 2 bits for blue ( d7, d6 ). This will give a combination of 8x8x4 = 256 colou...

  • Page 45: Power-Up Reset

    Www.4dsystems.Com.Au µ v g a -picaso- md1 45 13 power-up reset when the µ v g a -picaso- md1 comes out of a power up reset it initialises the video graphics ram and the internal display registers. Allow up to 500ms before attempting to communicate with the module . The power up sequence of events sh...

  • Page 46: Related Products

    Www.4dsystems.Com.Au µ v g a -picaso- md1 46 14 related products ƒ µvga-picasomd1-ub o adaptor board for µ v g a -picaso- md1 graphics module. O onboard 256 colour dac plus rgb video buffers. O onboard standard 15 pin vga connector allows the use of any vga monitor. O 28 pin dual row socket for easy...

  • Page 47: Appendix

    Www.4dsystems.Com.Au µ v g a -picaso- md1 47 15 appendix 15.1 help and other information: assistance with latest information and downloads visit the 4d systems products web- page of your local distributor or visit the 4d systems website. Questions and technical support please visit the discussion fo...