ENC28J60 SPI Don't work when activate Timer 1

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
simonth58
Posts: 1
Joined: 19 Oct 2018 19:19

ENC28J60 SPI Don't work when activate Timer 1

#1 Post by simonth58 » 05 Apr 2019 05:27

Hi, i use enc28j60 on an at90can128 mcu at 8mhz internal oscillator.

library and examples supplied with microC are working good. i have a proprietary protocol to monitor on a very low speed uart that needs that i measure the time between each sensor transmission. to do that, i increment a millisecond variable with timer 1 in ctc mode.

the problem is:

Spi work good for the enc28j60 until i activate my timer1. I searched a lot to find a solution but now i don't know what to do to make that module work at the same time than my timer interrupt.

Any help would be very appreciated. Thank you

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: ENC28J60 SPI Don't work when activate Timer 1

#2 Post by petar.suknjaja » 08 Apr 2019 11:28

Hi,
Can you tell as how do you handle this interrupt?
Could you post the code so we could review it?

Kind regards,
Petar

Post Reply

Return to “mikroC PRO for AVR General”