Timing in PICBasic Pro commands
Hi All:
Thank you for your threads and posts by reading
them I was able speed up process of learning PICs.
I could not find information about time intervals
or chart for specific statements or commands.
In applications where time is critical is best way
to calculate time needed for specific group of
PicBasic statements or group of assembler
statements or single command to avoid a mistakes.
In Visual Basic Timer function can be used
to record the starting and ending times
for a series of commands.
What kind of software tools I able to use
when compile program to calculate time
needed to run specific group of commands?
I appreciate your help.
Best Regards,
Leonid
Timing in PICBASIC commands
Hi Bruce:
Thank you for your time.
The code you wrote will really help.
Thank you again.
For some kind of tasks need 36 hours to complete production cycle.
During this working time cycle PIC has to work by changing output codes
depends from pre-programmed time intervals for example 90 minutes and
preprogrammed speed, temperature, or current=load and real conditions
on sensors.
Time=0
Start speed1, temperature1, or current=load1......
Time 90 min
Speed2, Temperature2, Current load 2......
Time 180
Speed3, Temperature3, Current load3.......
....
Time 2160 min = 36 hours
Stop
What is your suggestion or what kind solution for 36 hour cycle is real
and cheapest one:
- use external pre-programmed IC Timer on interrupt
- Use external EEPROM as counter and flag on interrupt
- use sources of PIC - EEPROM counter and flag on interrupt
Thank you again.
Best Regards,
Leonid