CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

IrDA with PIC?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JULIEN LAFFITTE



Joined: 28 Mar 2007
Posts: 20

View user's profile Send private message

IrDA with PIC?
PostPosted: Mon Mar 22, 2010 10:19 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Mar 22, 2010 7:57 pm     Reply with quote

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.

You may want to go through some of these while writing your stack:
Fundamentals of the Infrared Physical Layer: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en012144
Resource: http://tldp.org/HOWTO/Infrared-HOWTO/index.html
Wiki: http://en.wikipedia.org/wiki/Infrared_Data_Association

Rohit
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Mon Mar 22, 2010 8:06 pm     Reply with quote

This seems useful too:

http://www.ccsinfo.com/forum/viewtopic.php?t=32186&highlight=irda


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

Rohit
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group