Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/definitions.asm @ 463:86fc79735d3b
Experimental 32MHz mode
author | heinrichsweikamp |
---|---|
date | Tue, 27 Sep 2011 22:23:12 +0200 |
parents | f4fbda6db91c |
children | 915e0d38edec |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/definitions.asm Sun Sep 25 10:30:53 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Tue Sep 27 22:23:12 2011 +0200 @@ -41,6 +41,19 @@ #DEFINE logbook_profile_version 0x21 ; Do not touch! #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce + +; CPU Speed Settings +; Standard 16MHz mode +; #DEFINE SPBRG_VALUE d'34' +; #DEFINE OSCCON_VALUE b'01101100' ; 4MHz (x4 PLL) +; #DEFINE SSPADD_VALUE d'8' ; 400kHz I2C clock @ 16MHz Fcy +; #DEFINE T0CON_VALUE b'00011111' ; Timer0 +; Experimental 32MHz mode + #DEFINE SPBRG_VALUE d'68' + #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL) + #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy + #DEFINE T0CON_VALUE b'00010000' ; Timer0 + #DEFINE FT_SMALL .0 #DEFINE FT_MEDIUM .1 #DEFINE FT_LARGE .2 @@ -97,8 +110,8 @@ ;============================================================================= -;#include "../OSTC_code_c_part2/shared_definitions.h" -#include "shared_definitions.h" +#include "../OSTC_code_c_part2/shared_definitions.h" +;#include "shared_definitions.h" ;============================================================================= ; Reserve space for C-code data space. Eg.when calling log.