In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Use the normal math rules: Step 2: (2*Vdd) - (2*Uinmin) Step 3: Vdd - ( 2^(N-1) * ( Uinmax - Uinmin ) ) Step 4: N is bit resolution, so 8 for byte, 16 for word, 10 for 10bits ADC. Fs is interrupt frequency in Herz. For example, if FREQ = 50MHz and intperiod=217 (prescaler 1:1) then Fs = 50MHz/217 = 230415 Hz With Fs in Herz and R in ohms yields C in Farad With Fs in Megahertz and R in ohms yields C in microfarad regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=311165#m311331 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)