Цитата(zltigo @ Apr 7 2010, 19:19)

В документации сие НЕ написано. Написано только через сколько тактов появится прерывание. Прерывание появляется через заданное число тактов часового кварца. Интервалы правильные. Никаких других обещаний не дано в принципе.
4.2.5 Counter Increment Select Mask Register (CISS - 0xE002 4040)The CISS register provides a way to obtain millisecond-range periodic CPU interrupts from the Real Time Clock. This can allow freeing up one of the general purpose timers, or support power saving by putting the CPU into a reduced power mode between periodic interrupts.
Carry out signals from different stages of the Clock Tick Counter are used to generate the sub-second interrupts. The possibilities range from 16 counts of the CTC (about 488microseconds), up to 2,048 counts of the CTC (about 62.5milliseconds). The available counts and corresponding times are given in Table 26–469.
Table 469. Counter Increment Select Mask register (CISS - address 0xE002 4040) bit description Bit Symbol Value Description Reset value
2:0 SubSecSel SubSecSelSub-Second Select. This field selects a count for the sub-second interrupt as NC follows:
000 An interrupt is generated on
every16 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 488 microseconds.
001 An interrupt is generated on
every 32 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 977 microseconds.
010 An interrupt is generated on
every 64 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 1.95 milliseconds.
011 An interrupt is generated on
every 128 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 3.9 milliseconds.
100 An interrupt is generated on
every 256 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 7.8 milliseconds.
101 An interrupt is generated on
every 512 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 15.6 milliseconds.
110 An interrupt is generated on
every 1024 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 31.25 milliseconds.
111 An interrupt is generated on
every 2048 counts of the Clock Tick Counter. At 32.768 kHz, this generates an interrupt approximately every 62.5 milliseconds.
Какая буква из документации вам непонятна ?
Цитата(zltigo @ Apr 7 2010, 19:19)

Посему чего Вы там в своем традиционно

бездумно писанном коде нагородили, начитали, и насчитали меня совершенно не интересует.
Не лениво, могут быть и ошибки. Именно по этой причине я
написал своих несколько строк и проверил на 2048 тактах. Работает, как обещано. Байка не подтвердилась.
Уже сообщил об этом на форуме, дабы сплетни не растекались. Точка.
какие могут быть ошибки ? В один регистр пихается согласно уставу, из другого - читаем в момент прерывания и сравниваем с предыдущим значением. Просто как репа.
Цитата(zltigo @ Apr 7 2010, 19:19)

я написал своих несколько строк и проверил на 2048 тактах.
Предъявить их конечно не судьба ? Чужой код обосрать не читая у вас проблем нет.