Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

We have a pair of IrDA and its encoder/decoder. After reading the datasheet, we still dont know how to interface IrDA with En/Decoder.
Here is our current connection: enter image description here

When using BAUD rate 9600, we are not getting any readable data from UART on arduino. The buffer is alway full or 0. We don't know whether it's the en/decoder or IrDA transceiver that is causing the problem.
Is this the right way to interface? Any advice on how to go about debugging this?

Related datasheet and info
IrDA Vishay TFDT4500 : http://www.freeweb.hu/bat21/irda/tfd_4.pdf
En/Decoder MCP2120 : http://ww1.microchip.com/downloads/en/DeviceDoc/21618b.pdf

share|improve this question

1 Answer

To trouble shoot i would hook up the TXIR RXIR(mcp2120) pins together and make a loop back device. Just to make sure your encoder/decoder works, what you send to the Chip should be echoed back to the uC. Once you confirm that the TX RX lines are working, you would then test to see if your IR sensors are transmitting and receiving by using a digital camera or webcam. The other way to debug this is if you have an oscilloscope on hand to check the data lines.

all your connections and pins do look correct, and your clock source is correct for your baud pins for 9600

share|improve this answer
Thanks! I'll do the loopback method, and see how it goes. – user3383 Mar 16 '11 at 16:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.