After purchasing a very cheap PSoC 4 CY8CKIT-049 4xxx Prototyping Kit, I figured that a very cheap ethernet controller connected to it would turn this into a very usable project. The CY8CKIT-049 costs only USD$4.00 and the ENC28J60 only costs USD$2.00, so for USD6.00 you can have a internet / network connected device for home automation or anything you can come up with.
This is very do-able. There are some minor issues.
Firstly, the ENC28J60 works at 3.3V so it is necessary to add a regulator. This can be done by taking off the PTC fuse on the board and bridging the pins with a capacitor and a TO92 linear regulator.
Secondly, it is a good idea to have a unique MAC address. This can be done with a DS2502E48 device. This takes just one IO with a resistor pull-up.
The CY8CKIT-049-41XX is now discontinued but the 42XX version has more capability and is still very cheap. It isn't debuggable because it uses a bootloader on the break-off part. But if you have a MiniProg3 and a suitable header, you can use that instead.
I have written a little program to convert simple HTML to 'c' code that will kluge into Kartik Mankad's code (see link above). I have adapted his code somewhat so that it incorporates the macros to make it work transparently between 8051 and ARM PSoC devices.
If anyone is following this and wants to get in touch, Google my name to find my web site and email via the link.
Note that Kartik's work is for the PSoC3 series and the PSoC4 has different endianness. I have got this working with the CY8C4125. If I can join the team, I'll upload the project files.
You will need to take it from there. In 'real' projects, I want to use the PSoC5, not the PSoC4.
As a note: if you use the CY8C4245 as here, the SPI is simpler and Kartik's original SPI send/receive code works unmodified. The CY8C4125 works differently.
Any progress? I'd like to follow your work as a) I have the very same bits on my desk as I type this and b) I'd really like to get some useable handle on adding Ethernet to my products.
This is very do-able. There are some minor issues.
Firstly, the ENC28J60 works at 3.3V so it is necessary to add a regulator. This can be done by taking off the PTC fuse on the board and bridging the pins with a capacitor and a TO92 linear regulator.
Secondly, it is a good idea to have a unique MAC address. This can be done with a DS2502E48 device. This takes just one IO with a resistor pull-up.
The CY8CKIT-049-41XX is now discontinued but the 42XX version has more capability and is still very cheap. It isn't debuggable because it uses a bootloader on the break-off part. But if you have a MiniProg3 and a suitable header, you can use that instead.
I have written a little program to convert simple HTML to 'c' code that will kluge into Kartik Mankad's code (see link above). I have adapted his code somewhat so that it incorporates the macros to make it work transparently between 8051 and ARM PSoC devices.
If anyone is following this and wants to get in touch, Google my name to find my web site and email via the link.