In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: If you are using Interrupts in your program then you could have the ISR routine control the PWM of your display. Just have it keep a count and toggle on/off the pin for the display. That might be the easiest way to go. The hardware timers of the SX48 are also another option. They work great but there are a couple of issues to watch out for when using them. The one that got me was that they can also generate Interrupts upon certain timer events. If you have ISR based serial code that doesn't expect this to happen it will trash your communication. I ran into this for a project (BOB in SERVO magazine) where I used the timer to generate the PWM to control a motor. I just had to mask off any interrupts from the timers (since I didn't care about them) so that the only interrupts being generated were ones that I expected and had code to handle in the ISR. Once that was done the communication issue was fixed. Another issue to watch out for is how often you update the timers. If you do it too often you can actually reset the count each time and never let the timer count up to toggle the state. Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=302127#m302149 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)