dragonchip:作为一个示范的定时器的使用0,1,2,作为反例,T.
代码说明:
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.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!