USB watchdog timer


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Why not just increment a VAR with a timer. When a Keep Alive is received the VAR drops back to zero. If the VAR reaches "X" then re-boot.

    No ASM if PBP interrupts are used.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Sep 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    yes that's the basic idea in the code. the core code like that seems to be the easy part - how are you going to;

    1. listen to a USB port for certain event? what will the event look like, what will the PICBASIC code look like?

    2. Write a program in Windows(7) that does the PC side of sending that 'event' down the USB cable which ultimately resets the watchdog timer etc.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This might help you out.
    http://www.picbasic.co.uk/forum/cont...ns-for-Dummies!

    USBIN on the MCU side. A simple program on the PC to send data.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    This might help you out.
    http://www.picbasic.co.uk/forum/cont...ns-for-Dummies!

    USBIN on the MCU side. A simple program on the PC to send data.
    that's a great little article! .. I think I need to learn VB to write a small app that sends something down the COM port ...

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Here just happens to be a thread on VB and serial running.

    Might find everything you need. One stop shop.

    Let us know how it goes. Intersting project.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Sep 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Here just happens to be a thread on VB and serial running.
    ?? where :-)

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/showthread.php?t=13609

    Sorry , that is the second time I did that today.
    Dave
    Always wear safety glasses while programming.

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