View previous topic :: View next topic |
Author |
Message |
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Wed Nov 18, 2009 11:35 pm Post subject: iMCU7100 and Bascom-8051 |
|
|
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 |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Dec 01, 2009 10:24 am Post subject: Got it working!! W7100 |
|
|
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 |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Dec 22, 2009 12:16 am Post subject: PING, UDP, HTTP... |
|
|
Small tutorial on my homepage.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Apr 04, 2010 5:04 pm Post subject: Bootrom W7100... |
|
|
Seems to be that I am the only one working with the W7100
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 |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Wed Apr 28, 2010 8:41 pm Post subject: To continue the One Man W7100-Show... |
|
|
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 |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Mon Oct 04, 2010 10:29 am Post subject: |
|
|
great Ben! |
|
Back to top |
|
|
|