Ahhh that makes some sense, thank you.
Type: Posts; User: PICn-It; Keyword(s):
Ahhh that makes some sense, thank you.
Can someone give me a hand understanding how to use the remainder (Modulus) operator properly.
For instance I'm trying to divide 480 by 148. On my calculator I get 3.24.
When I try to use // in...
Yes, good catch.
In my code, currently I can't figure out how to steady up the 10-bit ADC reading, so I temporarily REM'd those lines:
ADC_BITS 10
MYNUMBER VAR WORD
and temporarily put in:...
Ahh, I see. I was hoping there would be some compiler directive/keyword/function-switch to use in PBP, something like printf in C but this is fine, whatever works ...right?.
Since I need a posible...
I'm trying to print a value in a BYTE sized VAR to a specific place on the LCD.
(a standard 16x2, and using DT's Anypin.php)
I need to get the number right-justified and w/o leading zero's.
I...
Ok, making great progress.
I recieved my development board, plugged everyting in and coded up the demo example again ....and I'm getting text! :)
(woo-hoo!)
I'm getting:
#numbers Hello,...
I'm sorry I don't understand your post, but I tried it with MCRLE_OFF and it makes no difference. I must have some other issues I'm yet unaware of. I have ordered a proper dev board so when that...
Actually I see you have a pull-up on pin 1 and also have pin 7 tied low.
I don't see how pin 7 can be any problem for me but looking at the PCB I notice it doesn't have the pull-up on pin 1.
...
I'll try adding that, thank you. I'm sorry to keep bugging you about this.
The circuit board is an existing design, I'd love to move things but I have to go with the produced PCB. The next...
(sound of crickets chirping....)
Schematic attached.
(Note that in the code I'm not doing anythng with the sensor yet, and it's disconected from AN0 right now)
Yes, when I plug it into another pic controlled unit I get both lines of verbiage expected.
The circuit board has the RW line hard-wired to ground.
Would it be better to re-post this Q over...
I'm still not getting anywhere with this. :o
At this point I've tried so many things I can't tell where I'm at anymore. :(
I think the LCD_Anypin code is working, it compiles w/o error and...
Sorry, never mind that last post.
I realized that I included the files LCD_AnyPin.pbp and VirtualPort.bas (in the files applet) rather than just having them referenced from my *.bas, and that was...
Darrel, so I cut-n-pasted your exact code into a new project, changed only the LCD VARs, and am now getting much farther than before...but...
Now I'm getting stuck when LCD_Anypin.pbp compiles,...
Ah... got it!
Sorry for the apparent trouble Darrel. Thanks for walking me through it, I appreciate your time very much, and I appreciate your work on this code.
I must have some other issue at hand then if it's really that simple.
Just for the sake of it I created a new project with the following minimal code, it still fails:
(again MPLAB v8.40, PBP...
I'm sorry, I should have posted a code snippet for you to see, I already did define them, is a "declaration" different that this?:
; Define LCD registers and bits
DEFINE LCD_DREG PORTB ;...
I hate to sound like a noob (but I am) so here goes.... :o
I needed to do exactly this in a project, move the LCD data bus to different pins that is, I did the edit, saved the files (yes...