Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

EEPROM DATA

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Tue Nov 30, 2010 12:04 pm    Post subject: EEPROM DATA Reply with quote

I want to load data into EEPROM then read it back now its just numerical values so I tried this
$eeprom



Dta:

Data 62976% , 5120% , 47616% , 15872% , 23552% , 28160% , 60928% , 13312% , 65024% , 31744% , 64512% , 59392% , 57856% , 59904%

$data



Then to read it back

For Num = 0 To 20

Readeeprom Seg , Num 'Read value from eeprom

Cls
Lcd "SEG" ; Seg ; "Num" ; Num

wait 2

Next Num

But only every second one comes out correct could some one point me in the right direction
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Tue Nov 30, 2010 1:28 pm    Post subject: Reply with quote

there are various methods.
you use the address. so you should use STEP 2 in the for next.
you should also provide a more complete sample that compiles and can be tested.

thus : For Num = 0 To 20 step 2

_________________
Mark
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Thu Dec 02, 2010 9:09 am    Post subject: Reply with quote

Thank you for the pointer Mark, I will keep in mind to put more up when I ask but all I was trying to do was to write and read to EEPROM so there was just the DIM statments and END not much else there. Now though I understand things better so I have learnt more.
Also thankyou for such great software and the way you let us use it (on going updates ect) only whish there was an add on for the ENC28J60 so that all the TCIP does not have to be written just used, would be happy to pay for it as an extra and I think other people also would plus make you some more money for your efforts.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Thu Dec 02, 2010 9:39 am    Post subject: Reply with quote

My comments are ALWAYS intended for ALL readers. There are some exceptions but then it will be clear.
So do not take my comment personal, it is a general comment so you can get a better answer.
About the lib : i checked this chip but the ENC chip is not really convenient to use IMO. So that is why there is no lib.
Still looking for a good wiznet alternative.

_________________
Mark
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Thu Dec 02, 2010 9:52 am    Post subject: Reply with quote

No I did not take the comment personal I took as a student being given help from a teacher.
With the ENC28J60 microchip have written in "C" a TCPIP stack for it with the only restriction that it is to be used with the chip the microcontroller can be anything but I do not have the skill to do anything with it even thought I have all the code written in C .

PS Merry Xmas since its december!!

Regards Paul
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Thu Dec 02, 2010 10:12 am    Post subject: Reply with quote

Did you look at Ben Zijlstra's code? His homepage you can find on the links page. The downside for this chip is that it needs a lot of code to work.
_________________
Mark
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Thu Dec 02, 2010 10:24 am    Post subject: Reply with quote

Yes I have seen bens work but I need to teach myself a lot more before I can do something like that even with all the great stuff that ben has done. Yes there is a lot of code in the C files I have, they have been used to create a webserver with a DSpic33FJ64 serving HTML from an SD card. Who would have thought when the first IBM PCs came out that not too many years later it would be in one chip and there would be many of them!
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum