Browsing this Thread:
1 Anonymous Users
|
Explorer16_想把ADC值輸出至網頁
|
|
新會員
Joined
: 2007/11/5 18:23 最後登入時間
: 2009/12/2 20:16
Group:
註冊會員
Level : 1 HP : 0 / 21 MP : 3 / 1072 EXP : 86
|
使用Explorer16(PIC24FJ128GA010)當網路系統 如果想把ADC值送到CGI寫成的程式中要如果丟出值 MPLAB輸出程式如下: ************************************** #define VAR_ANAIN_AN0 (0x02) case VAR_ANAIN_AN0: *val = AN0String[(BYTE)ref]; if(AN0String[(BYTE)ref] == '\0') return HTTP_END_OF_VAR; else if(AN0String[(BYTE)++ref] == '\0' ) return HTTP_END_OF_VAR; ************************************** 然後在CGI中用%02所讀取的值只有0~9 有大大知道我程式哪裡寫錯了嗎@@
發表於: 2008/6/3 0:54
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.