單片機控制1264產(chǎn)生正弦波的程序(原創(chuàng))
- 文件介紹:
- 該文件為 doc 格式,下載需要 0 積分
- 單片機控制1264產(chǎn)生正弦波的程序(原創(chuàng))
#include <c8051f020.h> // SFR declarations
#include <intrins.h>
#include <stdio.h>
#include<math.h>
#define uchar unsigned char
#define uint unsigned int
uchar i,j,colour=1,T=0;
#define Lcd_Bus P5
/*char code seg[360] = {
0x80,0x82,0x84,0x86,0x88,0x8b,0x8d,0x8f,0x91,0x94,
0x96,0x98,0x9a,0x9c,0x9e,0xa1,0xa3,0xa5,0xa7,0xa9,
0xab,0xad,0xaf,0xb1,0xb4,0xb6,0xb8,0xba,0xbc,0xbe,
...