comparison 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
comparison
equal deleted inserted replaced
462:32e1174fb89e 463:86fc79735d3b
38 ;#DEFINE __DEBUG ; 38 ;#DEFINE __DEBUG ;
39 ;#DEFINE DISPLAY_TEST ; Enables Display-Test in RAW data menu 39 ;#DEFINE DISPLAY_TEST ; Enables Display-Test in RAW data menu
40 40
41 #DEFINE logbook_profile_version 0x21 ; Do not touch! 41 #DEFINE logbook_profile_version 0x21 ; Do not touch!
42 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce 42 #DEFINE T0CON_debounce b'00000000' ; Timer0 Switch Debounce
43
44
45 ; CPU Speed Settings
46 ; Standard 16MHz mode
47 ; #DEFINE SPBRG_VALUE d'34'
48 ; #DEFINE OSCCON_VALUE b'01101100' ; 4MHz (x4 PLL)
49 ; #DEFINE SSPADD_VALUE d'8' ; 400kHz I2C clock @ 16MHz Fcy
50 ; #DEFINE T0CON_VALUE b'00011111' ; Timer0
51 ; Experimental 32MHz mode
52 #DEFINE SPBRG_VALUE d'68'
53 #DEFINE OSCCON_VALUE b'01111100' ; 8MHz (x4 PLL)
54 #DEFINE SSPADD_VALUE d'16' ; 400kHz I2C clock @ 32MHz Fcy
55 #DEFINE T0CON_VALUE b'00010000' ; Timer0
43 56
44 #DEFINE FT_SMALL .0 57 #DEFINE FT_SMALL .0
45 #DEFINE FT_MEDIUM .1 58 #DEFINE FT_MEDIUM .1
46 #DEFINE FT_LARGE .2 59 #DEFINE FT_LARGE .2
47 60
95 CONFIG LVP = OFF ;Single-Supply ICSP disabled 108 CONFIG LVP = OFF ;Single-Supply ICSP disabled
96 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset 109 CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset
97 110
98 ;============================================================================= 111 ;=============================================================================
99 112
100 ;#include "../OSTC_code_c_part2/shared_definitions.h" 113 #include "../OSTC_code_c_part2/shared_definitions.h"
101 #include "shared_definitions.h" 114 ;#include "shared_definitions.h"
102 115
103 ;============================================================================= 116 ;=============================================================================
104 ; Reserve space for C-code data space. Eg.when calling log. 117 ; Reserve space for C-code data space. Eg.when calling log.
105 ; Note: overlayed with md_hash temporary space. 118 ; Note: overlayed with md_hash temporary space.
106 c_code_data_stack EQU 0x800 119 c_code_data_stack EQU 0x800