Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 17th July 2008, 12:45 PM   (permalink)
Default

this is my schematic, others i a bit lazy to draw it out.
i'm using ICD2 to program...
is it the problem is on my potentiometer part?
i'm using 10k...
Attached Images
File Type: jpg graphic lcd.JPG (134.4 KB, 4 views)

Last edited by darsin; 17th July 2008 at 12:46 PM.
darsin is offline  
Reply With Quote
Old 17th July 2008, 12:59 PM   (permalink)
Default

I can't find a data sheet for that display so I'm not sure but I would think that Vout should go to the top of the potentiometer. Have you changed the 16 #defines in GLCD.h to match your circuit?

If you setup your ICD2 as debugger and hit pause after it has run, which line does it stop on?

Mike.
Pommie is offline  
Reply With Quote
Old 17th July 2008, 01:05 PM   (permalink)
Default

BTW, where is your crystal?

If you don't have one then that is the problem.

It can be changed to the internal oscillator if needed.

Mike.
edit, if this is your problem then you need to change the following bits in main.c
Code:
#include <p18f4550.h>
#include <GLCD.h>

#pragma config WDT = OFF, LVP = OFF, FOSC = INTOSCIO_EC

const rom unsigned char Logo[];

void main (void){
unsigned char i;
    OSCCON=0x70;               //added
    ADCON1=0x0f;               // all digital
    CMCON=7;                   // no comparators
    Init_GLCD();

Last edited by Pommie; 17th July 2008 at 01:12 PM. Reason: added code.
Pommie is offline  
Reply With Quote
Old 17th July 2008, 01:18 PM   (permalink)
Default

yes! i changed it. the data sheet i had posted in the 1st post.
I connected 20MHz crystal on my circuit board already.
i just using the ICD2 programmer but not the debugger.
darsin is offline  
Reply With Quote
Old 17th July 2008, 01:31 PM   (permalink)
Default

Try changing it to the internal oscillator anyway. Your crystal may not be starting up correctly. You don't need to change your circuit, just the code.

Mike.
Pommie is offline  
Reply With Quote
Old 17th July 2008, 01:58 PM   (permalink)
Default

unfortunately....still nothing come out
my GLCD spoilt d?
darsin is offline  
Reply With Quote
Old 17th July 2008, 03:56 PM   (permalink)
Default

pommie, you can't help me already?
darsin is offline  
Reply With Quote
Old 17th July 2008, 04:08 PM   (permalink)
Default

Connect your GLCD as the schematic in the Unicorn manual has it. (GND the CD3 & 4 lines). Add a couple of 0.1uF caps to the VDD & VSS pins on the 18F4550 if you haven't already.
You have your contrast pot connected incorrectly. Pin 20 is -VEE (out)
the pot should be around 20K and one end to +5, the other to pin 20 and the wiper to pin 3.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply With Quote
Old 17th July 2008, 04:30 PM   (permalink)
Default

i'd made a development board already
just to connect my hardware to the port only
I do not have 20k pot so can i series 2 10k together?
do u mean that the wiper is the center pin of the pot?
so 1st pin is vdd,2nd pin is pin3 and 3rd pin is pin20?
am i correct?
darsin is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
sed1335 glcd thiru_electrifiers Micro Controllers 2 2nd July 2008 06:39 AM
Quick GLCD question jrz126 General Electronics Chat 1 24th April 2008 12:19 AM
Unicorn+GLCD+Swordfish. Pommie Micro Controllers 4 5th April 2008 04:21 PM
GLCD assembler code Electronics4you General Electronics Chat 4 1st April 2008 11:54 AM
Diagonal line for GLCD superbrew Micro Controllers 17 1st April 2008 05:03 AM



All times are GMT. The time now is 06:53 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.