@Dwayne
how about this:
This is a qouteCode:' This is no working code! Line 1 'not working Line 2 'not working 'etc . . .
@Dwayne
how about this:
This is a qouteCode:' This is no working code! Line 1 'not working Line 2 'not working 'etc . . .
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Dwayne,
You reminded me of another possibility. I too have built my own LCD backpack in the past... just to see if I could do it. Commands were identical to LCDout except I would serout instead. Doesn't add too much to the cost of an assembly and is certainly cheaper than buying a serial LCD. Still its the thought thats nagging me that we should be able to cross the port boundary with the data pins on LCDout. Guess it needs to go in the wish-list column.
-John
that webpage is good but it isnt mine.
-not sure what exactly your problem is but are you just asking how to get a changing variable on the LCD?
the subs i made probly wont be that good for that but can be done. youd need to make a routine to turn a byte (or word) sized variables decimal value into ascii format. your gonna need to generate 3 ascii character from a byte sized var.
example: we have b1 a byte siezed variable.if we need b1 on the lcd we know that the variable is 0-255. that means we need 3 characters reserved for this variable XXX. if b1 =1 then show "001" on lcd. if b1=35 then show "035". if b1=244 then shoe "244".
i may end up doing something like this if it doesnt require a lot of room and ill post it if i do it.
Hello Hancksnec,
Which will probably mean more overhead and less space for your code. Everything has a drawback... Maybe they could call it LCDoutX ? For those who do not want to have the extra overhead.Still its the thought thats nagging me that we should be able to cross the port boundary with the data pins on LCDout. Guess it needs to go in the wish-list column.
How do you like your C compiler?
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Hello Ralph,
@Dwayne
how about this:Thanks bud!Code:LCDout Portb,2400T,"Old habits are TOUGH to break ;-}"
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
You are welcome!Originally Posted by Dwayne
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Do I like my C compiler? Well it has its advantages in many situations, but I still love PBP.
Try doing this in basic:
I also like the wizard associated with the CCS C compiler. When you start a new project it asks you questions like "Do you want to use the on-board ADC?" or "Do you want to use the Capture-Compare?". Based on your answer it automatically inserts the necessary code for initialization.Code:///////////////////////////////////////////////////////////////////////// //// Polarization analysis.C //// //// //// //// This program shows input, output and standard operations with //// //// floating piont numbers. I/O is RS232. //// //// The equation is applied to the numbers entered and the result //// //// is printed to the screen. hansknecht 5/12/04 //// ///////////////////////////////////////////////////////////////////////// #include <16F877.h> #fuses HS,NOWDT,NOPROTECT,NOLVP #use delay(clock=20000000) #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) #include <stdlib.h> #include <input.c> #include <math.h> void main() { float a, b, pol_res; do { printf("\r\nEnter first number: "); //prompt user for number a=get_float(); // bring number in printf("\r\nEnter second number: "); // prompt for second number b=get_float(); pol_res = (2*(SQRT (a*b))/(a+b))* 100; // perform calculation printf("\r\nPolarization = ",pol_res, " %"); // display result } while (TRUE); }
All this comes at a $$$ price. PBP is a great affordable compiler for 90% of my projects.
-John
Bookmarks