|
|
View previous topic :: View next topic |
Author |
Message |
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
SH1101A OLED controller... |
Posted: Fri Nov 14, 2008 7:22 am |
|
|
Someone has had experience with this controller?
Alex |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Nov 14, 2008 1:56 pm |
|
|
I notice you posted your question all over the internet. You said on
another forum that you have been searching Google for 8 hours.
Not to toot my own horn too much, but I found source code for it in
about 5 minutes. Here's how I did it:
Start by searching for the chip name and some C keywords:
This immediately finds you some document titled:
Quote: | UG-2864AMBAG02 Application note Evaluation Kit User Guide |
Search for that text string and you'll find it. It has some sample
initialization code in C.
But that's not perfect, so search for other drivers. Search for each of
these. If someone has written a driver, this is what they will name it:
Quote: |
SH1101.h
SH1101.c
SH1101A.h
SH1101A.c
|
We get a result for the one shown in bold. It's this page:
Quote: | Microsoft PowerPoint - PIC24F Starter Kit 1 Tutorial.ppt |
http://techtrain.microchip.com/webseminars/documents/PIC24FStrKit_031708.pdf
Look at page 44 of that document. It lists the .C file and it's part of
something called a "PIC 24F Starter Kit 1", made by Microchip.
OK, so next you go to the Microchip website, http://www.microchip.com
Put this string in their search engine in the upper right corner of the page:
Quote: | PIC24F Starter Kit |
The first result is this page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en535092
Go there, and scroll down to the bottom. It has a download link for this:
Quote: | MPLAB Starter Kit for the PIC24F Demo Application 1.1 |
The name doesn't sound too encouraging. Maybe it's just some demo.
But maybe it's got what you want. Take a chance. Download and install
it. You find that it's installed in this directory:
Quote: | c:\Microchip Starter Kits |
Now go to your Windows Desktop. Press F3 to bring up File Finder.
Search for SH1101A.c in that directory. You find it. Bring it up in
an editor. The code is written for C30, and you have to translate it to
CCS, but you now have full sample code that shows how to initialize
and use the SH1101A chip. It's proven, working code that you can use
as the basis for your own driver written in CCS. |
|
|
[mAnNaRo]
Joined: 02 Dec 2005 Posts: 28 Location: Italy, Milan
|
|
Posted: Fri Nov 14, 2008 2:39 pm |
|
|
Thanks to the reproach PCM, is always an honor from you
I develop in CCS but the material about this controller is as rare as you have certainly noticed so i have extended my question until AVR forum because C is always C
Your search keywords are very interesting there I thought.
Not to dwell I have not specified in my post what had already found because I hoped to find material written by someone with which I can then discuss it.
This is the best result:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en535806
it contain an example with a complete library for this controller but as we say in Italy I like San Tommaso, "I like to put the nose" in this case in the library code Having studied the datasheet are somewhat skeptical about certain parts of code in this library.
I have already translated the entire library in CCS but waiting to mount a prototype board I wanted to get a cleaner code and clear.
Thanks for your help, I go to see the link you found... |
|
|
|
|
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
|