基于单片机的低频信号发生器

来源:百度知道 编辑:UC知道 时间:2024/05/07 03:38:48
谁知道低频信号发生器
输入电路的设计,复位电路的设,计时钟电路的设计,显示电路的设计
显示模块的设计,键盘扫描程序的设计,键值处理的程序设计
这些内容。。急求。。谢谢大家了

DDS

这是一个程序方案
#include"at89x51.h"
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
/************************* 全局变量定义部分 **************************/
//硬件设计接口不同,要修改下一行
uchar code acLEDCS[]={0x7f,0xbf,0xdf,0xef};
uchar code acLedSegCode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x58,0x5e};/* 段码 */
uchar acLED[4]; /* 显示缓冲区 */
char cScanIndex; /* 位选指针0~3 */
uchar cKey;
sbit cKey1=P2^2;
sbit cKey2=P2^1;
sbit cKey3=P2^0;
uchar cKeyCode;
uchar cLongDelay;
uchar Out[32];
bit bStill; /* 是否松键标志 */
uint nDelayKey=0; /* 键盘延时变量,为定时中断间隔时间的整数倍 */
uchar cMode=0;
uchar Num;
uchar cF=100;
uchar code tosin[32]={
0x80,0x99,0xb1,0xc7,0xda,0xea,0xf6,0xfd,
0xff,0xfd,0xf5,0xe9,0xd8,0xc5,0xae,0x96,
0x80,0x66,0x4e,0x38,0x25,0x15,0x09,0x02,
0