Transistor Gijutsu, October 2014, Special Features Chapter 8,Software of the thermistor thermometer of 0.001 ° resolution, トランジスタ技術2014年10月号 特集第8章のソフトウェア 0.001℃分解能で気配もキャッチ「超敏感肌温度計」
RatioMetric7714 Class Reference
AD7714によるレシオメトリックにより抵抗値を測定するADCクラス AD7714クラスから派生 More...
#include <AD7714.h>
Inherits AD7714.
Public Member Functions | |
RatioMetric7714 (double Rpu, double Rmu, double Rml, double Rru, double Rrl) | |
コンストラクタ | |
double | toResistorValue (int adcVal) |
指定されたAD値を抵抗値に変換 | |
double | getResistorValue (void) |
現在のAD値を抵抗値に変換して返す | |
void | write (int reg, int data) |
内部レジスタに値を書き込む | |
int | read (int reg) |
レジスタを読む | |
int | writeByte (int txd) |
バイトデータを書き込む | |
void | reset (void) |
リセット | |
void | calib (void) |
ゼロとフルスケールのキャリブレーション | |
bool | isBusy () |
変換中かどうかの判定 | |
void | setCh (int ch) |
入力チャネルを指定する | |
void | setFilter (int filter) |
デジタルフィルタを設定する | |
int | getValue () |
変換値を読み出す | |
Static Public Attributes | |
static const int | FclkIn = 1000000 |
AD7714へのクロック 1MHz. | |
static const int | bits = 24 |
変換ビット長 | |
static struct AD7714::CRegister | Reg |
レジスタを指定するための構造体 | |
static struct AD7714::CCh | Ch |
入力チャネルを指定するための構造体 |
Detailed Description
AD7714によるレシオメトリックにより抵抗値を測定するADCクラス AD7714クラスから派生
Definition at line 76 of file AD7714.h.
Constructor & Destructor Documentation
RatioMetric7714 | ( | double | Rpu, |
double | Rmu, | ||
double | Rml, | ||
double | Rru, | ||
double | Rrl | ||
) |
コンストラクタ
レシオメトリックADCクラスのコンストラクタ(初期化に数秒を要する)
- Parameters:
-
Rpu プラス入力のVcc側抵抗値、GND側抵抗としてセンサを接続する。 Rmu マイナス入力のVcc側抵抗値 Rml マイナス入力のGND側抵抗値 Rru リファレンス入力のVcc側抵抗値 Rrl リファレンス入力のGND側抵抗値
Definition at line 135 of file AD7714.cpp.
Member Function Documentation
void calib | ( | void | ) | [inherited] |
ゼロとフルスケールのキャリブレーション
キャリブレーション チャネル、ゲイン、フィルタ周波数を変更したあと必ず実行せよ
Definition at line 47 of file AD7714.cpp.
double getResistorValue | ( | void | ) |
bool isBusy | ( | void | ) | [inherited] |
int read | ( | int | reg ) | [inherited] |
レジスタを読む
レジスタの内容を読む
- Parameters:
-
reg レジスタを指定する値 Reg構造体のメンバー
- Returns:
- レジスタの内容
Definition at line 80 of file AD7714.cpp.
void reset | ( | void | ) | [inherited] |
void setFilter | ( | int | freq ) | [inherited] |
デジタルフィルタを設定する
フィルターノッチ周波数の設定(19Hz - 4000Hz)
- 周波数を上げると変換時間は短縮されるがノイズが増える
- 60に設定すると60Hzの電源ノイズのキャンセルに有効
- Parameters:
-
freq ノッチ周波数[Hz]
- Returns:
- なし
Definition at line 115 of file AD7714.cpp.
double toResistorValue | ( | int | adVal ) |
指定されたAD値を抵抗値に変換
与えられたADC値をレシオメトリックにより抵抗値に変換する
- Parameters:
-
int adVal AD変換値
- Returns:
- 変換さた抵抗値
Definition at line 144 of file AD7714.cpp.
void write | ( | int | reg, |
int | data | ||
) | [inherited] |
内部レジスタに値を書き込む
指定レジスタに書き込む 指定レジスタが8bitか24bitがを判別して書き込む
- Parameters:
-
reg レジスタを指定する値 Reg構造体のメンバー data 書き込むデータ
- Returns:
- なし
Definition at line 98 of file AD7714.cpp.
int writeByte | ( | int | txd ) | [inherited] |
Field Documentation
struct AD7714::CCh Ch [static, inherited] |
入力チャネルを指定するための構造体
const int FclkIn = 1000000 [static, inherited] |
struct AD7714::CRegister Reg [static, inherited] |
レジスタを指定するための構造体
Generated on Tue Jul 12 2022 19:08:10 by 1.7.2