Atmega32 problem with enabled USART interrupt and enc28j60

Status
Not open for further replies.

Sharagim

Advanced Member level 4
Joined
Feb 6, 2011
Messages
112
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,058
Hi,
I have a problem as follow:
In my circuit I have a enc28j60 module on SPI .
I setup a Serial interface to PC to show somethings on terminal.
All is ok when I turn on this device when my AVR MKII connected to it(SPI), but when I disconnect MKII and reset it I see leds of enc28j60 blinking abnormaly and it is not working.
I try to find the problem and I see this problem can be solve with this to way :
1- When touch RESET on micro with a wire which connected to GND for a sec.
2- When I comment "(1 << RXCIE )" line , I mean when disable interrupt on USART RX.

I cant find figure out what is main problem.

Thanks in advance for any help.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…