In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Vertex78, Here it is in SX/B. You might have to tweak the PAUSEUS value to get EXACTLY the phase you want. [code] DEVICE SX48, OSCHS3 FREQ 80_000_000 PWM1 PIN RB.6 OUTPUT PWM2 PIN RC.2 OUTPUT PROGRAM Start Start: TIMER1 PRESCALE, 6 ' 1:64 TIMER2 PRESCALE, 6 ' 1:64 TIMER1 PWM, 1120, 2240 TIMER2 PWM, 1120, 2240 TIMER1 CLEAR PAUSEUS 448 TIMER2 CLEAR END [/code] Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=152979#m153227 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)