?? 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 + -