Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 02:43:28 14:43


Login with username, password and session length


Pages: [1]
Print
Author Topic: I2C memory 24cxx simulation make me crazy in proteus  (Read 13517 times)
0 Members and 1 Guest are viewing this topic.
xmobix
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 9
-Receive: 1


« on: October 20, 2007, 09:08:24 21:08 »

hi friends

I'm using proteus v7.1 sp4 , I tested simulate eeprom I2c 24cxx especially 24c16,24c32,24c,64,24c256 but not success
after trying many times I observe that problem in proteus :
when you place for the first time an eeprom ex:24c32 in proteus to simulate it , proteus simulation soccess but only with the first "bin" file you choose for your eeprom , when change to another file , proteus always take in consideration the first "bin" file.

please can somone help to solve this.

thanks.
Logged
ahmed
Cracking Team
Senior Member
****
Offline Offline

Posts: 315

Thank You
-Given: 100
-Receive: 592


« Reply #1 on: October 21, 2007, 04:53:19 04:53 »

hi friends

I'm using proteus v7.1 sp4 , I tested simulate eeprom I2c 24cxx especially 24c16,24c32,24c,64,24c256 but not success
after trying many times I observe that problem in proteus :
when you place for the first time an eeprom ex:24c32 in proteus to simulate it , proteus simulation soccess but only with the first "bin" file you choose for your eeprom , when change to another file , proteus always take in consideration the first "bin" file.

please can somone help to solve this.

thanks.
save ur proteus sechematic file in same folder where the "bin" file is saved.
Logged
bajrang
Active Member
***
Offline Offline

Posts: 145

Thank You
-Given: 245
-Receive: 79


« Reply #2 on: October 21, 2007, 08:07:00 08:07 »

Please check the pull-up resistors. Do not use the analog resistor model but the digital model for pull-up  resistors.
I had faced a similar problem.
Hope it works,
regards
Logged
xmobix
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 9
-Receive: 1


« Reply #3 on: October 21, 2007, 10:00:36 22:00 »

thanks for reply

I used digital pull-ups resistor and reading value from eeprom right ,but when I change the content file of eeprom ,Proteus always reading
values of the first file I choose ,hope you understand me.

Ex : I have in my schematic eeprom 24c32 , I choose file "abcd.bin" then I read values from eeprom OK ,then I choose file "1234.bin"
      and I read value from eeprom 24c32 again ,but this time I read the same values (file "abcd.bin" , but the two files have different                                    content

Logged
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #4 on: October 22, 2007, 09:41:02 09:41 »

...but when I change the content file of eeprom ,Proteus always reading values of the first file I choose

Ex : I have in my schematic eeprom 24c32 , I choose file "abcd.bin" then I read values from eeprom OK ,then I choose file "1234.bin" and I read value from eeprom 24c32 again ,but this time I read the same values (file "abcd.bin" , but the two files have different  content

I have a proposition for you: play with the "Reset Persistent Model Data" command on the Debug menu in ISIS...

An extract from the PIC16.HLP:

Dialogue Form Field   : Initial contents of data EEPROM
....

3. At the end of a simulation the contents of the PIC data EEPROM (including any changes made to it by the executed PIC code) are preserved by ISIS and saved with the design if the design is saved.

4. For all subsequent simulations the PIC data EEPROM is re-initialised with the data saved at the end of the previous simulation.

It is important to note that the PIC data EEPROM is only initialised (first to all 1’s and then from any specified data file) for the first simulation run; thereafter the memory is always re-initialised from the previous simulation run’s data. You can use Reset Persistent Model Data command on the Debug menu in ISIS to reset the persistent model data for all models (not just the PIC model).

Hope this helps
zuisti
Logged
xmobix
Newbie
*
Offline Offline

Posts: 19

Thank You
-Given: 9
-Receive: 1


« Reply #5 on: October 23, 2007, 08:38:33 20:38 »

work fine friend "Zuisti"
thanks a lot ,but is there a way to make this option working or activated all time , not when you change to another file you you have to select it.

thanks again friends
Logged
yasir9909
Active Member
***
Offline Offline

Posts: 153

Thank You
-Given: 7
-Receive: 107


« Reply #6 on: November 16, 2009, 11:35:07 11:35 »

xmobix

I have simulated read write code for AT24C512 in proteus with AVR microcontroller
It is working fine
« Last Edit: November 16, 2009, 11:37:27 11:37 by yasir9909 » Logged

regards
m.yasir
hbruno
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 112
-Receive: 75


« Reply #7 on: November 16, 2009, 07:00:40 19:00 »

yasir9909,
I think xmobix went to something else for two years !!!
 Cheesy
Logged
yasir9909
Active Member
***
Offline Offline

Posts: 153

Thank You
-Given: 7
-Receive: 107


« Reply #8 on: November 16, 2009, 07:35:19 19:35 »

yasir9909,
I think xmobix went to something else for two years !!!
 Cheesy

Hmm ;-)
Sorry i didn't notice the date,actually i am myself looking for the read/write code for serial EEPROM AT24C1024, though i have got complete working code and Proteus simulations for AT24C512 read/write operations
Logged

regards
m.yasir
ruyet7247
Guest
« Reply #9 on: November 25, 2009, 09:50:32 21:50 »

Hello Yasir
I think that 7.1 version does not simulate 24CXX series well.

Use 7.5 version...
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC