comparison code_part1/OSTC_code_asm_part1/start.asm @ 537:3091628b2742

BUGFIX: Spurious logbook read issue
author heinrichsweikamp
date Sun, 08 Jan 2012 12:44:51 +0100
parents 33abbc08f01e
children ab2686087bce
comparison
equal deleted inserted replaced
536:e77df4e2d025 537:3091628b2742
163 163
164 restart: 164 restart:
165 movlw b'00000011' 165 movlw b'00000011'
166 movwf T3CON ; Timer3 with 32768Hz clock running 166 movwf T3CON ; Timer3 with 32768Hz clock running
167 clrf TMR3L 167 clrf TMR3L
168 nop
168 clrf TMR3H 169 clrf TMR3H
169 bcf LED_red 170 bcf LED_red
170 bcf LED_blue ; all LEDs off 171 bcf LED_blue ; all LEDs off
171 GETCUSTOM8 d'48' ; time correction value 172 GETCUSTOM8 d'48' ; time correction value
172 movff WREG, time_correction_value ; store in Bank0 register 173 movff WREG, time_correction_value ; store in Bank0 register
472 movwf ADCON1 473 movwf ADCON1
473 movlw b'10001010' ; Right justified 474 movlw b'10001010' ; Right justified
474 movwf ADCON2 475 movwf ADCON2
475 476
476 clrf SSPCON1 ; Set I²C Mode 477 clrf SSPCON1 ; Set I²C Mode
477 movlw b'00000000' 478 movlw SSPSTAT_VALUE
478 movwf SSPSTAT 479 movwf SSPSTAT
479 movlw b'00101000' 480 movlw b'00101000'
480 movwf SSPCON1 481 movwf SSPCON1
481 movlw b'00000000' 482 movlw b'00000000'
482 movwf SSPCON2 483 movwf SSPCON2