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

PIC18 Series and TFT question

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



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PIC18 Series and TFT question
PostPosted: Thu Jan 17, 2013 9:23 am     Reply with quote

Hi, I am developing a board which has a TFT LCD Touch screen 2.4". I have to dispay temp & time (and couple of motor spin and heaters )
The question is, will 18F series will be able to handle the display? (in terms of speed ) I was thinking of using 18F87K22, has 67 I/O, 128K flash memory, 4K Ram and 1K eeprom, 16Mhz internal oscillator.
Or I should move to a PIC24/32 series?

Thanks in advance, wait for your opinions.
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Thu Jan 17, 2013 10:27 am     Reply with quote

Yes, easily.
Assuming something like a graphic controller, you can drive an LCD like this from PIC's dozen's of times slower than this.
The big question is what else it has to do. There is a big difference (for example, between just reading temperatures and displaying them, and doing something like PID.

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9240
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jan 17, 2013 10:29 am     Reply with quote

Seems like overkill to me, but what is the TFT interface? SPI,I2C,XXX????
Then again I use the 18F46K22 for 99% of my projects...big or small.

Can't be a whole lot of pixels on a 2.4" screen and LCDs are generally slow, so really, you'll have to read the datasheet,check timing specs and figure it out.

I'd search the web, checking for articles about using your LCD.Remember you're not the first one using it!

hth
jay
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Thu Jan 17, 2013 11:12 am     Reply with quote

temtronic wrote:
Seems like overkill to me, but what is the TFT interface? SPI,I2C,XXX????
Then again I use the 18F46K22 for 99% of my projects...big or small.

Can't be a whole lot of pixels on a 2.4" screen and LCDs are generally slow, so really, you'll have to read the datasheet,check timing specs and figure it out.

I'd search the web, checking for articles about using your LCD.Remember you're not the first one using it!

hth
jay


Interfaces is 16 bits parallel.
Thanks and you people are right , I´ll try to experience and then decide, thare are 5 18F87K22 on its way ... So I will test with them , now more confident since you mention that you are using it a lot... that is a good referrence to me. Thanks a lot guys...
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Tue Jan 22, 2013 6:56 am     Reply with quote

I have done a project using a PIC18F, 320x240 TFT with touchscreen.

I used the 8 bit wide data bus, and it is fine.
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Tue Jan 22, 2013 7:14 am     Reply with quote

MikeW wrote:
I have done a project using a PIC18F, 320x240 TFT with touchscreen.

I used the 8 bit wide data bus, and it is fine.


Let me ask you about the drivers, that is a worry to me, since I might not have enough time to develop one from scratch.
Thanks a lot
temtronic



Joined: 01 Jul 2010
Posts: 9240
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Jan 22, 2013 9:02 am     Reply with quote

Sounds like a very ambitious project, worthy of 3-6 months of coding.
Depending on the time left and your skill level it might not be doable.
You could 'google' your LCD module and see what results come back. Odds are real good the mfr or someone has used it before, written drivers (even BASIC ones) that could be modified to CCS C.
If you use the proper 'keywords'. Google is very fast at finding exactly what you need.
hth
jay
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Tue Jan 22, 2013 11:18 am     Reply with quote

The driver shouldn't be much of a problem.
Find out what chip it is, probably an IL92xx, or SSDxxx
or whatever, then google to find loads of sample code, then massage it into PIC/CCS.
It took me several weeks, and I wrote my own circle, font routines based on GLCD stuff.

My application has a display window with nice temperature settings and actuals, and with the touchscreen (easy to do).
I implemented context sensitive virtual keyboard or entering new setpoints etc.
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Tue Jan 22, 2013 11:35 am     Reply with quote

Thanks for the update. very kind
bkamen



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

View user's profile Send private message

PostPosted: Tue Jan 22, 2013 5:55 pm     Reply with quote

MikeW wrote:
The driver shouldn't be much of a problem.
Find out what chip it is, probably an IL92xx, or SSDxxx
or whatever, then google to find loads of sample code, then massage it into PIC/CCS.



This is very important that's getting glossed over.

You can engage an LCD with an interface that requires you drive the LCD completely.

THIS IS NOT WHAT YOU WANT.

For a PIC18F to really get stuff done, you want to be talking to an onboard LCD controller where it has a display memory buffer and you basically tell that controller where in its own memory you want the pixels to be and what color.

IF you STOP talking to the "LCD" for a few seconds or all day - it won't matter as the LCD's controller does all the display timing.

If the PIC has to do the display timing, be ready for a world of performance hurt.

So. Does your LCD have a controller built in, or does the host have to drive everything.

This is an important distinction.
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Mon Mar 04, 2013 9:54 am     Reply with quote

Yes it has the internal controller ILI9325, I will now make the PCB for connecting and debugging. I will let you know how did it work. I will start with the driver, now that I know which controller has on it. I might try to port it from Microchip. Thanks guys I´ll keep you updated. Thanks for your help and time...
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