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

論壇索引


Board index » All Posts (cct1210)




未用的I/O腳位要如何處理比較好(dsPIC33FJ)
#21
資深會員
資深會員


想問MCU未使用的空腳位,要設定為輸入或輸出?還有外部要如何連接比較好?

發表於: 2021/6/2 18:08
頂部


dsPIC33F與SPI週邊IC問題
#22
資深會員
資深會員


我要使用dsPIC33F的SPI模組控制週邊IC,1次要控制6顆IC,請問1個SPI模組能否一次接6顆IC?需要注意什麼嗎?

發表於: 2021/5/18 19:17
頂部


Re: 關於CORCON暫存器的SATA位元問題?(dsPIC33FJ128MC802晶片)
#23
資深會員
資深會員


程式測試如下:

register int regA asm("A");
register int regB asm("B");
int value1;
int value2;
int output;

_SATA=0;
value1=-32766;
value2=-32767;
regA = __builtin_lac(value1,0);
regB = __builtin_lac(value2,0);
regA = __builtin_addab(regA,regB);
output = __builtin_sac(regA,0);

_SATA=1;
value1=-32766;
value2=-32767;
regA = __builtin_lac(value1,0);
regB = __builtin_lac(value2,0);
regA = __builtin_addab(regA,regB);
output = __builtin_sac(regA,0);

從watch觀查ACCA,其值確實不同,但是為何最後output值卻是相同?

Attach file:



jpg  ACCAB.jpg (113.65 KB)
400_6087f0232d8e2.jpg 1256X344 px

發表於: 2021/4/27 19:06
頂部


關於CORCON暫存器的SATA位元問題?(dsPIC33FJ128MC802晶片)
#24
資深會員
資深會員


CORCON暫存器的bit7-->SATA為ACCA Saturation Enable bit,在型錄解說中,設定
1 = Accumulator A saturation enabled
0 = Accumulator A saturation disabled
請問設為1時,ACCA為saturation enabled,到底實際會對累加器A有什麼影響?此設定是應用在什麼地方?

Attach file:



jpg  SATA.JPG (68.22 KB)
400_6086d77fe7781.jpg 998X331 px

發表於: 2021/4/26 23:09
頂部


Re: dsPIC33FJ與兩顆不同輸入電壓spi通訊問題
#25
資深會員
資深會員


多謝回覆,瞭解了!

發表於: 2020/5/21 17:30
頂部


Re: dsPIC33FJ與兩顆不同輸入電壓spi通訊問題
#26
資深會員
資深會員


1. Master SDI的接腳我可以選擇 Pins are up to 5V toleran,所以應該不會有損壞問題.
2. /CS1為低準位,SPI1 SDO1 5V輸出時,由於此時/CS2為高準位,理論上此時的SPI2 SDO2為高阻抗狀態,既然為高阻抗狀態,應該就沒有電流流入,這樣還會有電流異常現象嗎?

發表於: 2020/5/20 15:02
頂部


dsPIC33FJ與兩顆不同輸入電壓spi通訊問題
#27
資深會員
資深會員


使用dsPIC33FJ與2顆spi晶片通訊,dsPIC33為Master,第1顆spi晶片為5V的I/O,當作slave1,第2顆spi為3.3V的I/O,當作slave2,我將兩顆的clk,sdo,sdi分別都接在一起,而/CS1,/CS2分別獨立,我的想法是/CS1拉到低電位時,slave1的MISO輸出雖然為5V位準,而此時slave2的MISO為高阻抗,如此是否有問題?雖然slave2的I/O是3.3V。

發表於: 2020/5/19 23:41
頂部


Re: motorBench Development Suite安裝問題
資深會員
資深會員



發表於: 2020/4/7 14:41
頂部



« 1 2 (3) 4 5 6 ... 33 »



:::

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

教育訓練中心

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