[an error occurred while processing this directive] [an error occurred while processing this directive]
Было бы хорошо, однако на PIC16F87X есть ERRATA, где сказано:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Baser 02 апреля 2002 г. 12:23
В ответ на: Ответ: отправлено Voldemar. 02 апреля 2002 г. 12:11

3. Module: TMR1
When operating in external clock mode (TMR1CS is set), reading either of the timer 1 registers (TMR1H or TMR1L) may cause the timer not to
increment as expected. This occurs for both synchronous and asynchronous inputs.
The scenarios which display this are:
a) When a read operation of the TMR1H register occurs, the TMR1L register may not increment.
b) When a read operation of the TMR1L regis-ter occurs, the TMR1H register may not increment. This improper operation is only an issue when the TMR1L register increments from FFh to 00h (FFh ® 00H) during
the read of the TMR1L register.
Work Around
Do not read either the TMR1H or the TMR1L registers when operating in external clock mode (TMR1CS is set). If the application needs to read
the 16-bit counter, evaluate if this function can be moved to the TMR0 or one of the other timer resources on the device.

Т.е. читать свободно бегущий TMR1 ну никак нельзя:((

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru