Hi
I have problem with the 40x2. When i send to a slave (20x2) it works fine, but when i put a adcsetup in the program the i2c stops. (seen on oscilloscope) Did a simple test.
#picaxe 40x2
hi2csetup i2cmaster, %10000000, i2cfast, i2cbyte
pause 2000
do
'adcsetup = 19
pause 100
hi2cout[ 2],2,(b1)
pause 10
inc b1
debug
loop
#picaxe 20x2
'set I2C protocol
pause 300
hi2csetup i2cslave,2
pause 100
do
pause 100
get 2,b0
pause 200
inc b2
debug
loop
#picaxe 20x2
'set I2C protocol
pause 300
hi2csetup i2cslave,2
pause 100
do
pause 100
get 2,b0
pause 200
inc b2
debug
loop
this works. But if i want to use the adcsetup the i2c bus stops working.
What am i doing wrong?
Thanks
I have problem with the 40x2. When i send to a slave (20x2) it works fine, but when i put a adcsetup in the program the i2c stops. (seen on oscilloscope) Did a simple test.
#picaxe 40x2
hi2csetup i2cmaster, %10000000, i2cfast, i2cbyte
pause 2000
do
'adcsetup = 19
pause 100
hi2cout[ 2],2,(b1)
pause 10
inc b1
debug
loop
#picaxe 20x2
'set I2C protocol
pause 300
hi2csetup i2cslave,2
pause 100
do
pause 100
get 2,b0
pause 200
inc b2
debug
loop
#picaxe 20x2
'set I2C protocol
pause 300
hi2csetup i2cslave,2
pause 100
do
pause 100
get 2,b0
pause 200
inc b2
debug
loop
this works. But if i want to use the adcsetup the i2c bus stops working.
What am i doing wrong?
Thanks