The following code compiles and runs fine under PBP 2.47
but hangs forever in PBP 2.50
B0 = $AA
Addr = 65534
I2CWRITE SDA1,SCL1,RevABase,addr,[B0]
Pauseus 20
I2CWRITE SDA1,SCL1,RevBBase,addr,[B0]
PAUSEus 20
I2CWRITE SDA1,SCL1,RevCBase,addr,[B0]
PAUSEus 20
I2CREAD SDA1,SCL1,RevABase,addr,[B1]
PAUSEus 20
I2CREAD SDA1,SCL1,RevBBase,addr,[B2]
PAUSEus 20
I2CREAD SDA1,SCL1,RevCBase,addr,[B3]
The I2C device is an EEPROM.
"RevxBase" is a BYTE variable
"Addr" is a word variable
Clock is 40Mhz, but I have the define "I2C_SLOW 1"
2.2K pull-ups are used on SDA and SCL
PIC is 18F8722
The program hangs whenever I do a I2CWRITE -or- I2CREAD
Has anyone else had this problem with 2.50?
Bookmarks