Skip to content

Library files for building embedded network system using Atmel AVR Microcontroller and Microchip ENC28J60 Ethernet Controller.

Notifications You must be signed in to change notification settings

bprayudha/avr-enc28j60

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avr-enc28j60

Description

Library files for building embedded network system using Atmel AVR Microcontroller and Microchip ENC28J60 Ethernet Controller.

Configuration

Configure your pin settings based on your microcontroller type. All settings are defined in conf/config.h file. Example :

#define SPI_DDR  DDRB   // Use Data Direction Register of Port B
#define SPI_PORT PORTB  // Use Port B for Serial Peripheral Interface
#define SPI_CS   2      // Use Pin 2 for Chip Select
#define SPI_MOSI 3      // Use Pin 3 for Master Out Slave In
#define SPI_MISO 4      // Use Pin 4 for Master In Slave out
#define SPI_SCK  5      // Use Pin 5 for Serial Clock

Configure your network settings in your aplication file. Example :

static uint8_t mymac[6]   = {0x62,0x5F,0x70,0x72,0x61,0x79};  // MAC Address
static uint8_t myip[4]    = {192,168,0,254};                  // IP Address
static uint16_t mywwwport = 80;                               // HTTP Port

Compiling

Use avr-gcc together with avr-binutils and avr-libc to compile the source. Visit AVR Libc Home Page for more information.

Datasheet

About

Library files for building embedded network system using Atmel AVR Microcontroller and Microchip ENC28J60 Ethernet Controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published