CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

sx19v001 Color display with touch screen

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ln_mark7930



Joined: 06 Mar 2009
Posts: 21

View user's profile Send private message Send e-mail

sx19v001 Color display with touch screen
PostPosted: Wed May 13, 2009 4:10 am     Reply with quote

hi boys!!!
I have only a simple question:
I bought for only 15 Euros a wonderfull color display
(640*480 pixel with touch screen).
If you see the datasheet (http://www.rgmelsat.com/display_lcd/sx19v001.pdf), you can find the diagram which show how you must send data and move every signal.
I don't understand how draw a pixel in glcd because I can't understand the table on page 12 and 16. Can someone tell me some explanation??

Thank's at all.
mark
andyfraser



Joined: 04 May 2004
Posts: 47
Location: UK

View user's profile Send private message

sx19v001 Color display with touch screen
PostPosted: Wed May 13, 2009 6:46 am     Reply with quote

Hi,

I would suggest the display is cheap because it does not contain a controller to manage driving the panel.

Consider your 'little' PIC clearing the 640x480 screen, that would take a write of 307 thousand bytes !

Andy
Ln_mark7930



Joined: 06 Mar 2009
Posts: 21

View user's profile Send private message Send e-mail

i know
PostPosted: Wed May 13, 2009 7:10 am     Reply with quote

Thank's for answer to my question.
I know which my display hasn't controller on board.
and I know that I must write code to manage every little command...

Do you understand how can I draw one pixel?
For example: how i must send data and command to write one pixel (x,y) 20,20? and the informations of colors?
andyfraser



Joined: 04 May 2004
Posts: 47
Location: UK

View user's profile Send private message

sx19v001 Color display with touch screen
PostPosted: Wed May 13, 2009 8:33 am     Reply with quote

Hi,

Assuming you wanted to change the top left pixel, you would put your combination of RGB bits onto an 8-bit port (D0..D7 on the LCD) then set the frame and pixel clock lines accordingly. However, you cannot address a particular pixel without a controller so you would need to write EVERY pixel every frame thus you need a super fast PIC with 307,200 bytes or RAM !

Andy
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Wed May 13, 2009 10:16 pm     Reply with quote

With a display of this type, you are responsible for sending data at the specified frame rate (about 100/sec), in the correct pattern to fill each of the 480 lines in sequence, plus 17 extra dummy lines. The data has to be delivered in sequence R, G, B, R, G, B etc, 8 bits at a time, which means that the color sequence won't match the edges of bytes; instead it repeats every 3 bytes. The average data rate seems to be about 12 megabytes per second, but it doesn't need to be uniform, as long as the line-sync pulses (CL1 on Hitachi's data sheet) are at a constant rate.

You have no hope of getting a PIC to do this directly. It hasn't got the memory capacity or the speed. You would need to set up an external clocking system and memory, which the PIC might control. But I think this would be a very challenging project. The right way to ccntrol this display is with a programmable logic chip, a CPLD or FPGA or something of the kind.
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Re
PostPosted: Fri May 15, 2009 5:51 am     Reply with quote

maybe Hitachi has a controller for the display....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group