I know you asked not in assembly code ... but ....
You might be interested in an article from Nuts and Volts magazine August 2010 on page 39, called the WatchPuppy. It does pretty much just what you are talking about, and uses a pic chip 16f873 and a UM232R usb to serial converter.
I'm sure it is covered in copyright protection, so I can't attach the article. You would have to find the magazine.
But here is the code:
http://radiosky.com/WatchPuppy/
Last edited by ScaleRobotics; - 11th September 2010 at 02:30.
http://www.scalerobotics.com
Bookmarks