Hi,
I've searched around but can't seem to find the correct code to allow me to change the clock speed on the Teensy 3.5
I've tried the following, but this actually looks like its for an older board and the compiler complains about the CLKPR being undefined.
Would someone be able to confirm the correct method to change the clock including the options for overclocking.
#define CPU_PRESCALE (CLKPR = 0x80, CLKPR = )
#define CPU_16MHz 0x00
#define CPU_8MHz 0x01
#define CPU_4MHz 0x02
#define CPU_2MHz 0x03
#define CPU_1MHz 0x04
#define CPU_500kHz 0x05
#define CPU_250kHz 0x06
#define CPU_125kHz 0x07
#define CPU_62kHz 0x08
then call up..
CPU_PRESCALE(CPU_16MHz);
I've searched around but can't seem to find the correct code to allow me to change the clock speed on the Teensy 3.5
I've tried the following, but this actually looks like its for an older board and the compiler complains about the CLKPR being undefined.
Would someone be able to confirm the correct method to change the clock including the options for overclocking.
#define CPU_PRESCALE (CLKPR = 0x80, CLKPR = )
#define CPU_16MHz 0x00
#define CPU_8MHz 0x01
#define CPU_4MHz 0x02
#define CPU_2MHz 0x03
#define CPU_1MHz 0x04
#define CPU_500kHz 0x05
#define CPU_250kHz 0x06
#define CPU_125kHz 0x07
#define CPU_62kHz 0x08
then call up..
CPU_PRESCALE(CPU_16MHz);