The next two steps . . . get out an oscilloscope and measure:
1) the function generator frequency
2) tx/rx on the encoder
3) tx/rx on the IrDA
This should help you narrow the problem down.
we tried what you said above and linked TXIR and RXIR to form a loop in order to test on the encoder/decoder. However, even though we got some wave for the RX, we still got no buffer going into UART. Is there away to tell where the signal got messed up and what should be expect to see from the oscilloscope?
Would you suggest us using software select mode or hardware select mode?
I am not sure what kind of micro-controller you are using but I am still wondering if we need to do some software implementation for the encoder/decoder to work.
Thanks for your reply!