|
|
View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19219
|
|
Posted: Sun Mar 28, 2021 12:40 am |
|
|
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
|
|
Posted: Sun Mar 28, 2021 4:48 am |
|
|
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. |
|
|
|
|
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
|