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

論壇索引


Board index » All Posts (jlian)




Re: 請問PIC的float的整數及小數是幾位數?
資深會員
資深會員


Dear Ryang :

最大的正數是 3.4028235*10^38
所以float的值可以很大就是?

謝謝.

發表於: 2021/4/20 15:39
頂部


Re: 請問PIC的float的整數及小數是幾位數?
資深會員
資深會員


Dear Ryang :

單精度尾數佔用 bit 22~00 的位置為23個 bit的欄位,有24 bit 的解析度。
1. 所以整數是2^(23+1) = 16777216 ?
2.小數就不知了!

謝謝?

發表於: 2021/4/20 14:27
頂部


Re: 請問PIC的float的整數及小數是幾位數?
資深會員
資深會員


Dear Ryang :

float : 24-bit format : 1 bit 正負號 + 8 bit 指數 + 15 bit 尾數
那請問 8 bit 指數可以是多少位數的整數及 15 bit 尾數是多少位數的小數?
因要換成字串所以需知道各為多少位數才行.

煩請指教,謝謝.

發表於: 2021/4/20 11:00
頂部


請問PIC的float的整數及小數是幾位數?
資深會員
資深會員


Dear All :

因要做顯示用所以須知有多少位數.

謝謝.

發表於: 2021/4/20 9:37
頂部


Re: 請問有人使用過vsprintf?
資深會員
資深會員


Dear Ryang :

用sprintf已解決.

謝謝大家.

發表於: 2021/4/19 16:46
頂部


Re: 請問有人使用過vsprintf?
資深會員
資深會員


Dear Libra :

我是用XC8,而XC8沒有vsnprintf!

謝謝.

發表於: 2021/4/19 9:16
頂部


請問有人使用過vsprintf?
資深會員
資深會員


Dear All:

1.我想用vsprintf將一陣列的資料轉成ASCIl再用uart輸出.
不知這樣可行否?
2.vsprintf該如何用?

//main:
j=1234;
errmsg("j=%d",j);
//
void errmsg(const char *fmt, ...)
{
va_list ap;
char buf[100];

va_start(ap, fmt);
vsprintf(buf, fmt, ap);
va_end(ap);
NOP();
}
但這樣test_buf只應出j=%d而無列印出j,為何?

謝謝.

發表於: 2021/4/16 14:20

Edited by jlian on 2021年04月16日 14:37:35
Edited by jlian on 2021年04月16日 14:38:09
頂部


Re: 在MPLABx->tools->fonts&colors的問題?
資深會員
資深會員


在profile原本就有那麼多選項?

Attach file:



jpg  未命名-profile.jpg (116.89 KB)
3751_605835843dd09.jpg 940X810 px

發表於: 2021/3/22 14:13
頂部


在MPLABx->tools->fonts&colors的問題?
資深會員
資深會員


Dear All :

我import這wekers後都無法移除!到底該如何完全移除?
附上圖片.

謝謝.

Attach file:



jpg  未命名-wekers.jpg (122.64 KB)
3751_605831fadfea8.jpg 940X810 px

發表於: 2021/3/22 13:58
頂部


Re: 請問一個ICD4無法燒錄的問題, 已困擾很久了.
資深會員
資深會員


Dear Ryang :

好的.

謝謝.

發表於: 2021/2/25 15:00
頂部



« 1 ... 8 9 10 (11) 12 13 14 ... 73 »



:::

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... ]

教育訓練中心

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