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

LCD 320x240 color... help!!
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 2:07 pm     Reply with quote

lucasromeiro wrote:
Hello Ben.

I looked at what happened and I understand perfectly.

Now it's clear the issue of parallel and serial ..
In my case, the LCD will require a bit rate higher than SPI?


Are you asking me or telling me?

Quote:

As you said, depends on the equipment you need to use parallel. in my case I can do everything only with RLS without restrictions?


RLS?

Quote:

In this case the LCD SPI limit anything?
As I understand the SPI is much easier to be controlled that the parallel, and is also much more reliable.



Well, no. Writing your initial code to drive the display with SPI is easy because getting it wired up in a breadboard style environment is easy. 4 wires + power and ground and you can now write code.

If you need more speed (like for motion video or something like that) then later on, you just change the data transaction method from parallel to serial.

The code setup between SPI and PMP (ore PMP through GPIO bit banging) is pretty trivial.

SPI is just nice cause there isn't all the extra wiring at first -- and smaller PIC's will work just fine to get the driver developed.

Quote:

You said you have to use some ready-made buttons, how can I find them and use them?


Well, what I have came with the Microchip graphics library. So if you download that, you'll have the same thing I have.
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 4:16 pm     Reply with quote

I'm feelin 'you perguntando.Se the LCD requires a transmission rate higher than the SPI to function properly and that I can use it as you wish.

No RLS, SPI .... Typed wrong!

So to see a video the parallel mode is better! correct?
In case I want to make a menu with options, a Sonar, show photos, and some animation I use SPI without problems! Correct? SPI is not only vantavem for video, that's what I understand, or am I confused?

As for the buttons that come with the library of the microchip, could tell me where you find them?
I downloaded this library, this correct?
http://ww1.microchip.com/downloads/en/devicedoc/MCHP_App_Lib_v2010_04_28_Installer.zip

Which folders against these buttons? I tried most not found.
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 4:44 pm     Reply with quote

lucasromeiro wrote:
I'm feelin 'you perguntando.Se the LCD requires a transmission rate higher than the SPI to function properly and that I can use it as you wish.


?? I don't understand this part. Could you please rephrase this for me?

Quote:

No RLS, SPI .... Typed wrong!


Ok.

Quote:

So to see a video the parallel mode is better! correct?
In case I want to make a menu with options, a Sonar, show photos, and some animation I use SPI without problems! Correct? SPI is not only vantavem for video, that's what I understand, or am I confused?


I think I'm following.

In my case, the SSD1339 does some line/bar/circle/fill functions with a command.

But if I wanted to do full motion video, most likely, I would want to use Parallel I/O not SPI.

But I could still build my whole library while working with SPI, and then when I have my prototype board wired up with parallel I/O, I would then change the "getbyte()" and "sendbyte" routines. (I just made up those names.)

This of it this way: If I took my 128x128 color OLED and wanted to run 30 frames per second, that would mean I need to refresh 128x128 pixels per second.


So that's 128x128x30 = 491,520 pixels per second.

If each pixel was 8bits (256 color), then that would be 491,520 x 8bits per pixel.

That's a little under 4megabits per second that SPI would need to support and transfer.

So with a PIC24F running an SPI port at 8Mb/s, this might work out ok. (I'm not including the PIC's need to decode something like MPEG or animated GIF's. We're just talking raw speed. Don't forget moving video has CPU overhead just rattling the pixels around.)

If I went to 16bits per pixel, that's 7,864,320 bits per second. Almost the port speed of 8Mb/second. That's cutting it close for SPI.

So you can see how this works.

Quote:

As for the buttons that come with the library of the microchip, could tell me where you find them?
I downloaded this library, this correct?
http://ww1.microchip.com/downloads/en/devicedoc/MCHP_App_Lib_v2010_04_28_Installer.zip

Which folders against these buttons? I tried most not found.


I installed into C:\

C:\Microchip Solutions\Microchip\Graphics\Images
C:\Microchip Solutions\Microchip\Graphics\Images\icon
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 5:44 pm     Reply with quote

Our .. Many data in this transmission!
And my LCD is 240x320 ...
Worsened .. lol ...
More from what I understand so I'll update as much use in case of videos or animations rapidas ...
great to know that!

in spi I have a transmitter and a receiver, where an lcd I will not use anything on the receiver .. correct?


Thanks for the icons, I see how do I read them on the sd card, .. be complicated
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 10:25 pm     Reply with quote

lucasromeiro wrote:
Our .. Many data in this transmission!
in spi I have a transmitter and a receiver, where an lcd I will not use anything on the receiver .. correct?


You might want to do both. Sometimes the LCD's have a busy flag that needs to be checked before writing again.

So you just need to read the SSD2119 datasheet to see.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Sat Jun 05, 2010 8:21 am     Reply with quote

Thanks for the tips.

I've been reading the datasheet, I found some things that do not get it right:

Also it integrated the controller function and Consists of up to 172.800 bytes (320 x 240 x 18 / 8) Graphic
Display Data RAM (GDDRAM) That such it interfaced with common MCU through 8/9/16/18-bits 6800 -
series / 8080-series compatible Parallel Interface or Serial Interface and the data stored in the GDDRAM.
Auxiliary 18-/6- bit video interface (VSYNC, Hsync, DOTCLK, DEN) are integrated into SSD2119 is
animation image display.



The GDDRAM is a bit mapped static RAM holding the bit pattern to be displayed. The size of the RAM
RGB is 320 x 240 x 18 / 8 = 172.800 bytes. For mechanical flexibility, re-mapping on BOTH and Segment
Common outputs Can Be selected by software. Please refer to the command "Data Output / Scan direction"
for detail description.
Four pages of display RAM data forms the address block and stored in the GDDRAM. Each block Will
form the fundamental units of scrolling addresses. Various types of area scrolling Can Be Performed by
According to the software program command "Set scroll area" and "Set Scroll Start".
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Sat Jun 05, 2010 9:55 am     Reply with quote

Look at this site:
http://www.ramtex.dk/gclcd/glcd0129.htm

What do you think? not speak English as it is harder for me to understand.
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sat Jun 05, 2010 10:36 am     Reply with quote

lucasromeiro wrote:
Look at this site:
http://www.ramtex.dk/gclcd/glcd0129.htm

What do you think? not speak English as it is harder for me to understand.


On the surface it looks very nice. But it's also 4300 Danish Krone. that's a little less than $700 USD.

Considering Microchip's drivers are free and that I'd just need to add a low level interface to my LCD, I'd go with Microchip.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Sat Jun 05, 2010 7:22 pm     Reply with quote

Look what I posted above ...

Look at this: http://www.xxxxxxxx.com/forum/index.php?topic=xxxx

++++++++++++++++++++++++
Link deleted.

Reason: Forum Rule #9

9. No pirating

--Forum Moderator
++++++++++++++++++++++++

The above program, full ..
Sounds great!
It has a simulator ..
See what you think.
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sun Jun 06, 2010 9:29 am     Reply with quote

lucasromeiro wrote:
Look what I posted above ...

Look at this: http://www.xxxxx.com/forum/index.php?topic=xxxxx


++++++++++++++++++++++++
Link deleted.

Reason: Forum Rule #9

9. No pirating

--Forum Moderator
++++++++++++++++++++++++



The above program, full ..
Sounds great!
It has a simulator ..
See what you think.



It looks like the editor that comes with the LCD drivers you mentioned.

But with the discussion of "eval only, anyone have keys" and "gimme the keys" and so forth makes me think they are sharing a licensed program.

Again, for 5700 DKK, you can have the LCD drivers and the editor...

If you think it's worth the money -- I suppose.

But that forum gives me the feeling of illegal file sharing.
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Sat Jun 04, 2011 7:38 pm     Reply with quote

help. please.....
i use ccs.


++++++++++++++++++++++++
Forum Rule #9

9. No pirating

--Forum Moderator
++++++++++++++++++++++++
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sat Jun 04, 2011 8:09 pm     Reply with quote

If you can't be more specific -- I don't think you're going to have a lot of people rushing to help you.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lucasromeiro



Joined: 27 Mar 2010
Posts: 167

View user's profile Send private message

PostPosted: Sun Jun 05, 2011 5:38 am     Reply with quote

I couldnt even use this LCD, I use the ccs and not enconteri no library and I have no money to buy that.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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