16-Bit Timer in Mikrocontrollern

Interrupt-Periode [ms]
CPU-Takt [1/s]
CPU-Art [2=atmega 3=xc167]


5 ms entsprechen 200000 Takten der CPU
soll
Intervall [ms]
ist
[ms]
Prescaler
Takte im Timer
gerundet
hex
(startw. underflow)
hex
(startw. overflow)
Fehler [%]
554500000xc3500x3cb00

Tabellen-Ausgabe Std-Zeiten

soll
Intervall [ms]
ist
[ms]
Prescaler
Takte im Timer
gerundet
hex
(startw. underflow)
hex
(startw. overflow)
Fehler [%]
114100000x27100xd8f00
224200000x4e200xb1e00
2.52.54250000x61a80x9e580
334300000x75300x8ad00
3.3333.3334333330x82350x7dcb-0.001
444400000x9c400x63c00
554500000xc3500x3cb00
664600000xea600x15a00
778350000x88b80x77480
888400000x9c400x63c00
998450000xafc80x50380
10108500000xc3500x3cb00
202016500000xc3500x3cb00
252516625000xf4240xbdc0
303032375000x927c0x6d840
33.33333.33432416670xa2c30x5d3d0.0008
404032500000xc3500x3cb00
505032625000xf4240xbdc0
606064375000x927c0x6d840
707064437500xaae60x551a0
808064500000xc3500x3cb00
909064562500xdbba0x24460
10010064625000xf4240xbdc0
200200128625000xf4240xbdc0
250250.003256390630x98970x67690.00128
300300256468750xb71b0x48e50
333.333333.331256520830xcb730x348d-0.00064
400400256625000xf4240xbdc0
500499.9941024195310x4c4b0xb3b5-0.00128
600600.0131024234380x5b8e0xa4720.0021333
700700.0061024273440x6ad00x95300.0009143
8008001024312500x7a120x85ee0
900899.9941024351560x89540x76ac-0.0007111
10001000.0131024390630x98970x67690.00128
20002000.0262048390630x98970x67690.00128
25002499.9942048488280xbebc0x4144-0.000256
30003000.0132048585940xe4e20x1b1e0.0004267
3333.3333333.3252048651040xfe500x1b0-0.000256
40004000.0514096390630x98970x67690.00128
50004999.9874096488280xbebc0x4144-0.000256
60006000.0264096585940xe4e20x1b1e0.0004267
70000errerr0x00x10000-100
80000errerr0x00x10000-100
90000errerr0x00x10000-100