• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: 問PPS 一個簡單的問題
#4
版主
版主


查看用戶資訊
這些 PIC16F1xxxx 系列的周邊腳位設定最好是交給 MCC 來做,這樣就很清楚每根腳位的使用設定了。如果腳位設定有衝突 "Pin Manager: Grid View" 視窗也會有警告或衝突的指示。

發表於: 2021/1/19 14:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 問PPS 一個簡單的問題
#3
資深會員
資深會員


查看用戶資訊
事後檢視 Data Sheet 的確有一行字
Note 1 .TRIS control is overridden by the peripheral as required.
不過 TX/CK 模組 並不在 Note 1 的問題

Attach file:



jpg  螢幕擷取畫面 2021-01-19 141242.jpg (125.54 KB)
2098_60067bdce2085.jpg 603X826 px

發表於: 2021/1/19 14:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 問PPS 一個簡單的問題
#2
版主
版主


查看用戶資訊
如果單純使用 PORT 的輸出入功能那是用不到 PPS 的設定,只要先關閉該腳位的 AD 輸入功能再設定一下該 PORT 的 TRIS 暫存器即可。

PPS 是用來設定其它周邊要使用的腳位。

如果想了解一下 CIP 的更多方法,請參考教育訓練: 8-Bits MCU 相關課程 > "CIP102v2.00 進階獨立式週邊(Adv. CIP)的應用"

http://www.microchip.com.tw/RTC/RTC_DVD/

發表於: 2021/1/19 13:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


問PPS 一個簡單的問題
#1
資深會員
資深會員


查看用戶資訊
我是用 PIC16F1619
當我還沒 指定 PPS 時 Port 是呈現 高組態
指定到 周邊資料輸出 時 Pin 腳立即為輸出狀態
並且無法改成高組態

// 接一顆LED 到地
// LED 不亮
RC0PPS = 0x12; //TX/CK -> RC0
// LED 亮了
TRISC0 =1;
// LED 還是亮
難道我無法控制 Pin 腳 高組態

發表於: 2021/1/18 17:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







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.

[進階搜尋]


:::

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

教育訓練中心

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