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 support@ccsinfo.com

ILI9486 480x320 pixel display library

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



Joined: 03 Mar 2020
Posts: 14
Location: turkey

View user's profile Send private message

ILI9486 480x320 pixel display library
PostPosted: Mon Jun 28, 2021 3:08 am     Reply with quote

hello,
I searched the ILI9486 library for CCS C on the internet, but I couldn't find it.

https://www.hepsiburada.com/tft-lcd-shield-3-5-480x320-8bit-ili9486-touch-kalem-hediyeli-pm-HB00000M4Z59

Does this lcd screen have a library written for ccs c?
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Mon Jun 28, 2021 7:57 am     Reply with quote

People have worked on this in the past:

[url]
https://ccsinfo.com/forum/viewtopic.php?p=176258
[/url]

However the huge 'caveat' is the very last comment in the thread. This is
a 3.3v chip. It is not suitable for direct drive off a 5v PIC without level
shifting.
The experiments probably didn't work because of this,,, Sad
Jerson



Joined: 31 Jul 2009
Posts: 122
Location: Bombay, India

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 29, 2021 8:31 pm     Reply with quote

The specific display shown by the OP will work on 5V. This is the Arduino UNO shield.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Tue Jun 29, 2021 11:30 pm     Reply with quote

You have to be very careful about this.

The Arduino, has TTL type inputs. The PIC (on SPI), has Schmidt inputs.
So an 'Arduino shield' for such a device, should have 5v to 3.3v translation
on the output pins, but will rely on the existing Arduino inputs being able
to accept the 3.3v output from the device.
The PIC though will not accept these same signals, without:
A 3.3v PIC
Or using software SPI on pins that accept TTL inputs
Or using hardware level shifters.

It's a big 'caveat'....
temtronic



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

View user's profile Send private message

PostPosted: Thu Jul 01, 2021 8:48 am     Reply with quote

Since most of the peripherals/modules made today are usually 3 volt devices, it makes sense to use a 3 volt PIC.
It allows for direct pin to pin connecting, so easier and cheaper.
There are PICs, like the 18F46K22, that will run at 3 or 5 volts, most 'L' version PICs only run at a lower voltage. So check the datasheets !
Jerson



Joined: 31 Jul 2009
Posts: 122
Location: Bombay, India

View user's profile Send private message Visit poster's website

PostPosted: Thu Jul 01, 2021 9:37 pm     Reply with quote

I have successfully used such 'display shields' in my ARM CM0 projects @5V. The level shifters on the shield take care of voltage translations between 3.3 and 5V. So, I am quite confident it should work on PIC too though I do not have first hand experience on PIC to claim so.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Fri Jul 02, 2021 12:34 am     Reply with quote

No,

As I explained, the shields have the adapters to translate the 5v ARM signals
to the 3.3v levels the displays use, but they do not have any adapters
on the signals from the display to the ARM. They rely on the fact that the
ARM 5v 'inputs' are TTL compatible inputs (so accept anything above 2.4v
as a logic 1). The 3.3v signals therefore work fine. The problem is that the
PIC SPI input has Schmidt inputs, which require 4v for a logic '1'. The 3.3v
signals don't give this. Result problems.....
This happens with just about all ARM shields, but is only a problem for
things using SPI.

Look at the thread at the top of the forum for interfacing an SD card,
which has a link to a suitable level shifter.
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