![]() |
Problem with TIMER ON DELAY
Hi all,
i am programing a microprocessor. The system part of the application is already done, so i have to write the logic for all the inputs and the outputs ... In the system part of the the application there si a function UINT32 CSS_GetTime (UINT16 *ms) that gets the time in seconds and miliseconds since last reboot. ms - is the pointer that holds the number of miliseconds (0 ..999). Can be NULL if miliseconds are not needed. So i wrote the code something like this: Code:
I also tryed with miliseconds. Code: Code:
UINT16 get_mili_sec=0;Thx for your time and help, Best regards, BoSCHoW. |
Re: Problem with TIMER ON DELAY
The timer, is working now. But once the output is set i cannot put it to 0 even if the input is pressed for a shorter time then 3000 ms. I dont know what i did wrong, can somebody help me. Below is the code that i used ...
Code:
if (contactor == 1) output1=1;best regards, BoSCHoW. |
| All times are GMT +5.5. The time now is 09:21. |