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

128x64 0.96 inç OLED Grafik Ekran 6 Pin SPI

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



Joined: 08 Sep 2020
Posts: 221

View user's profile Send private message

128x64 0.96 inç OLED Grafik Ekran 6 Pin SPI
PostPosted: Wed Oct 21, 2020 1:37 am     Reply with quote

Hello everbody
I want to use OLED graphic lcd. I am sharing the lcd link I will use. How can I use ? Does this lcd have driver file ? If you have, I will be glad if you share.

https://www.direnc.net/128x64-0-96-inch-oled-grafik-ekran-spi
_________________
Best Regards...
MCUprogrammer
_______________________________
Work Hard
Ttelmah



Joined: 11 Mar 2010
Posts: 19518

View user's profile Send private message

PostPosted: Wed Oct 21, 2020 1:53 am     Reply with quote

That uses an SSD1306 compatible chip. Look in the code library, There are
two drivers there for this chip. One designed to use less RAM, and the other
a standard version.
However big caveat. What PIC?. The interface to this is a 3.3v level
interface. 5v PIC's won't drive this without a level translator, unless you
use software SPI, and choose a receive pin that has TTL input levels. Or
(depending on your PIC), run with the SMBUS compatible inputs selected.
The transmit and clock pins will need resistive dividers if you are not
going to overdrive the display.
MCUprogrammer



Joined: 08 Sep 2020
Posts: 221

View user's profile Send private message

PostPosted: Wed Oct 21, 2020 2:41 am     Reply with quote

I will use PIC16F886 and 20MHz.
_________________
Best Regards...
MCUprogrammer
_______________________________
Work Hard
Ttelmah



Joined: 11 Mar 2010
Posts: 19518

View user's profile Send private message

PostPosted: Wed Oct 21, 2020 4:14 am     Reply with quote

You are making it hard for yourself.
At 20MHz, the 886, requires 4.5v minimum. So you can't run at the 3.3v
that makes it easier to drive this chip.
So you are going to need a level translator on the input line from the display,
and resistive dividers on the output lines.
Honestly, far easier to use a 3.3v PIC, and build the whole board to run
at 3.3v. More modern PIC's offer operation at 3.3v, usually faster, and with
more memory, and often for less money.
temtronic



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

View user's profile Send private message

PostPosted: Wed Oct 21, 2020 4:17 am     Reply with quote

If you look at the datasheet, electrical specs, figure 17-1, you'll see that while that PIC will run with a VDD of 3 volts, you're limited to a clock speed of 10 MHz.
So you don't need any logic level conversion, so less parts. Just have to reduce clock to 10 MHz.

Edit. I see Mr. T types faster than me ! His option, choosing another PIC is better than mine, allows for faster PIC. The good news is, if you already have the 886, it will work. Should you need more speed, there are lots of PICs to choose from. Personally, I've used the PIC18F46K22 for years for several projects.It's had more peripherals and memory than I've ever needed, though one project only had 2 spare pins.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19518

View user's profile Send private message

PostPosted: Wed Oct 21, 2020 5:32 am     Reply with quote

Problem is that things are going to get slow, running a graphic LCD this
size off a 10MHz CPU. Honestly, I'd be wanting to run at 20MHz, or even
faster. One of the modern 3.3V CPU's, will run at 32MHz, and draw less
power than the 886.
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