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

Serial interrupt RX-C7 crashes after sending TX-C6 char PC
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19219

View user's profile Send private message

PostPosted: Sun Mar 28, 2021 12:40 am     Reply with quote

Generally only ever use FAST_IO, if you must. Certain things like byte
wide read of an optical encoder, where other pins are used for output.

The key lesson, if if you use FAST_IO, you _must_ get the settings right.
This means reading the data sheet, for every peripheral, and checking
that the settings are correct to allow it to work.
Now a lot of 'newer' chips, if you enable a peripheral, doing this overrides
the TRIS setting for this. On older chips like this one, this does not happen.
There is a small ROM size increase, but this should be very small. If it is
large, it suggests you have a lot of places where the TRIS is being changed.

For the modern compilers, I'd say that 99% of code should simply sit
with the default standard_io.
temtronic



Joined: 01 Jul 2010
Posts: 9102
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Mar 28, 2021 4:48 am     Reply with quote

Something else to consider is that modern PICs can run faster, so the time to execute the 3-4 extra lines of code is insignificant in most cases.
I see you're running the 876 at 10MHz, if you go to the max (20 MHz), you'll double the speed (simple xtal change) and be able to get more done in a shorter time.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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