I use this code to read the forwardpower
Code:
ADCIN 0, adval ' Read channel 0 to adval
dummy = adval * 5 * 10 ' Multiply to load internal registers with 32-bit value
value = Div32 1023 ' Divide 32-bit value by word and store in word
forwardpower = (value*value)/50
and this for reflected power
Code:
ADCIN 1, adval1 ' Read channel 0 to adval
dummy1 = adval1 * 5 * 10 ' Multiply to load internal registers with 32-bit value
value1 = Div32 1023 ' Divide 32-bit value by word and store in word
reflectedpower = (value1*value1)/50
and the type for SWR is:
..........1 + square root(reflectedpower/forwardpower)
SWR = --------------------------------------------
..........1 - square root(reflectedpower/forwardpower)
Any help how to show the SWR on LCD;
Bookmarks