Ioannis has a point (but maybe not the one I initially thought he was making... ).
What about:
if (a.highbyte xornot b.highbyte) and (a.lowbyte xornot b.lowbyte) then
' do stuff
endif
Type: Posts; User: Phil Moore; Keyword(s):
Ioannis has a point (but maybe not the one I initially thought he was making... ).
What about:
if (a.highbyte xornot b.highbyte) and (a.lowbyte xornot b.lowbyte) then
' do stuff
endif
Hi Bill,
How about:
if (A XORNOT B) then something
XORNOT is a logical comparison testing for equality basically...
Phil.
OK,
So what you really want is a SLA battery charge circuit driven from a solar panel. Why didn't you say so? :)
Now, I'm no battery expert, but from what I understand, (sealed) lead acid...
Ambrogio,
Use a switch mode regulator. I've had great success with the LM2576.
http://www.national.com/mpf/LM/LM2576.html
You'll need 2 x low ESR caps, 1 x 47uH..100uH choke and a fast...
How about a real string type and some string manipulation & comparison functions?
I know I could write them myself (and have done in the past), but I live in hope!
And I don't feel like...
Hey Bill,
Remember the piezo driven off a MAX232? ... +/- 10V for not much extra work. Just reference the output to ground to get +10V. You have any spare lines on your level converter?
Phil.
And make sure that all your DEFINE statements are in upper case, ie:
Define LCD_DREG PORTD
should be
DEFINE LCD_DREG PORTD
(Skimask & Bruce pointed this out to me last week!)
Aaaaarrrrggggghhhhhh!
That was it - thanks Bruce & Skimask - make sure WHOLE DEFINE is in UPPERCASE.
Mutter, mutter, mutter! Too many IDEs, too many languages, not enough grey cells!
Again,...
Yeah, saw that too, changed define to DEFINE both times (double checked with Notepad).
No joy.
I'm just going to stick with Serout2 for now - it's less painful! I'll sort out DEBUG later.
Thanks...
Skimask,
Also changed ADCON0 to 0 (just in case),
Serout2 works OK (same pin) but that's not the point!
Sanity rapidly departing, need to go away and have a think.
Thanks for your help - another...
Hi Skimask,
Changed ADCON1 to $f, but no joy (if that's what you meant).
Phil.
Hi Skimask,
I did change over from PM to MPASM as I was doing other stuff with 18F chips, however, the only config change I made to the 16F737.INC file was to set clock to INTRC with IO. This is...
Code below for 16F737 compiles & runs just fine under PBP 2.46. Compile under 2.50a and everything runs OK *EXCEPT* DEBUG (nothing changes on debug pin).
Running MicroCode Studio v3.0.0.5 & WinPIC...