slurp
Newbie level 6
Dear Eda-board-ians,
From a past thread , i received the links such as below.
**broken link removed**
Here is the assembler code example
**broken link removed**
I have read them, and have followed the I2C PDF presentaiton by Microchip from one of the links above.
However, the presentation shows I2C in assembly language
(which is the language I want to use) but it only Write/Read a data
(in this case, 34h written into 12h and then read and displayed to PORTB)
The problem occured when I re-edit it to write in more data into the external EEPROM 24LC04B.
but it turns out, the whole code was SUCCESSFULLY SIMULATED by MPLAB IDE but became malfunction when I plug it into the circuitry...no LEDs light up.
I wrote a Loop using INDR and FSR to place in 3 data. (for example into location23h,24h,25h with vaules 33h,44h,55h.)
then after each location, i would light up the LED to indicate it has written.
and also the same when i wrote the looping for READ.
Is there a certain register/ SETTING THAT i need to define, or set?
thanking you all for your great help and time.
PLease advise,
Cheers,
Slurp
From a past thread , i received the links such as below.
**broken link removed**
Here is the assembler code example
**broken link removed**
I have read them, and have followed the I2C PDF presentaiton by Microchip from one of the links above.
However, the presentation shows I2C in assembly language
(which is the language I want to use) but it only Write/Read a data
(in this case, 34h written into 12h and then read and displayed to PORTB)
The problem occured when I re-edit it to write in more data into the external EEPROM 24LC04B.
but it turns out, the whole code was SUCCESSFULLY SIMULATED by MPLAB IDE but became malfunction when I plug it into the circuitry...no LEDs light up.
I wrote a Loop using INDR and FSR to place in 3 data. (for example into location23h,24h,25h with vaules 33h,44h,55h.)
then after each location, i would light up the LED to indicate it has written.
and also the same when i wrote the looping for READ.
Is there a certain register/ SETTING THAT i need to define, or set?
thanking you all for your great help and time.
PLease advise,
Cheers,
Slurp