Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/i2c_eeprom.asm @ 537:3091628b2742
BUGFIX: Spurious logbook read issue
author | heinrichsweikamp |
---|---|
date | Sun, 08 Jan 2012 12:44:51 +0100 |
parents | c512a868937c |
children | a587f491693d |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/i2c_eeprom.asm Wed Dec 21 12:06:27 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/i2c_eeprom.asm Sun Jan 08 12:44:51 2012 +0100 @@ -369,13 +369,13 @@ bsf TRISC,3 ; SCL Input clrf SSPCON1 ; set I²C Mode WAITMS d'10' ; Reset-Timeout for I2C devices - movlw b'00000000' + movlw SSPSTAT_VALUE movwf SSPSTAT movlw b'00101000' movwf SSPCON1 movlw b'00000000' movwf SSPCON2 - movlw d'8' ; 400kHz I2C clock @ 16MHz Fcy + movlw SSPADD_VALUE movwf SSPADD bcf LED_red ostc_debug 'O' ; Sends debug-information to screen if debugmode active