Shop OBEX P1 Docs P2 Docs Learn Events
PSB2_i2cDriver question for Ray — Parallax Forums

PSB2_i2cDriver question for Ray

T ChapT Chap Posts: 4,223
edited 2015-02-20 07:06 in Propeller 1
I need fast i2c for the main EEPROM, but the Newhaven i2c driver is also on SCL 28 so I cannot get the PASM i2c to work at the same time. The way I see it there are several options, but maybe you might have a better suggestion before I get started. If I merge the PSB2_i2cDriver into the PASM_i2c_Driver(not sure if this is possible yet), then maybe this will be the best plan, assuming the NH can work at the same speeds. The other options are to stop and start the PSB2_i2cDriver (re initialize ) and the PASM i2c driver as needed. The main loop is reading cap touch back to back, and the EEPROM only needs to be read if there is a touch received and some graphics need to be read in from EEPROM or some data needs to be stored to the EEPROM if some settings are changed via the display. So this means the normal state is reading the cap touch, and very rarely is reading or writing to EEPROM. But when it does read from EEPROM, the SPIN i2c is far too slow as far as loading in bitmaps. I will test to see what latency the stop and starting of fast/slow i2c methods introduces.
Sign In or Register to comment.