回答編集履歴
1
追加
test
CHANGED
@@ -47,3 +47,31 @@
|
|
47
47
|
}
|
48
48
|
|
49
49
|
```
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
追加
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
テストプログラム
|
58
|
+
|
59
|
+
printf("PIC24FJ64GA002 adc test \n\r");
|
60
|
+
|
61
|
+
printf("ADC channel_AN0 = %04X \n\r", ADC1_GetConversion( channel_AN0 ) );
|
62
|
+
|
63
|
+
printf("ADC channel_AN1 = %04X \n\r", ADC1_GetConversion( channel_AN1 ) );
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
シリアル出力
|
68
|
+
|
69
|
+
PIC24FJ64GA002 adc test
|
70
|
+
|
71
|
+
ADC channel_AN0 = 0000
|
72
|
+
|
73
|
+
ADC channel_AN1 = 03FF
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```
|