当前位置:   article > 正文

labview与单片机正弦信号_基于LabVIEW的正弦波信号发生系统

labview下位机发出正弦指令

#include 

#define  uint unsigned int

#define  uchar unsigned char

#define BN   16

uchar tr[16]="hello!";

#define  LCDPORT P2  //LCD

数据线

sbit lcdrs=P1^0;

sbit lcden=P1^1;

sbit QW=P1^7;

uchar start=0;

uchar flag='0';

uchar extentFactor=5;

uchar freqFactor=0;

uint OUTPUT;

uint time=1;

uint tab[5]={1,2,5,10,35};

uint code sin[256]={

0x80,0x83,0x86,0x89,0x8d,0x90,0x93,0x96,0x99,0x9c,0x9f,0xa2,

0xa5,0xa8,0xab,0xae,0xb1,0xb4,0xb7,0xba,0xbc,0xbf,0xc2,0xc5,

0xc7,0xca,0xcc,0xcf,0xd1,0xd4,0xd6,0xd8,0xda,0xdd,0xdf,0xe1,

0xe3,0xe5,0xe7,0xe9,0xea,0xec,0xee,0xef,0xf1,0xf2,0xf4,0xf5,

0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfd,0xfe,0xff,0xff,

0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/400684
推荐阅读
相关标签
  

闽ICP备14008679号