comparison code_part1/OSTC_code_asm_part1/i2c_eeprom.asm @ 595:16f4eafc197e

CNS for pSCR-GF fixed.
author heinrichsweikamp
date Thu, 21 Jun 2012 07:16:11 +0200
parents 77c8ff191cd7
children c50296c3059e
comparison
equal deleted inserted replaced
594:6520bcda1a00 595:16f4eafc197e
320 decfsz i2c_temp,F ; check for timeout during I2C action 320 decfsz i2c_temp,F ; check for timeout during I2C action
321 bra WaitMSSP2 321 bra WaitMSSP2
322 bra I2CFail ; timeout occured 322 bra I2CFail ; timeout occured
323 WaitMSSP2: 323 WaitMSSP2:
324 btfss PIR1,SSPIF 324 btfss PIR1,SSPIF
325 bra WaitMSSP 325 bra WaitMSSP
326 clrf i2c_temp 326 clrf i2c_temp
327 bcf PIR1,SSPIF 327 bcf PIR1,SSPIF
328 nop
328 return 329 return
329 330
330 I2CReset: ; Something went wrong (Slave holds SDA low?) 331 I2CReset: ; Something went wrong (Slave holds SDA low?)
331 clrf SSPCON1 ; wake-up slave and reset entire module 332 clrf SSPCON1 ; wake-up slave and reset entire module
332 ostc_debug 'N' ; Sends debug-information to screen if debugmode active 333 ostc_debug 'N' ; Sends debug-information to screen if debugmode active