• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (minki)




18F4620跑程式會自動reset?
初級會員
初級會員



發表於: 2010/3/19 19:57
頂部


Re: 請問用C18要怎麼把浮點數轉換成字串呢?
#12
初級會員
初級會員


我這樣寫會出Warning?
---------------------------
#include <stdio.h>

float result = 0 ;
char temp[16];

sprintf (temp,"%f", result);

Warning [2066] type qualifier mismatch in assignment
---------------------------
問題出在那裡?
謝謝^^

發表於: 2009/12/2 14:14
頂部


Re: 除數...出問題了?
#13
初級會員
初級會員


參照:

Ryang 寫道:
剛用小算盤算了一下,a 跟 b 的結果是對的。

我的不同??

Attach file:



jpg  (0.00 KB)


發表於: 2009/11/20 15:13
頂部


除數...出問題了?
#14
初級會員
初級會員


我用C18寫了一段CODE...

float a,b;
unsigned long e,c;
unsigned long x = 390625;
unsigned float y = 33554432;
c = 10000000;
a = x/y;
b = c/a;
e = b;

但用MPLAB SIM出來的結果是.....
有大大知道那裡出了問題嗎?
謝謝^^

Attach file:



jpg  (0.00 KB)


發表於: 2009/11/20 14:25
頂部


Re: 請問用C18要怎麼把浮點數轉換成字串呢?
#15
初級會員
初級會員


那...現在有辦法在C18上把浮點數轉換成字串嗎...?

發表於: 2009/11/15 22:19
頂部


PIC18F2610如何設定不使用MCLR PIN?
#16
初級會員
初級會員


PIC18F2610如何設定不使用MCLR PIN?
我用了這一句~但是一直報錯
CONFIG3Hbits.MCLRE = 0;
main.c:14:Error [1105] symbol 'CONFIG3Hbits' has not been defined
main.c:14:Error [1151] struct or union object designator expected
main.c:14:Error [1101] lvalue required
還有這個~
OSCCONbits.IRCF = 0b111;
Error [1205] unknown member 'IRCF' in '__tag_100'
Error [1131] type mismatch in assignment
正確寬寫法是?
謝謝~~

發表於: 2009/11/13 21:51
頂部



« 1 (2) 3 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------