In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: How about a set of standard VPs for the compiler, much like the Javilin does. SEROUT, SERIN, PULSOUT, PULSIN, ANALOGIN, RCTIME, FREQOUT, etc. Something like: INTERRUPT 200000 VPSERIN SInPin, "T2400", array_buffer, byte_head, byte_tail, byte_bitCnt VPFREQOUT SFreqPin, 1000, byte_progress RETURNINT Start: IF byte_head <> byte_tail THEN char = array_buffer[byte_tail] INC byte_tail byte_tail = byte_tail AND $0F ' Do something with "char" ENDIF I guess each VP would have to take the same number of cycles no matter what to keep everything sync'd. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=157842#m160919 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)