divakar.raj
Newbie level 2
Hello all,
I am new to dsPIC30 series. I have been using PIC18 and interfaced 24LC512 successfully.. Now I try to interface 24LC1026 with dsPIC30F6010a, but couldnt. Can someone help me with this transition from 18F to 30F for I2C.
The dsPIC datasheet speaks well about the I2C master reading the data from memory (at pg 15 -- family ref. manual DS70068F), but not about master writing data into the memory. I tried to write a byte to a location in memory and read it, all I get is 0xff.. I tried to turn on a I/O pin by comparing the received data with the sent data. The pin doesnt go high at all. It goes high only when I compare received byte with 0xff. Not sure if d problem with writing or the reading process.
I use 7.3728MHz ext crystal, configured as XT_PLL4. I am not understanding Acknowledge polling concepts (to include at the end of write sequence), hence I just gave a delay of 1 second and then I initiate the data read sequence. All I thought is to give proper time delay to complete writing sequence. Please correct me and help me to successfully interface the memory please.. I have also attached the codes, please correct me or give me some sample code to use.
Thanks Divakar Raj. R
I am new to dsPIC30 series. I have been using PIC18 and interfaced 24LC512 successfully.. Now I try to interface 24LC1026 with dsPIC30F6010a, but couldnt. Can someone help me with this transition from 18F to 30F for I2C.
The dsPIC datasheet speaks well about the I2C master reading the data from memory (at pg 15 -- family ref. manual DS70068F), but not about master writing data into the memory. I tried to write a byte to a location in memory and read it, all I get is 0xff.. I tried to turn on a I/O pin by comparing the received data with the sent data. The pin doesnt go high at all. It goes high only when I compare received byte with 0xff. Not sure if d problem with writing or the reading process.
I use 7.3728MHz ext crystal, configured as XT_PLL4. I am not understanding Acknowledge polling concepts (to include at the end of write sequence), hence I just gave a delay of 1 second and then I initiate the data read sequence. All I thought is to give proper time delay to complete writing sequence. Please correct me and help me to successfully interface the memory please.. I have also attached the codes, please correct me or give me some sample code to use.
Thanks Divakar Raj. R