You need to ensure that your input (to Pin D4) swings from 0v to the supply voltage of the micro. Typical RF frequency generators put out a lower voltage level than this. You may need to amplify the input signal before it goes into the micro.
↧