📄 dds_ad9850.h
字号:
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "Timer.h"
/* PORT DDR PIN
A 0x1B 0x1A 0x19
B 0x18 0x17 0x16
C 0x15 0x14 0x13
D 0x12 0x11 0x10
DDS
RESET PB4
DATA PB5
WCLK PB6
FQUD PB7
*/
#define DDS_SET_PORT_OUT asm("sbi 0x11,0"::);asm("sbi 0x11,1"::);asm("sbi 0x11,2"::);asm("sbi 0x11,3"::)
#define DDS_RESET_ENABLE asm("sbi 0x12,0"::) //RESET
#define DDS_RESET_DISABLE asm("cbi 0x12,0"::)
#define DDS_DATA_SETH asm("sbi 0x12,1"::)
#define DDS_DATA_SETL asm("cbi 0x12,1"::)
#define DDS_WCLK_SETH asm("sbi 0x12,2"::)
#define DDS_WCLK_SETL asm("cbi 0x12,2"::)
#define DDS_FQUD_SETH asm("sbi 0x12,3"::)
#define DDS_FQUD_SETL asm("cbi 0x12,3"::)
void DDS_Init(void);
void DDS_UpdateFreq(uint32_t freq) ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -