Go Back   Home > Forums > General Interest > Everything Else
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

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
Reply
 
Thread Tools Search this Thread
Old 24th February 2006, 11:57 AM   #1
Calebay is offline Calebay  Denmark
diyAudio Member
 
Join Date: Jul 2003
Location: Denmark
Question PIC12F683 to LCD display

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
  Reply With Quote
Old 24th February 2006, 12:37 PM   #2
Elkaid is offline Elkaid  Canada
diyAudio Member
 
Elkaid's Avatar
 
Join Date: Jan 2003
Location: Canada
Send a message via MSN to Elkaid
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 !
  Reply With Quote
Old 24th February 2006, 01:27 PM   #3
diyAudio Member
 
Carondimonio's Avatar
 
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
  Reply With Quote
Old 24th February 2006, 08:27 PM   #4
Calebay is offline Calebay  Denmark
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
  Reply With Quote
Old 25th February 2006, 08:56 AM   #5
diyAudio Member
 
Join Date: Jul 2005
Location: North Derbyshire
Quote:
Originally posted by Calebay
Very usefull link.. tnx both, great help I will use the 16F684 instead, since I need the extra I/O ports
I suggest you look at my
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
  Reply With Quote
Old 8th March 2006, 02:32 PM   #6
Calebay is offline Calebay  Denmark
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?
  Reply With Quote
Old 8th March 2006, 05:25 PM   #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
  Reply With Quote
Old 13th March 2006, 01:40 PM   #8
Calebay is offline Calebay  Denmark
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
  Reply With Quote
Old 13th March 2006, 02:03 PM   #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
  Reply With Quote
Old 13th March 2006, 03:04 PM   #10
Calebay is offline Calebay  Denmark
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?
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
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?

All times are GMT. The time now is 10:41 AM.

Page generated in 0.13048 seconds (73.17% PHP - 26.83% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio