View previous topic :: View next topic |
Author |
Message |
MCUprogrammer
Joined: 08 Sep 2020 Posts: 221
|
128x64 0.96 inç OLED Grafik Ekran 6 Pin SPI |
Posted: Wed Oct 21, 2020 1:37 am |
|
|
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: 19538
|
|
Posted: Wed Oct 21, 2020 1:53 am |
|
|
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
|
|
Posted: Wed Oct 21, 2020 2:41 am |
|
|
I will use PIC16F886 and 20MHz. _________________ Best Regards...
MCUprogrammer
_______________________________
Work Hard |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19538
|
|
Posted: Wed Oct 21, 2020 4:14 am |
|
|
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: 9243 Location: Greensville,Ontario
|
|
Posted: Wed Oct 21, 2020 4:17 am |
|
|
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: 19538
|
|
Posted: Wed Oct 21, 2020 5:32 am |
|
|
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. |
|
|
|