Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
AD9850 Class Reference
中華DDS AD9850のコントロール More...
#include <AD9850.h>
Public Member Functions | |
| AD9850 (PinName data, PinName w_clk, PinName fu_ud, PinName reset) | |
| コンストラクタ | |
| ~AD9850 () | |
| デストラクタ | |
| void | init () |
| 初期化 | |
| void | reset () |
| リセット | |
| void | setFrequency (int freq, int pdwon=0, int phase=0) |
| 周波数設定 | |
Detailed Description
中華DDS AD9850のコントロール
Definition at line 13 of file AD9850.h.
Constructor & Destructor Documentation
| AD9850 | ( | PinName | data, |
| PinName | w_clk, | ||
| PinName | fu_ud, | ||
| PinName | reset | ||
| ) |
コンストラクタ
- Parameters:
-
PinName data データ転送ピン PinName w_clk クロックピン PinName fu_ud モジュール選択 PinName reset リセット
Definition at line 34 of file AD9850.cpp.
| ~AD9850 | ( | ) |
デストラクタ
Definition at line 44 of file AD9850.cpp.
Member Function Documentation
| void init | ( | ) |
初期化
Definition at line 52 of file AD9850.cpp.
| void reset | ( | ) |
リセット
Definition at line 61 of file AD9850.cpp.
| void setFrequency | ( | int | freq, |
| int | pdwon = 0, |
||
| int | phase = 0 |
||
| ) |
周波数設定
- Parameters:
-
int freq 設定する周波数(Hz) AD9850ボードに依存するがクロック125MHzで概ね 1〜40000000(1Hz〜40MHz)程度まで安定して動作する模様 int pdwon パワーダウンビット (W34) int phase コントロール/フェーズ等データ (W32〜W39)
AD9850へ送信する40bit W0〜W31: freqにAD9850_FREQ_CONSTを乗算した32bit値 W32, W33: コントロールビット。常に0 W34: 1でパワーダウン(通常は0) W35〜W39: 位相オフセット調整値 (11.25度単位)
Definition at line 87 of file AD9850.cpp.
Generated on Tue Jul 12 2022 21:12:59 by
1.7.2