Hello,
I want to store a sequence of characters sent to i2c to a 20X2 slave ( by a 20X2 master ) to treat them later ...
Is there a way to add a delay between sending each character ( currently about 120 µS @ 8 Mhz) because it seems insufficient time to perform the interruption routine !
Otherwise, would you know a simple way to perform this procedure ?
Thank you in advance.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MASTER
hi2csetup i2cmaster, $40 , i2cslow , i2cbyte
do
hi2cout ( "ABCDEFGH" )
loop
SLAVE
hi2csetup i2cslave , $40
ptr = 0
setintflags $40 , $40
do
if ptr = 8 then exit
loop
... / ...
interrupt :
get hi2clast , @ptrinc
hi2cflag = 0
return
I want to store a sequence of characters sent to i2c to a 20X2 slave ( by a 20X2 master ) to treat them later ...
Is there a way to add a delay between sending each character ( currently about 120 µS @ 8 Mhz) because it seems insufficient time to perform the interruption routine !
Otherwise, would you know a simple way to perform this procedure ?
Thank you in advance.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MASTER
hi2csetup i2cmaster, $40 , i2cslow , i2cbyte
do
hi2cout ( "ABCDEFGH" )
loop
SLAVE
hi2csetup i2cslave , $40
ptr = 0
setintflags $40 , $40
do
if ptr = 8 then exit
loop
... / ...
interrupt :
get hi2clast , @ptrinc
hi2cflag = 0
return