ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
13 июля
464212
Vit (16.11.2013 22:28, просмотров: 1583)
FRDM-KL02Z продолжение. Негодую. Убил пол дня на такое гуано... Еле нашёл. http://caxapa.ru/459425.html
Второй подход. В первом почти не трогал периферию - только пинал SysTick и GPIO. Теперь пнул генераторы и мелкожручий таймер... Полон впечатлений. The CNR continues incrementing when the core is halted in Debug mode when configured for Pulse Counter mode, the CNR will stop incrementing when the core is halted in Debug mode when configured for Time Counter mode. The CNR cannot be initialized, but can be read at any time. On each read of the CNR, software must first write to the CNR with any value. This will synchronize and register the current value of the CNR into a temporary register. The contents of the temporary register are returned on each read of the CNR. When reading the CNR, the bus clock must be at least two times faster than the rate at which the LPTMR counter is incrementing, otherwise incorrect data may be returned. Документация - говно. Код в раздачу - тоже говно, его децл, но по сравнению с докой - цаца. Кто хочет отучиться хаять либы от ST/EM и прочая могут сходить на сайт Freescale и вкусить аромату. ЗЫ Но цена ж на дерьмишко, сцуко, хорошая:)