DccPlusPlus / BaseStation

DCC++ Base Station for Arduino Uno and Mega
207 stars 150 forks source link

Clock Speed Change - Possible Issues #21

Open cescalemodels opened 7 years ago

cescalemodels commented 7 years ago

For the DCC++ Raspberry Pi HAT I'm developing I opted to use an ATmega328P clocked at 8MHz because I wouldn't have to use any level shifters.

I forked the repository and made the required changes to the timer setups and board definitions for the new clock speeds, but my question is this: with half the amount of time to execute all of the required commands of the original software, will it still be able to keep up with all of the commands, or will it get bogged down into endless ISR's, leaving no time at all for the code to run?

If I won't be able to make the code work with the slower speed, then I will modify my design. I'm considering the possibility of overclocking as well, but it would be so much nicer if the code would just work as is.

Thanks!

VassilyDev commented 4 years ago

Do you have tested it? It might be useful for me too.