AD9850驅(qū)動(dòng)程序(串行驅(qū)動(dòng))
#include
#include "intrins.h"
#define uchar unsigned char
#define uint unsigned int
sbit W_CLK= P1^0;
sbit PQ_UD= P1^1;
//sbit RET= P1^2;
uchar word[5]={0x00,0x00,0x00,0x00,0x00};
unsigned long int k=42.94967296*400;
void chang(unsigned long int t)
{
word[1]=k>>24;
word[2]=k>>16;
word[3]=k>>8;
word[4]=k;
}
delay_1ms(uint t)
{
}
main()
{
}
評(píng)論