In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: Nope. I tried the OT9600 and OT1200 previously. I also tried inserting it directly into the SEROUT routine with no sound... Quotes also cause an error if used "OT9600" within the routines. '' ------------------------------------------------------------------------- ' Subroutine Code ' ------------------------------------------------------------------------- '------[ WaitDone ]-------------------------------------------------------- 'Wait for the SoundPAL to stop playing. SUB WaitDone SerialOut "?" 'Send an enquiry. IF check = $FF THEN Goto Exithere ENDIF SERIN iopin, OT9600, check, 2, Waitdone 'Wait 2msec for reply or try again. Exithere: ENDSUB 'Reply received: return. '------[ DoReset ]--------------------------------------------------------- 'Reset the SoundPAL. SUB DoReset DO UNTIL iopin = 1 LOOP 'Make sure SoundPAL is powered up. SEROUT iopin, OT1200, 0 'Output 9 low bits at 1200 baud (i.e. a 7.5ms pulse). ENDSUB '------[ SerialOut ]--------------------------------------------------------- 'Serial out to the SoundPAL. SUB SerialOut Char=__PARAM1 SEROUT iopin,OT9600,Char ENDSUB ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=230277#m231298 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)