Hi Agusto Q: how much accuracy do you need for C value ? I presume that 0 < C < 1 for normal situations jon --On Saturday, August 23, 2003 5:02 AM -0500 CVT-SSS wrote: > Hi to all, > > I4m just making an RF sensor with a PIC16F877A, reading Forward RF ( FWD > ) in AN0 and Reverse RF ( REV) in AN1 ports. > I have a max value of 1024 * ( 4.5 Volts / 5 Vots Ref. ) in each port, > giving me a max value of 921 in each case. > I need to get the value of the following formula: > > SWR = 100 * (( 1 + C ) / ( 1 - C )) > > where > > C = SQRT( REV / FWD ) > > Question is how to calculate the square root of ( REV / FWD ) ? > > I was trying to develop a sum of series to get the SQRT but it is not > enough accurate and interpolation method is too slow. > > Some ideas ? > > Regards, > > Augusto > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body