From 3b7e9c67debda48306a611168611505657dba215 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 30 Jun 2005 00:10:53 +0000 Subject: [PATCH] compiles --- cebpic/i2c-test-reply.asm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cebpic/i2c-test-reply.asm b/cebpic/i2c-test-reply.asm index f191ea1..82ec2a9 100644 --- a/cebpic/i2c-test-reply.asm +++ b/cebpic/i2c-test-reply.asm @@ -440,15 +440,14 @@ vector_interrupt_low ; to the relevant ISR. That routine will return with retfie and if ; there was another interrupt we will re-enter, which is OK. - btfsc PIR1,SSPIF,0 ; check if MSSP interrupt generated, if so +; btfsc PIR1,SSPIF,0 ; check if MSSP interrupt generated, if so ; goto i2c_isr ; I2C ISR will check whether master or slave - goto panic ; nothing should generate these ATM.... btfsc PIR1,5,0 ; check for serial receive interrupt goto serial_rx_isr ; receive serial debug 'L' ; else panic - interrupt but don't know why - goto panic + panic morse_IL ;---------------------------------------- enable_interrupts @@ -522,14 +521,14 @@ serial_rx_isr debug 'f' ifbit1 SSPCON2,ACKSTAT ; check for ack from slave (=0), if no - goto panic ; then panic, else + panic morse_SA ; then panic, else debug 'g' movff RCREG,SSPBUF ; copy byte from serial to i2c buffer call wait_for_i2c_interrupt btfsc SSPCON2,ACKSTAT,0 ; check for ack from slave (=0), if no - goto panic ; then panic, else + panic morse_SD ; then panic, else bsf SSPCON2,PEN,0 ; i2c STOP call wait_for_i2c_interrupt -- 2.30.2