• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   1 Anonymous Users






Re: PIC24FJ16GA002啟動PWM問題
#2
版主
版主


查看用戶資訊
我用過這顆 PPS沒問題。
int main(void)
{
    
CLKDIVbits.RCDIV 0;    // Select Internal FRC as 8MHz, but doesn't use this moment.

// *************  Peripheral Pin Select  *********************
//
    
RPINR18bits.U1RXR 9;    // Set the UART RxD input on the RP9 (pin 18)
    
RPOR4bits.RP8R 3;        // Set the UART TxD output on the RP8 (pin 17)
    
RPOR6bits.RP12R 18;    // OC1 output, Set RP12 (pin 23)
    
RPOR6bits.RP13R 19;    // Set the OC2 output on the RP13 (pin 24)
    
RPOR7bits.RP14R 20;    // Set the OC3 output on the RP14 (pin 25)

    
AD1PCFG 0xFFDF;        // Enable AN5 (RB3,pin7)as analog input, others for digital I/O 

    
LATB 0x0000;
    
TRISB 0x0FFF;            // LED4(RB15) pin as output, OC1~OC3 pins as output (RP12~RP14)
//


這份 PPS 的使用手冊要看:
http://ww1.microchip.com/downloads/en/DeviceDoc/39711b.pdf

還有 PPS 的使用範例:
http://www.microchip.com.tw/modules/w ... lefile.php?cid=12&lid=241

PPS 線上教學:
http://www.microchip.com.tw/modules/x ... aq/index.php?cat_id=10#35

發表於: 2009/6/19 14:54

Edited by Ryang on 2009年06月19日 15:10:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC24FJ16GA002啟動PWM問題
#1
新會員
新會員


查看用戶資訊
Dear 各位大大,
我看了一下PIC24FJ16GA002含有5組PWM功能,想說很方便,就給它設計進去,結果目前正在書寫軟體時,才發現其PPS的OC1~OC5無對應的RPn可使用,手冊說28pin的只能讀取(DS39881C-Page 114),不知是原設計有誤,是有其它啟動方式??

發表於: 2009/6/18 18:16
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... ]

教育訓練中心

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