From c0b276fd8b80014971def43b654fbcdcaa4d433a Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 13 Feb 2005 22:54:04 +0000 Subject: [PATCH] I2C_CTRL is not in access bank --- cebpic/i2c-test.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cebpic/i2c-test.asm b/cebpic/i2c-test.asm index 3ad30c1..513265d 100644 --- a/cebpic/i2c-test.asm +++ b/cebpic/i2c-test.asm @@ -124,7 +124,7 @@ vector_reset ;---------------------------------------- main banksel I2C_CTRL ; ser BSR=i2c BSR (4) - btfsc I2C_CTRL,I2C_CTRL_MASTER ; check =master?, if so + btfsc I2C_CTRL,I2C_CTRL_MASTER,1 ; check =master?, if so goto master_main ; goto master main routine goto slave_main ; elso goto slave main routine @@ -329,7 +329,7 @@ i2c_setup bcf IPR1,SSPIP,0 ; make interrupt low priority ; are we master or slave ? - btfss I2C_CTRL,I2C_CTRL_MASTER ; test whether PIC is master + btfss I2C_CTRL,I2C_CTRL_MASTER,1 ; test whether PIC is master goto i2c_setup_if_master goto i2c_setup_if_slave -- 2.30.2