deperkin
Member level 2
scaling question:
I have some code that is refurbished from a pic using 4MHz clock.
I now want to use the code for an 18F2550 that has an internal oscillator of 20MHz.
From my limited understanding this means that I am getting a 5MHz timing on the instructions.
How do I prescale this in order to get the instruction timing to 1MHz???
which would allow me to reuse my existing code (for a universal remote) without having to change much.
(i.e. the pic would be timing like a 4Mhz clock).
Thank all !
I have some code that is refurbished from a pic using 4MHz clock.
I now want to use the code for an 18F2550 that has an internal oscillator of 20MHz.
From my limited understanding this means that I am getting a 5MHz timing on the instructions.
How do I prescale this in order to get the instruction timing to 1MHz???
which would allow me to reuse my existing code (for a universal remote) without having to change much.
(i.e. the pic would be timing like a 4Mhz clock).
Thank all !