hello
I know 16 bit PIC have built in IrDA function but I can't use this pic family for the moment.
I have searched for code for using directly IrDA transceiver (TFDU6300) without encoder/decoder chip but I don't find it. Does anybody have code for IrDA encoding/decoding?
thanks
Rohit de Sa
Joined: 09 Nov 2007 Posts: 282 Location: India
Posted: Mon Mar 22, 2010 7:57 pm
There are a few ways you can go about doing IrDA. One, like you mentioned, is using certain 16bit processors with built-in IrDA. Another is to use a hardware protocol handler like the MCP21xx family. This unloads all of the processing onto external hardware and presents your microcontroller with simple UART data. The last option would be to roll your own code to decode the protocol (ie you write the stack in software). This is the most tedious. I don't know if a CCS-based software stack has been developed.
You will have to write at least the IrPHY, IrLAP, and IrLMP, which are layers in the protocol, and then write one additional layer for actual data handling.
One question - do you necessarily have to implement IrDA, or are you just looking for high speed IR data transfer? I ask because IrDA, like most other standardized protocols, has a lot of overhead that may be unnecessary in simple cases. If you just want PIC-to-PIC IR comms then you can look at http://avtanski.net/projects/lcd_serial/#DATA
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum