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


Browsing this Thread:   1 Anonymous Users






Re: pic18f24j11中有ccp却找不到管脚
#3
版主
版主


查看用戶資訊
有些 Digital I/O pin 是屬於自行規劃的腳位如 UART, IC, OC, SPI ... 等在 Data Sheet 裡是看不到的。
參考一下 PIC24F Family Reference Manual 裡的 I/O & PPS 的章節。
最簡單的 PPS 規劃可以參考 :
C:\Program Files\Microchip\MPLAB C30\docs\periph_lib\Microchip PIC24F Peripheral Library.html 裡的 PPS 的Marco 定義,李下就是使用 PPS MARCO 的範例程式:
#define USE_AND_OR /* To enable AND_OR mask setting */
#include<PPS.h>

void PPS_init(void)
{
  
/* Configure Peripheral pin for UART2*/
  
iPPSInput(IN_FN_PPS_U2RX,IN_PIN_PPS_RP10);
  
iPPSInput(IN_FN_PPS_U2CTS,IN_PIN_PPS_RPI32);
  
iPPSOutput(OUT_PIN_PPS_RP17,OUT_FN_PPS_U2TX);
  
iPPSOutput(OUT_PIN_PPS_RP31,OUT_FN_PPS_U2RTS);
}


抱歉看錯了你的元件,PIC18F24J11 也有 PPS 功能,一樣參考:
C:\MCC18\doc\periph-lib\Peripheral Pin Select.htm 裡的說明,使用方式與 PIC24 的 PPS 相似。
Example Use of the PPS Routines:

 

#include <p18cxxx.h>

#include <PPS.h>

 

void PPS_init(void)

{

  
/* Configure Peripheral pin for USART2*/

  
iPPSInput(IN_FN_PPS_RX2DT2,IN_PIN_PPS_RP10);

  
iPPSInput(IN_FN_PPS_CK2,IN_PIN_PPS_RPI32);

  
iPPSOutput(OUT_PIN_PPS_RP17,OUT_FN_PPS_TX2CK2);

  
iPPSOutput(OUT_PIN_PPS_RP31,OUT_FN_PPS_DT2);

}

發表於: 2010/2/8 9:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: pic18f24j11中有ccp却找不到管脚
#2
資深會員
資深會員


查看用戶資訊
要注意!
這個 IC 的一些模塊管腳使用了 Peripheral Pin Select (PPS)

需要設定 PPS 相關的暫存器將要使用的輸入或輸出指向被編為 RPn 的管腳

詳細請參考資料手冊中
- 9.0 I/O PORTS
 |
 + 9.1 .........
 + 9.2 .......
 + 9.3 ........
 + 9.4 ........
 + 9.5 .........
 + 9.6 .........
 + 9.7 Peripheral Pin Select (PPS)

發表於: 2010/2/8 1:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


pic18f24j11中有ccp却找不到管脚
#1
資深會員
資深會員


查看用戶資訊
pic18f24j11这颗芯片有点怪,资料好像不一致,datasheet中也是,有介绍ccp却找不到管脚

發表於: 2010/2/7 11:33
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... ]

教育訓練中心

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