Search found 25 matches

by hgboy
Fri Mar 13, 2009 11:38 pm
Forum: General
Topic: Some small details left to iron out...
Replies: 5
Views: 3939

I figured out where the slight flicker was coming from. Basically, I am drawing a background color rectangle from the top down to the maximum yvalue of the rectangle + 1. The screen was flickering because i had the background color rectangle starting from the maximum yvalue of the largest rectangle ...
by hgboy
Thu Mar 12, 2009 6:23 am
Forum: General
Topic: Some small details left to iron out...
Replies: 5
Views: 3939

It's been hard walking away from this project :D I think I have it figured out. While(true) fuel = ADC.Read(0) temp = ADC.Read(1) boost = ADC.Read(2) psi = GetPSI(boost) psinum = GetPSIValue(psi) Y1Value = GetY1Value(fuel) Y2Value = GetY2Value(temp) XValue =GetXValue(boost) pen.color = 0 Line(6,5,6,...
by hgboy
Thu Mar 12, 2009 2:32 am
Forum: General
Topic: Some small details left to iron out...
Replies: 5
Views: 3939

I was thinking along those lines, but I guess my issue is not knowing how to undraw what I need to. using what is in the library. This is my first encounter with an lcd of any sort.
by hgboy
Thu Mar 12, 2009 2:09 am
Forum: General
Topic: Some small details left to iron out...
Replies: 5
Views: 3939

Some small details left to iron out...

I have almost all of the code written for my digital dash display. Well, at least for one of the screens involved with that :D http://i53.photobucket.com/albums/g47/hgboy/gauge.jpg The bar graphs are adjusted by ADC.Reads on channels 0-2 on a 18F4550. Right now they are just hooked up to some 10k po...
by hgboy
Wed Mar 11, 2009 10:19 pm
Forum: General
Topic: Nothing displays on glcd
Replies: 2
Views: 3019

I got it figured out. Like i was afraid of, i damaged the connector and had to replace the lcd. Works fine now.
by hgboy
Tue Feb 17, 2009 11:13 pm
Forum: General
Topic: Nothing displays on glcd
Replies: 2
Views: 3019

Nothing displays on glcd

I cannot get anything to display on my glcd (t6963c controller), and don't know if it is a code problem, or a connection issue. I believe all of my connections are correct, but I may be wrong. Here is the code, and is there any way to verify that the lcd is working properly with a multimeter or some...
by hgboy
Wed Feb 04, 2009 9:40 pm
Forum: General
Topic: 18F4550 oscillator config
Replies: 1
Views: 2794

18F4550 oscillator config

I plan on using an 18f4550 to run a glcd, and would like to have it running as fast as possible to get decent refresh rates. As far as I can tell, the maximum frequency for the 18f4550 is 48MHz. How would I set this up in my code, and what type of hardware configuration would I need? I am having a l...
by hgboy
Fri Jan 30, 2009 8:56 pm
Forum: General
Topic: Need some advice on code structure
Replies: 2
Views: 2818

I think I've gotten it figured out. The compiler doesn't somplain about having a function passed as a parameter for another, so I am assuming it will be ok to do so. Hopefully I can get this thing wired up on the breadboard soon and tested out. Thanks for the help.
by hgboy
Fri Jan 30, 2009 8:03 pm
Forum: General
Topic: Need some advice on code structure
Replies: 2
Views: 2818

Need some advice on code structure

I am very close to having the first bit of my GLCD dashboard completed. The main issue left to deal with is more of a structural problem (or even a style problem). I am reading 3 ADC channels, which are connected to sensors on my car. From what I understand, the basic ADCRead function will return a ...
by hgboy
Fri Jan 30, 2009 5:08 pm
Forum: General
Topic: Couple quick questions. T6963C GLCD related.
Replies: 6
Views: 4294

Thanks for all of the advice. I think I have my code all figured out, and it all compiles ok. I just made a small module that holds one constant array of bytes, and put in the information that a bitmap converter spit out, then included it in my main program. I won't be able to test it for a while, a...
by hgboy
Fri Jan 30, 2009 4:13 pm
Forum: General
Topic: Couple quick questions. T6963C GLCD related.
Replies: 6
Views: 4294

It is hard coded in the drivers, if your display is of a lower resolution then it shouldn't matter. If you need a higher resolution ( I can't remember if the T6963 even supports this ) then the driver would need to be changed. Note that just changing the declares probably won't work. So, if I am us...
by hgboy
Fri Jan 30, 2009 3:48 am
Forum: General
Topic: Couple quick questions. T6963C GLCD related.
Replies: 6
Views: 4294

Couple quick questions. T6963C GLCD related.

I have finally gotten around to programming my GLCD, thanks to octal's driver. I have a few questions about it though. First, I see an initialize subprocedure in the code explorer, is this something I have to run in my code, or is it handled automatically? Second, is there a subroutine for displayin...
by hgboy
Thu Nov 06, 2008 10:48 pm
Forum: Compiler
Topic: Using button presses to call subroutines?
Replies: 1
Views: 1829

Never mind, solved the problem. Fixed with this code if anyone cares to know: Device = 18F2550 Clock = 8 Config FOSC = INTOSCIO_EC Include "INTOSC8.bas" Include "utils.bas" //Declare alias variables for leds Dim Delay as word dim SwitchUp as portb.0 dim SwitchDown as portb.1 dim Signal as portb.7 //...
by hgboy
Thu Nov 06, 2008 9:28 pm
Forum: Compiler
Topic: Using button presses to call subroutines?
Replies: 1
Views: 1829

Using button presses to call subroutines?

I am using a 18F2550 as a simple signal generator, with two buttons for incrementing and decrementing the signal frequency. Here is my code: Device = 18F2550 Clock = 8 Config FOSC = INTOSCIO_EC Include "INTOSC8.bas" Include "utils.bas" //Declare alias variables for leds Dim Delay as word dim SwitchU...
by hgboy
Thu Oct 30, 2008 8:18 pm
Forum: Compiler
Topic: CCP and timer1 questions
Replies: 5
Views: 4579

CCP and timer1 questions

I would like to use timer1 and ccp1 to calculate the frequency of an RPM signal. I am using an 18F4550 chip, with the internal oscillator set at 8MHz. I have a very vague understanding of how the ccp and timer1 work, but am confused on how to actually use them to implement what I intend to do. I hav...