Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ATMEGA128 experiment with ethernet chip ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Visit site
Activity points
9,442
Guys,

I'm doing ethernet experiment with ATMEGA128
Why can't I use PB4 for CS on ENC28J60 ?
It's working only with PB0 even I change to PB4.

Code :
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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top