In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Peter (pjv), Here's the relevant part of Bean's PDf file: [quote=""]The required interrupt rate depends on the PWM output rate, the interrupt rate must be (Hertz * Levels). So let's say you wanted to create an output with a 4KHz update rate using 8-bits. Eight bits is 256 levels, so the interrupt rate would have to be (4000 * 256) or 1,024,000. If you are running the SX from it's internal clock at 4MHz you can see that there would be less than 4 cycles available per interrupt. 4,000,000 / 1,024,0000 = 3.90625. It is clear that we would need to sacrifice either update speed or resolution to be able to use an interrupt for generating this signal.[/quote] Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=366927#m367111 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)