Josuetas
- 25th January 2007, 18:47
Hi, here is what i want, i have an array of 64 bytes long, and i want to write it to a memory using page mode (24lc256) because is faster, but the fact is that i want to write first 32 bytes to memory1 and secon 32 bytes to memory2.
I can write the whole array, in the next example (manual stuff)
'***********************************************
'************************CODE EXAMPLE************
'***********************************************
a VAR BYTE [64]
address VARD WORD
SDA VAR PORTA.0
SCL VAR PORTA.1
loop:
I2CWRITE SDA,SCL, $A0, address, [STR a/64]
goto loop
'***********************************************
'***********************************************
But i Would like something like
'***********************************************
'************SEUDOCODE
'***********************************************
a VAR BYTE [8]
address VARD WORD
SDA VAR PORTA.0
SCL VAR PORTA.1
loop:
Write first 32 bytes to memory 1
Write next 32 bytes to memory 2
goto loop
'***********************************************
'***********************************************
Both memories work fine already.
thanks for any help
I can write the whole array, in the next example (manual stuff)
'***********************************************
'************************CODE EXAMPLE************
'***********************************************
a VAR BYTE [64]
address VARD WORD
SDA VAR PORTA.0
SCL VAR PORTA.1
loop:
I2CWRITE SDA,SCL, $A0, address, [STR a/64]
goto loop
'***********************************************
'***********************************************
But i Would like something like
'***********************************************
'************SEUDOCODE
'***********************************************
a VAR BYTE [8]
address VARD WORD
SDA VAR PORTA.0
SCL VAR PORTA.1
loop:
Write first 32 bytes to memory 1
Write next 32 bytes to memory 2
goto loop
'***********************************************
'***********************************************
Both memories work fine already.
thanks for any help