Timeline for Delay doesn't work (avr attiny 26, delay.h)
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2017 at 13:47 | comment | added | Macit |
@kkrambo So, to get the delay 6.5535 seconds he should type _delay_ms(65535);
|
|
Apr 8, 2017 at 13:43 | comment | added | Macit |
@kkrambo In his case, If the value passed to _delay_ms is bigger than 262ms, it is going to be divided by 10 automatically. So _delay_ms(1000); is a delay of 100ms.
|
|
Apr 8, 2017 at 13:04 | comment | added | kkrambo | That link says the 262.14 limit applies to _delay_loop_2. The limit for _delay_ms is 65535 which should corresponds to 6.5535 seconds. | |
Apr 8, 2017 at 12:44 | history | answered | Macit | CC BY-SA 3.0 |