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

IR bootloader - possible? Programming via IR

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



Joined: 27 Dec 2006
Posts: 28

View user's profile Send private message

IR bootloader - possible? Programming via IR
PostPosted: Sat Oct 06, 2007 7:00 am     Reply with quote

Hi, after searching the web, I can't seem to find any bootloaders that allow programming via IR serial RS232 type format. Would it just involve putting an IR sensor on the line that would be used for the line in serial?

Has anyone done this?

I know there may be fear of unintentional programming form an outside source, but I could include a hardwired preamble or code to get it into programming mode.

Here is the only thing I found.
http://list.picbasic.com/forum/messages/6851/6924.html?1074995343

I would be interested in the 16F876.
joven



Joined: 30 Jan 2007
Posts: 56
Location: Viana do Castelo - Portugal

View user's profile Send private message

PostPosted: Sat Oct 06, 2007 1:31 pm     Reply with quote

Hi

yes, I think.
I have tested the bootloader of 16f877 by RF 433.

use the same as RS232 but changes the wires by two encoder and IR transivers.
anestho



Joined: 27 Dec 2006
Posts: 28

View user's profile Send private message

PostPosted: Mon Oct 08, 2007 11:09 am     Reply with quote

Will I need to have a Rx and Tx lines on the receiver end? I only need to communicate 1 way from PC to receiver, via IR. Otherwise, I will need to use another pin to Tx using a IR LED.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Oct 08, 2007 4:17 pm     Reply with quote

Most rs232 bootloaders use Rx and Tx for two reasons:
1) Flow control; Programming the flash memory takes some time and you want to tell the PC to stop sending data.
2) Error correction; In case of communications errors the PIC needs some mechanism to tell the PC to send data again.

These same problems will appear in the other use you have for the IR interface. Maybe you can apply the same solution you found there for the bootloader?
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