Mercurial > public > mk2
changeset 465:915e0d38edec
Merge with 2.01stable
author | heinrichsweikamp |
---|---|
date | Sun, 02 Oct 2011 17:54:30 +0200 |
parents | 86fc79735d3b (diff) 6ad9af3a5771 (current diff) |
children | 67d908f51e80 |
files | code_part1/OSTC_code_asm_part1/definitions.asm code_part1/OSTC_code_asm_part1/start.asm |
diffstat | 2 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/definitions.asm Sun Oct 02 17:52:16 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Sun Oct 02 17:54:30 2011 +0200 @@ -24,7 +24,7 @@ #DEFINE softwareversion_x d'2' ; Software version XX.YY #DEFINE softwareversion_y d'1' ; Software version XX.YY -#DEFINE softwareversion_beta 0 ; (and 0 for release) +#DEFINE softwareversion_beta 1 ; (and 0 for release) #DEFINE max_custom_number d'58' ; Number of last used custom function @@ -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.
--- a/code_part1/OSTC_code_asm_part1/eeprom_rs232.asm Sun Oct 02 17:52:16 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/eeprom_rs232.asm Sun Oct 02 17:54:30 2011 +0200 @@ -126,7 +126,7 @@ movlw b'00001000' movwf BAUDCON clrf SPBRGH - movlw d'34' ; Take care of the baud rate when changing Fosc! + movlw SPBRG_VALUE ; Take care of the baud rate when changing Fosc! movwf SPBRG clrf RCREG clrf PIR1