Guys,
Why can't I use PB4 for CS on ENC28J60 ?
It's working only with PB0 even I change to PB4.
Code :
#define ENC28J60_CONTROL_PORT PORTB #define ENC28J60_CONTROL_DDR DDRB #define ENC28J60_CONTROL_CS 4 #define ENC28J60_CONTROL_CS_L ENC28J60_CONTROL_PORT&=~(1<<ENC28J60_CONTROL_CS) #define ENC28J60_CONTROL_CS_H ENC28J60_CONTROL_PORT|=(1<<ENC28J60_CONTROL_CS)
Does anyone have the same experience ?
How to rectify it ?
Thanks