Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

iMCU7100 and Bascom-8051

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051
View previous topic :: View next topic  
Author Message
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Nov 18, 2009 11:35 pm    Post subject: iMCU7100 and Bascom-8051 Reply with quote

Still a long way to go but the first steps have been made. Bascom-8051 and the iMCU7100, a 8051 with hardcoded TCP/IP from WizNet. Changed the REG51.DAT file a bit, adding the extra registers of the W7100. And now, with a simple program, the three LEDs on PORT0.3, PORT0.4 and PORT0.5 are blinking. This is the board, you get when you enter the Circuit Cellar Wiznet contest

And here a picture of the WizISP, the program is put in the W7100 through the serial port.


The W7100.DAT file can be downloaded from my weblog http://benshobbycorner.nl

It is just a beginning, LCD not working, serial port not working (all things working with the timers). Have still some reading of datasheets to do.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Dec 01, 2009 10:24 am    Post subject: Got it working!! W7100 Reply with quote

All working now on the iMCU7100.

Check http://benshobbycorner.nl

For 6,90 dollar you get an 8051 with hardcoded TCP/IP. If you look at the iMCU7100EVB board you will see you only need a handfull of components to get TCP/IP working. Standard 8051 SFR, extended SFR. 64 Kbytes flash, 64 Kbytes RAM, 64 Kbytes for TCP/IP. 8 sockets.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Dec 22, 2009 12:16 am    Post subject: PING, UDP, HTTP... Reply with quote



Small tutorial on my homepage.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Mon Feb 01, 2010 9:34 pm    Post subject: Eagle Library for the W7100 Reply with quote

Now there is an Eagle Library for the W7100



http://benshobbycorner.nl/wp-filez/IMCU_W7100.lbr

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sun Apr 04, 2010 5:04 pm    Post subject: Bootrom W7100... Reply with quote

Seems to be that I am the only one working with the W7100 Cool

W7100 uses a bootrom to flash the code into the chip and to read and write the data flash. A call to &H07FD after filling some registers should do the trick. But I don't like the idea of some mistery code in my program so time to read the bootrom.

http://benshobbycorner.nl/?p=185



Have a very nice application running at the moment, but the W7100 has no EEPROM to store IP, Gateway, netmask so I am trying to get the dataflash 'working'.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Apr 28, 2010 8:41 pm    Post subject: To continue the One Man W7100-Show... Reply with quote

The W7100 has 256 byte of dataflash. It can be used to store IP-number, NetMask, Gateway, MAC etc. during configuration. You can access it by using a routine in the W7100-bootrom

Here is the code:
Code:

$regfile = "W7100.DAT"
$crystal = 11059200
$baud = 115200
$default XRAM
$large

Tl1=&HFC
Th1=&HFE

$romstart = &H0800

Dim Dataflash(256) as byte
Dim Q as word

Q = varptr(Dataflash(1))
Wconf.7 = 0 'no reboot
Wconf.6 = 0 'activate bootrom
Tmpr0 = low(q)
Tmpr1 = high(q)
Ispaddrh = Tmpr1
Ispaddrl = Tmpr0
Ispid = &HD2 'read
Call &H07FD
Wconf.6 = 1 'deactivate bootrom

End


In the code an array called Dataflash is dimensioned and a pointer is set to the address where it is stored in external SRAM (Q). The write is almost the same, you only have to change the Ispid.

The $romstart = &H0800 is done to allow the bootrom code to be loaded in the lower part of Code memory. With Wconf.7 you can tell the microcontroller you want a restart after finishing the bootrom-access, or you don't want a reset. With the Wconf.6 you activate the bootrom.

I also found out that $default Xram can be used for all variables but the strings. The strings has to be stored in internal SRAM.

It still is a very nice chip.


Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sat Oct 02, 2010 10:13 pm    Post subject: Distinctive Excellence Award!! Reply with quote

If you are interested, we got a Distinctive Excellence Award and here is the documentation with the Bascom-8051 code.

http://members.home.nl/bzijlstra/software/examples/Proj_003022_Track_and_trace.doc

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Mon Oct 04, 2010 10:29 am    Post subject: Reply with quote



great Ben!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051 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