资 源 简 介
Dragonchip:一个演示如可使用Timer 0, 1, 2作为计数器的例子,This program counts pulses generated by Counter A using Timer 0, 1, 2,at the same time and toggle PA2, PA1 and PA3 respectively. Pulses from PA1
then feed into PB6(T2EX) to trigger Timer 2 interrupt to toggle PA4. The Crystal frequency is 8MHz.-Dragonchip : as a demonstration of the use Timer 0, 1, 2, as counter examples, This program counts pulses generated by Counte r A using Timer 0, 1, 2, at the same time and toggle PA2. PA1 and PA3 respectively. Pulses from PA1 then f eed into PB6 (T2EX) to trigger Timer 2 interrupt to toggle mouse. The Crystal frequency is 8MHz.