文件名称:Frequency-divider
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-12-01
- 文件大小:
- 22kb
- 下载次数:
- 0次
- 提 供 者:
- zhangh*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本例程为简易分频器。 实验前,请用排线(杜邦线)将TX-1C学习板的P1^0管脚与P3^2(INT0)管脚相连。因为P1^0用来模拟外界波形输入,它提供周期为100ms的方波,与T1管脚相连后,T1可对其进行周期计数。 程序中的变量pp决定着分频系数,其值乘以2即为分频系数。 改变其值可以得到相应的分频输出波形(方波)。P1^1为输出管脚,将其连接示波器可以看到分频后的波形。-This routine for simple frequency divider. Before experiment, please use platoon line (dupont line) will TX- 1 c ^ 0 learning plate P1 of the pin and P3 ^ 2 (INT0) pin connected. Because P1 ^ 0 used to simulate the outside world wave input, it provides cycle for 100 ms square wave, and T1 pin connected, T1 can carry on the cycle count. The procedure in the variable pp determines the scale coefficient, the value multiplied by 2 is the crossover factor. To change its value can get corresponding crossover output waveform (square). P1 ^ 1 as output pin, its connection oscillograph can see points after the frequency of the wave.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
【实验78】分频器1(计数器实现)
...............................\fenpin
...............................\fenpin.c
...............................\fenpin.hex
...............................\fenpin.lnp
...............................\fenpin.LST
...............................\fenpin.M51
...............................\fenpin.OBJ
...............................\fenpin.Opt
...............................\fenpin.plg
...............................\fenpin.Uv2
...............................\fenpin_Opt.Bak
...............................\fenpin_Uv2.Bak
【实验79】分频器2(外部中断实现)
.................................\fenpinqi2
.................................\fenpinqi2.c
.................................\fenpinqi2.hex
.................................\fenpinqi2.lnp
.................................\fenpinqi2.LST
.................................\fenpinqi2.M51
.................................\fenpinqi2.OBJ
.................................\fenpinqi2.Opt
.................................\fenpinqi2.plg
.................................\fenpinqi2.Uv2
.................................\fenpinqi2_Opt.Bak
.................................\fenpinqi2_Uv2.Bak