Hi,
Have my running code, but it seems that delay_ms is off,.
Delays will last around 4 times more that i select,
Delay are wrong in 16F18877
Have my running code, but it seems that delay_ms is off,.
Delays will last around 4 times more that i select,
Code (C):
- if (!KN2) //(knap2==1) // Set time/date
- {
- inaktiv=0; //
- int p;
- p=0;
- while (p<10) // repeat until 100*10 = 1 SEC ???
- {
- __delay_ms(100);
- p++;
- }
- if (!KN2) // if stilled pressed after 1 sec.
- {...