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

Software RS232 resource usage

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



Joined: 03 Feb 2006
Posts: 13
Location: Minnesota

View user's profile Send private message

Software RS232 resource usage
PostPosted: Thu Apr 05, 2007 8:21 am     Reply with quote

I've added a simple software RS232 port on an unused GP I/O pin. The only thing it's being used for is to send out two bytes at startup. After these two bytes are sent it's not used again. The hardware UART is being used continuously in the normal program.

My questions: Will any micro resources (timers, etc...) be affected by this software port being enabled even though it's never used again after startup? Is there a way to disable this software UART?
Ttelmah
Guest







PostPosted: Thu Apr 05, 2007 9:33 am     Reply with quote

Nothing is affected.
The 'soft' output routine, generates a very simple shift, combined with delays and simple bit outputs. The delays are pure 'count' type delays, with no timer resources used. This is the 'downside' of the software output, when other things are going on (it'll be affected by interrupts etc., destroying the timings), but the 'plus', is that no hardware resources are used.

Best Wishes
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