Use the on-board EEPROM. If I remember right, the '84 has 64 bytes available.
Arch
Type: Posts; User: Archilochus; Keyword(s):
Use the on-board EEPROM. If I remember right, the '84 has 64 bytes available.
Arch
Well... when I was writing code for my LANC control a while back, I used some blinking LED's as very basic debugging indicators - it looks like this code does the same.
After various commands, etc,...
LOL - That's how most of my problems get fixed too! :-()
Arch
Hi ghoot,
Not sure if it would save any code space overall, but you might want to look into the "LOOKUP" command too.
Also, in your code where you limit "Refresh" to 8...
Refresh = Refresh +...
Thanks mister_e! That's a great program - sure to used often :-)
Arch
I think it would be very helpful if MELabs offered a PDF manual that could have annotations added - then various users could swap & add annotations.
I'll try 2 & 3...
For CounterA = 1 To 20 ; "CounterA" keeps track of the loop count for the first FOR/NEXT loop
For CounterB = 1 To 10 ; "CounterB" keeps track of the loop count for...
Have you set the device configuration word (or 'fuse') to the appropriate value for the 20MHz osc?
Arch
Have you defined all the variables? ie:
B0 VAR BYTE
B1 VAR BYTE
etc
... or included the appropriate 'include' file for Basic Stamp compatibility?
Arch
Good to hear you found the problem :-)
I've never figured out why the line numbers don't match up, but the problem is usually nearby somewhere - as you found out.
Arch
Hi Alec,
Assuming you're using PM (not MPASM), you can find a list of error descriptions in your PBP directory in a file called "pm.txt" (sometimes the descriptions don't help all that much)....
Not as cheap as the LDR... TAOS (Texas Advanced Optical Systems - or something like that) has some light-to-voltage & light-to-frequency converters for a few US$.
http://www.mouser.com stocks...
Here is a small refinement to your IF-THEN-ENDIF
Temp = Seconds + Minutes + Hours + Seconds_Alarm_Set_Point + _
Minutes_Alarm_Set_Point + Hours_Alarm_Set_Point
IF Temp <> 0...
Another way to do it that might work...
Since you're checking to see that all those variables = 0, you could just first add them all (making sure that the Temp variable size won't be exceeded), then...
Hi Woodzy,
Have you tried compiling some known good sample code as a test?
If you've already tried that - can you post your code - maybe somebody can help out.
Arch
The subroutine executes just like a regular section of code. Hardware PWM will keep on going as usual (unless your sub changes the HPWM settings). Even the 'pause' would not stop HPWM (It's...
Hi Bill,
Site still appears for me...
http://www.picallw.com/
But the software is no longer updated and may not support newer devices.
EDIT
Just checked version 1.6, and it does show...
As far as any possible differences, Microchip has documents on their web site that discuss 'migrating' to newer and/or upgraded devices.
Arch
Hi emmett brown
Try:
IF b0 < b1 THEN
pval = pval -1 'run pval backwards
EndIF
Hi Blaine,
That's a fairly easy one - just start a thread with an appropriate title, and start adding ideas as they come up.
Problem is that after a while the thread will be as long as an average...
Hi jetpr,
Here's a link with some info:
http://www.rentron.com/Myke1.htm
Arch
I've not used ADCIN much, but here's some other things to check:
I don't see anywhere in your code that sets the pins as inputs - you might try setting up the TRISIO register as needed.
In the...
Hi Scott,
I'm not too familiar with the '675, but don't you need to set your ANSEL register so that GP.1 is an analog input? It looks like only GP.0 is set as analog in.
Arch
Hi waterlee2000,
This section is devoted to peoples "wishes" for PBP functionality. For help with code, try one of the other sections, like the PicBASIC or PicBASICPro forums.
Arch
Hi modifyit,
If you check the app note section:
"FIGURE 1: FIRMWARE FLOW DIAGRAM"
there is a flowchart describing how the code works... RESET > TestWDT > Etc
This is from the 12F675 data...