background image

      

                                                                                                                        

 
 
 

       

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 :

     

49

hex

, I

ascii

 

 

x :

  Image horizontal start position (top left corner). 2 bytes.

 

 

y :

 Image vertical start position (top left corner). 2 bytes.

 

 

width :

 horizontal size of the image. 2 bytes.

 

 

height :

 vertical size of the image. 2 bytes.

 

 

colourMode :

    

8

dec = 256 colour mode, 8bits/1byte per pixel 

     

16

dec = 65K colour mode, 16bits/2bytes per pixel(msb:lsb)  

Note: 

µ

V

G

A

-PICASO-

MD1 

only supports 256 colours. 

 

pixel1..pixelN :

 image pixel data and N is the total number of pixels 

   

 

N = height x width  

 

Description :

 

This command displays a bitmap image on to the screen with the top 

left corner specified by 

(x, y) 

and size of the image specified by 

width

 and 

height

 

parameters. This command is more effective than using the “Put Pixel” command, 
where there are no overheads in specifying the 

x, y

 location of each pixel.  

 
 
 
 
 
 
 
 

Summary of Contents for Picaso MD1

Page 1: ...USERS MANUAL VGA PICASO MD1 Tiny VGA Graphics Controller QVGA VGA SVGA Revision 1 2 4D Systems...

Page 2: ...merchantability non infringement and fitness for any particular purpose 4d systems sole obligation and liability for product defects shall be at 4d systems option to replace such defective product or...

Page 3: ...ity 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 PICASOMD1 UB 40 9 USB Interface 41 10 Specifications 42 11 Mech...

Page 4: ...r but can produce text in a variety of sizes as well as draw shapes which can include user definable bitmapped characters such as logos in 256 colours whilst freeing up the host processor from the pro...

Page 5: ...ing the multiple pages allows double buffering which can be used for smooth animations and windowing of menu systems RX and TX signals TTL levels provide a simple serial host interface The serial inte...

Page 6: ...X Serial Transmit Pin Serial interface for host processor commands Also used for uploading PmmC files into the PICASO module from the PC for future upgrades 2 VSYNC VGA Vertical Synchronisation Output...

Page 7: ...e range of applications with very simple circuitry Please check the following link for updated information as it becomes available This is available from 4D as a standard option also for general purpo...

Page 8: ...www 4dsystems com au VGA PICASO MD1 8...

Page 9: ...ial command driven platform into a high level language platform such as 4DGL 4D Graphics Language A built in higher level language such as 4DGL allows user programs to be run directly within the PICAS...

Page 10: ...ly hold a maximum value of 255 Therefore each of the x and y pixel address data are represented as a 2 byte value x msb lsb and y msb lsb The most significant byte msb is transmitted first followed by...

Page 11: ...a Set Viewing area B Set Background Colour b Place Text button C Draw Circle c Block copy and Paste bitmap copy D Display User Bitmapped Character E Erase Screen e Draw ellipse F Font Size G Draw Tria...

Page 12: ...The 8x8 bitmap composition is 1 byte wide 8bits by 8 bytes deep which makes N 1x8 8 The 16x16 bitmap composition is 2 bytes wide 16bits by 16 bytes deep which makes N 2x16 32 The 32x32 bitmap composi...

Page 13: ...b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0 data1 hex 3Fh data2 hex FCh data3 hex 40h data4 hex 02h data5 hex 80h data6 hex 01h data7 hex BCh data8 hex 3Dh data9 hex 98h data10 hex 19h data11 hex...

Page 14: ...ets the current screen viewing area The PICASO chip allocates its resources to its internal graphics engine as well as its processor to execute user commands For those applications that require fast g...

Page 15: ...colour value 1 byte 256 colours to choose from Black 00hex 0dec White FFhex 255dec 11111111bin Description This command sets the current background colour Once this command is sent only the backgroun...

Page 16: ...not affect the Font command textColour text colour value 1 byte textWidth horizontal size of the character 1 byte textHeight vertical size of the character 1 byte char1 charN string of ASCII character...

Page 17: ...ircle 2 bytes colour circle colour value 1 byte Description This command will draw a coloured circle centred at x y with a radius determined by the value of rad The circle can be either solid or wire...

Page 18: ...block to be copied source 2 bytes height height of block to be copied source 2 bytes src_page source page QVGA 8pages VGA 2 pages SVGA 1page dest_page destination page QVGA 8pages VGA 2 pages SVGA 1p...

Page 19: ...ntal display position of the character 2 bytes y vertical display position of the character 2 bytes colour bitmap colour value 1 byte Description This command displays the previously defined user bitm...

Page 20: ...ntax 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 of the n...

Page 21: ...of the ellipse 2 bytes colour Ellipse colour value Description This command will draw a coloured ellipse centred at x y with a radius determined by the value of xrad and yrad The ellipse can be eithe...

Page 22: ...edium size font 02hex 8x12 large size font Description This command will change the size of the font according to the value set by size Changes take place after the command is issued Any character on...

Page 23: ...ascii x1 y1 x2 y2 x3 y3 3 vertices of the triangle These must be specified in an anti clockwise fashion All 2 byte values colour triangle colour value 1 byte Description This command draws a Solid Emp...

Page 24: ...d 67hex g ascii vertices number of vertices from 3 to 7 Specifies the number of vertices of the polygon x1 y1 xn yn vertices of the polygon These can be specified in any fashion All 2 byte values colo...

Page 25: ...ertical size of the image 2 bytes colourMode 8dec 256 colour mode 8bits 1byte per pixel 16dec 65K colour mode 16bits 2bytes per pixel msb lsb Note VGA PICASO MD1 only supports 256 colours pixel1 pixel...

Page 26: ...osition of line start 2 bytes y1 vertical position of line start 2 bytes x2 horizontal position of line end 2 bytes y2 vertical position of line end 2 bytes colour line colour value 1 byte Description...

Page 27: ...his command will change the attribute of the text so that an object behind the text can either be blocked or transparent Changes take place after the command is sent This command will change the attri...

Page 28: ...orizontal pixel position 2 bytes y vertical pixel position 2 bytes colour pixel colour value 1 byte 256 colours to choose from Black 00hex 0dec White FFhex 256dec 11111111bin Description This command...

Page 29: ...p ascii size 00hex All objects such as circles rectangles triangles etc are solid 01hex All objects are wire frame empty Description This command determines if certain graphics objects are drawn in s...

Page 30: ...This command will read the colour value of pixel at location x y on the screen and return it to the host This is a useful command when for example a white pointer is moved across the screen and the h...

Page 31: ...colour value 1 byte Description This command will draw a rectangle of specified area on the screen x1 y1 refers to the top left corner of the area and x2 y2 refers to the bottom right hand corner of...

Page 32: ...ontal size of the string characters n x normal size 1 byte height vertical size of the string characters m x normal size 1 byte char1 charN string of ASCII characters max 256 characters terminator the...

Page 33: ...e Font command colour colour value of the string 2 bytes char1 charN string of ASCII characters max 256 characters terminator the string must be terminated with 00hex Description This command allows t...

Page 34: ...position of character 1 byte row vertical position of character 1 byte colour colour value of the character 1 byte Description This command will place a coloured ASCII character from the ASCII chart...

Page 35: ...2 bytes y the vertical position of character in pixel units 2 bytes colour colour value of the character 1 byte width horizontal size of the character n x normal size height vertical size of the chara...

Page 36: ...ro LCD 02hex micro VGA hardware_rev this response indicates the device hardware version firmware_rev this response indicates the device firmware version horizontal_res this response indicates the hori...

Page 37: ...ccur When the host sends this command it should wait for an ACK from the VGA and once the ACK is received the host can then start issuing display commands Use this command for dynamically displayed ob...

Page 38: ...eter 00hex to 07hex for QVGA page0 to page7 parameter 00hex or 01hex for VGA page0 or page1 parameter XXhex don t care for SVGA only page0 is available Selects the page that all video memory write ope...

Page 39: ...of the host automatically without needing any further setup This must be done every time the module is powered up or reset If the module needs its baud rate changed then it must be powered down and p...

Page 40: ...MD1 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 i...

Page 41: ...module USB MB5 or USB CE5 as shown below a PC to VGA PICASO connection can be achieved simply The micro USB module optional extra simply connects to the VGA PICASO MD1 module and captures the USB dat...

Page 42: ...00 120 mA Deg C Operating temp 0 30 70 C The VGA PICASO MD1 module supports the following industry standard resolution modes Mode Usable Horizontal Resolution Usable Vertical Resolution Units QVGA 320...

Page 43: ...www 4dsystems com au VGA PICASO MD1 43 11 Mechanical Details TOP BOTTOM The VGA PICASO MD1 module dimensions are 19 5mm x 24 3mm x 5 5mm...

Page 44: ...ple a lighter shade of Red can be obtained by adding a little bit of the Green and a little bit of the Blue Full Red and full Green will result in Yellow Some experimentation will be needed to obtain...

Page 45: ...hould make sure it has its Tx line pulled HIGH If the host Tx VGA PICASO MD1 Rx is LOW or floating after the 100ms period the module may misinterpret this as the START bit and lock onto some undesired...

Page 46: ...rd USB miniB connector o 10 pin header provides the following signals 5V 3 3V GND Tx Rx Suspend DTR CTS RTS GND o 5 Volts supply 500mA 3 3 Volts supply 100mA o Additional flow control signals DTR CTS...

Page 47: ...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 forum at 4D website www 4dsystem...

Reviews: