diff code_part1/OSTC_code_asm_part1/start.asm @ 466:67d908f51e80

cleanup
author heinrichsweikamp
date Sun, 02 Oct 2011 18:01:24 +0200
parents 915e0d38edec
children f53aa96ff2f4
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm	Sun Oct 02 17:54:30 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Sun Oct 02 18:01:24 2011 +0200
@@ -398,7 +398,7 @@
 	bra		start3					; continue with normal start
 
 init:						
-	movlw	b'01101100'		; 4MHz (x4 PLL)
+	movlw	OSCCON_VALUE
 	movwf	OSCCON
 
 	movlw	b'00010001'		; I/O Ports
@@ -420,7 +420,7 @@
 	movlw	b'01000000'		; Bit6: PPL enable
 	movwf	OSCTUNE
 
-	movlw	b'00011111'		; Timer0
+	movlw	T0CON_VALUE		; Timer0
 	movwf	T0CON
 
 	movlw	b'00000111'		; Timer1
@@ -452,7 +452,7 @@
 	movwf	SSPCON1
 	movlw	b'00000000'
 	movwf	SSPCON2
-	movlw	d'8'			; 400kHz I2C clock @ 16MHz Fcy
+	movlw	SSPADD_VALUE	; I²C Speed
 	movwf	SSPADD
 
 	clrf	CCP1CON			; PWM Module off
@@ -471,7 +471,7 @@
 	movlw	b'00001000'
 	movwf	BAUDCON
 	clrf	SPBRGH
-	movlw	d'34'
+	movlw	SPBRG_VALUE
 	movwf	SPBRG
 	clrf	RCREG
 	clrf	PIR1