2015-05-28 06:22:52 -07:00
|
|
|
# EtherCard
|
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
**EtherCard** is a driver for the ENC28J60 chip, compatible with Arduino IDE 1.6.3 (or later).
|
2015-05-28 06:22:52 -07:00
|
|
|
Adapted and extended from code written by Guido Socher and Pascal Stang.
|
|
|
|
|
|
|
|
License: GPL2
|
|
|
|
|
|
|
|
The documentation for this library is at http://jeelabs.net/pub/docs/ethercard/.
|
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
## Physical Installation
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
### PIN Connections (Using STM32F103):
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
|ENC28J60|STM32F103|
|
|
|
|
|:------:|:-----:|
|
|
|
|
|Vcc|3.3V|
|
|
|
|
|SCK|PA5|
|
|
|
|
|SO|PA6|
|
|
|
|
|SI|PA7|
|
|
|
|
|CS|PA8| # Selectable with the ether.begin() function
|
|
|
|
|RST|3.3V|
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
The **CS** pin is selectable with the ether.begin() function.
|
|
|
|
|
|
|
|
e.g. If you want to use the **PA9** as **CS** pin then you can initiallize the ethernet module inside the sketch as:
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
`if (ether.begin(sizeof Ethernet::buffer, mymac) == 0,`**`PA9`**`) `
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
By default the pin **PA8** is used as **CS** (you don't have to initiallize it).
|
2015-05-28 06:22:52 -07:00
|
|
|
|
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
## Credits
|
|
|
|
|
|
|
|
The **EtherCard** library was written by [Jean-Claude Wippler][F] and ported to **STM32F103** by [Vassilis Serasidis][V]
|
2015-05-28 06:22:52 -07:00
|
|
|
|
|
|
|
## Support
|
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
That library works perfect on Arduino IDE 1.6.3 (or later) with [Arduino_STM32 project][S] installed.
|
|
|
|
|
|
|
|
The Arduino STM32 project has a forum ([STM32duino][F]) also for getting or for providing help to people that are interested in that project .
|
2015-05-28 06:22:52 -07:00
|
|
|
|
2015-05-28 06:41:18 -07:00
|
|
|
[F]: https://github.com/jcw
|
|
|
|
[S]: https://github.com/rogerclarkmelbourne/Arduino_STM32
|
|
|
|
[F]: http://www.stm32duino.com
|
|
|
|
[V]: https://github.com/Serasidis
|