View previous topic :: View next topic |
Author |
Message |
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Tue Nov 30, 2010 12:04 pm Post subject: EEPROM DATA |
|
|
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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Nov 30, 2010 1:28 pm Post subject: |
|
|
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 |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Thu Dec 02, 2010 9:09 am Post subject: |
|
|
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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Dec 02, 2010 9:39 am Post subject: |
|
|
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 |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Thu Dec 02, 2010 9:52 am Post subject: |
|
|
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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Dec 02, 2010 10:12 am Post subject: |
|
|
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 |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Thu Dec 02, 2010 10:24 am Post subject: |
|
|
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 |
|
|
|