If you mean in hardware, please look at previous post:
http://www.picbasic.co.uk/forum/show...1&postcount=66
The chips include a logarithmic amplifier. So you take the output of this amplifier and feed it in the analog converter of the PIC. At the input you feed the analog signal either directly or through an active rectifier.
Ioannis
Bookmarks