Timing in PICBasic Pro commands


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    freelancebee's Avatar
    freelancebee Guest


    Did you find this post helpful? Yes | No

    Question 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

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Tons of different way i guess but one of my favourite is an external RTC like DS1307. You can even use an internal timer to do it too. OR depending what else your PIC do, do everything in a loop with a mix of PAUSE and incrementing few variables like secondes/minutes/hours/day/week/month/year
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    and that thread should give you an easy to implement solution
    http://www.picbasic.co.uk/forum/showthread.php?t=190
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PicBasic Pro Demo
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th August 2009, 19:10
  2. Replies: 4
    Last Post: - 5th October 2008, 09:11
  3. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  4. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 17:15
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts