![]() |
![]() |
![]() |
|
|
|||||||
| 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? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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... Last edited by darsin; 17th July 2008 at 12:46 PM. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
unfortunately....still nothing come out
my GLCD spoilt d? |
|
|
|
|
|
|
(permalink) |
|
pommie, you can't help me already?
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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? |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |