Here, you are attempting to call the isr. Don't do that.
The isr is called automatically when an interrupt occurs. You don't
call it yourself. You need to learn about micro-controllers.
Also, you are constantly calling your turometru() routine. That routine
initializes everything. You don't do that. You initialize everything one
time, at the start of the program.
Look at the thread on the tachometer code. You will not see all the stuff
that you're doing above, in that code. Please follow the code example.
soulraven
Joined: 08 Feb 2009 Posts: 72 Location: campulung muscel
Posted: Wed Mar 04, 2009 12:39 pm
and how should I call subrutina? turometru ();
where ....
if you get out of while (1)
no longer works
Quote:
Also, you are constantly calling your turometru() routine. That routine
initializes everything. You don't do that. You initialize everything one
time, at the start of the program.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum