文件名称:fenpin
介绍说明--下载内容均来自于网络,请自行研究使用
利用单片机的计数器来制作简易分频计,因为P1^0用来模拟外界波形输入,它提供周期为100ms的方波。与T1管脚相连后,T1可对其进行周期计数。 程序中的变量TL1决定着分频系数,其值乘以2即为分频系数。
改变其值可以得到相应的分频输出波形(方波)。
P1^1为输出管脚,将其连接示波器可以看到分频后的波形。-To make use of simple single-chip counter frequency meter, because P1 ^ 0 input waveforms used to simulate the outside world, it provides a period of 100ms square wave. After the pin is connected to T1, T1 can be cycle counted. TL1 variables in the program determines the frequency factor is multiplied by 2 is the frequency factor. Change its value can be divided by the corresponding output waveform (square wave). P1 ^ 1 for the output pin, connect the oscilloscope to see the waveform divided.
改变其值可以得到相应的分频输出波形(方波)。
P1^1为输出管脚,将其连接示波器可以看到分频后的波形。-To make use of simple single-chip counter frequency meter, because P1 ^ 0 input waveforms used to simulate the outside world, it provides a period of 100ms square wave. After the pin is connected to T1, T1 can be cycle counted. TL1 variables in the program determines the frequency factor is multiplied by 2 is the frequency factor. Change its value can be divided by the corresponding output waveform (square wave). P1 ^ 1 for the output pin, connect the oscilloscope to see the waveform divided.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
fenpin.c