|
|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools...... |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Jul 2003
Location: Denmark
|
Hello
Can anyone please explain to me, how I can control a LCD display whit an PIC12F683 micro controller. I want to be able to display numbers and letter if possible. I’m looking for a simple and low cost solution, so I cant use 50$ serial Display. Hope some one is able to help.. tnx |
|
|
|
|
#2 |
|
diyAudio Member
|
Hi !
Here's a very nice guide which will show you how to use LCD character display. (assuming it's based on the HD44780 controller which is most likely the case). By the way : if you're short on I/O, you can use the 4bits mode instead. It's explained later in the document. LCD Guide Good luck ! |
|
|
|
|
#3 |
|
diyAudio Member
Join Date: Jun 2004
Location: Bern
|
Hi Calebay,
the PIC 12F683 has just 6 I/O lines, and you need at least 7 of them to control an HD44780-based LCD. If you do not want to use another PIC, a solution could consist in using a shift register. You could output the data bits serially into the shift register and then, when the nibble or byte has been transferred, move it from the register to the LCD. A bit tricky, but it can work... Cheers, Bruno |
|
|
|
|
#4 |
|
diyAudio Member
Join Date: Jul 2003
Location: Denmark
|
Very usefull link.. tnx both, great help I will use the 16F684 instead, since I need the extra I/O ports
|
|
|
|
|
#5 | |
|
diyAudio Member
Join Date: Jul 2005
Location: North Derbyshire
|
Quote:
PIC tutorials which have excellent fast LCD routines, but even though they are four bit, they obviously take more I/O than an 8 pin PIC has. They should work fine with the 16F684 though!.
__________________
Nigel Goodwin |
|
|
|
|
|
#6 |
|
diyAudio Member
Join Date: Jul 2003
Location: Denmark
|
Now I started programming my 16f684 in MBLAP, doing okay.. but I have a question, the program space is divided in 4..
Program space: CODE used 97h ( 151) of 400h words ( 14.7%) CONST used 0h ( 0) of 400h words ( 0.0%) ENTRY used 13h ( 19) of 400h words ( 1.9%) STRING used 0h ( 0) of 400h words ( 0.0%) The program I write only takes space up In the CODE, so my question is can change anything so I get more CODE space? The problem is that I have to calculate this: Y = A – B/(exp((C-X)/D)) and the exp function takes up more space than the 400 words.. How can I get around this? Or will I have to find another Micro controller whit more memory? |
|
|
|
|
#7 |
|
diyAudio Member
Join Date: Jul 2005
Location: North Derbyshire
|
You don't mention what language you are using to write the program?, presumably it's a high level one, which is why it's taking lots of space?.
What are you actually doing?, and why do you need the formula?, often you can simplify such things, or even use a lookup table. Also, the 16f684 has 2K of 14 bit program memory, not 400 words.
__________________
Nigel Goodwin |
|
|
|
|
#8 |
|
diyAudio Member
Join Date: Jul 2003
Location: Denmark
|
Hi Nigel
I Use Standart C. anyway problem is solved i think.. But now I came up whit another one, I have build the Wisp628 programmer. http://www.voti.nl/wisp628/index.html I tryed to use the Bumblebee software, but it does not support the 16f684. It seem to be posible to add it tho.. but i need these data, and I don't know where to find them.. Name, Abrivation, Code, Data, Protect, and ID: do you know where i can find these data |
|
|
|
|
#9 |
|
diyAudio Member
Join Date: Jul 2005
Location: North Derbyshire
|
Everything you need to know to program a particular PIC is available in the datasheets and programming datasheets from MicroChip. Adding it to existing software depends if it has suitable facilities to program that specific chip - there are quite a large number of different programming algorithms used.
__________________
Nigel Goodwin |
|
|
|
|
#10 |
|
diyAudio Member
Join Date: Jul 2003
Location: Denmark
|
Okay, I have tryed to find the information in the Datasheet.. no luck. Do you know a DIY programmer that supports 16F684?
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display has gone | anton | Parts | 1 | 28th February 2006 05:55 PM |
| Manual I2C communication btw PIC12F683 & TDA7316 | Mr Zhan | Digital Source | 0 | 8th August 2005 06:13 AM |
| New To Site? | Need Help? |
| Page generated in 0.13048 seconds (73.17% PHP - 26.83% MySQL) with 10 queries |