In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Mag748 wrote: [3]Hello,[/3] [3] [/3] [3]I currently have a fully functioning SX program that I would like to upgrade. Right now, the only thing that it does is receive a serial stream and decodes the data, updating an LED display. I would like to add a function which will send a serial stream as well as listen to the original incoming serial stream for instructions. The serial stream that I would like to send is midi time code. So I would need some way of keeping track of time. I looked around for a 'stopwatch' chip or something that keeps time faster than just the DS1620 (at least 1/30 of a sec). Using the ISR that I already have (which I am using to receive the serial data) can I use it to send data as well? Luckily it's the same baud and everything. So, ideally, is there a way to send, receive, AND keep track of time all in the same ISR?[/3] [3] [/3] [3]I could probably figure out the keeping track of time part fairly easy. Simply knowing how many clock cycles equal one thirtieth of a second. And then keeping a counter or something. I am not that experienced with interrupts though.[/3] [3] [/3] [3]Thank you for reading,[/3] [3]Marcus[/3] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=151101 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)