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

論壇索引


Board index » All Posts




Re: ICD2 & In-Circuit Debugger
版主
版主


剛查了一下,真的在 BUY 的網站裡找不到 AC162054,但在Price Book 裡有此元件的料號,要是一時之間找不到那就先用方法二了。

發表於: 2005/5/10 15:34
頂部


Re: ICD2 & In-Circuit Debugger
版主
版主


是的,PIC16F716 需要用 AC162054 的 Header 才可以 Debug。
你有幾個方法可以解決:
1, 向代理商買一個或借一個 AC162054

2. 先用一個PIC16F819先代用寫程式,不要用到多出來的功能先用 ICD2 除錯,等程式都差不多完成後再轉成PIC16F716的 IC,這樣就方邊多了。

發表於: 2005/5/10 15:28
頂部


Re: 請問是否有提供三角函數之指令
版主
版主


你應該是指 MPLAB C18 是否有提供三角函數(sin,cos)吧!
請到底下網頁下載 : C18 Libraries Documentation 參考sin()函數的宣告與用法,輸入為經度(0~2*PI*f),輸出為 Float

http://www.microchip.com/stellent/idc ... me=en010014&part=SW006011

發表於: 2005/5/10 15:15
頂部


Re: 請問一下dsPIC30f6012搭配SPI介面的Flash memory的問題?
版主
版主


SPI 有 四種 Mode:

Mode 0,0 : CKP=0 , CKE=1 ==> SCK rising edge 時 Latch Data.
Mode 0,1 : CKP=0 , CKE=0 ==> SCK falling edge 時 Latch Data.
Mode 1,0 : CKP=1 , CKE=1 ==> SCK falling edge 時 Latch Data.
Mode 1,0 : CKP=1 , CKE=0 ==> SCK rising edge 時 Latch Data.

dsPIC 的 SPI並沒有詳細得基本說明,你可以參考 PIC18F452 data sheet 的 FIGURE 15-5 & 15-6及TABLE 15-1 的說明

所以你只要設定 SPI1CON 的 CKE & CKP 位元就可以控制 SPI的工作模式了。


發表於: 2005/5/10 14:49
頂部


請問是否有提供三角函數之指令
新會員
新會員


請問有提供三角函數(sin,cos)等之指令嗎? 如何宣告使用? 謝謝回答^^

發表於: 2005/5/10 14:40
頂部


Re: Compiler時的問題
新會員
新會員


沒錯!!修改完後就可以順利編繹了...
^____________^

謝謝!!

發表於: 2005/5/10 14:39
頂部


Re: PIC18F452的RB4~RB7?
高級會員
高級會員


謝謝版主~~~

發表於: 2005/5/10 14:22
頂部


Re: PIC18F452的RB4~RB7?
版主
版主


底下為 PIC16F877 的範例(用 Hi-Tech PICC)

//*******************************************************************************
//    Function: wake-up on pin change    
//    detailed: wake up the MCU when the signal on either of RB4--RB7 has been changed 
//    and increase PORTD LED display                    
//    *********************************************************************************
//    File required:   APP1.C
//                     cnfig877a.h
//                     pic.h       
//    **************************************************
//    Notes: Device Fosc---4.0MHZ  (clock supplied by target)


#include <pic.h>
#include "cnfig877a.h"

void  interrupt int_hdl(void);


// ================================================================
// **** Establish PIC16F877A Configuration Word
// **** == XT Oscillator Mode
// **** == Brown-Out Detect Enabled
// **** == Watch-Dog Timer Off
// **** == Code Protect Off
// **** == Low Voltage Programming Off
// **** == ICD2 Debug Mode On

__CONFIG  XT_OSC BODEN_ON WDT_OFF CP_OFF LVP_OFF DEBUG_ON ); 



void main(void)
{
    
unsigned char temp;
    
TRISD 0x00;        // set the PORTD output (LED)
    
PORTD 0x00;     // PORTD all output low
    
RBPU 1;           // set the PORTB have the weak pull up resistor
    
TRISB 0xff;       // set the PORTB in the input status
    
temp PORTB;       // Dummy read the PORTB insure the original status  
    
RBIF 0;          // configure the relative interrupt flag bit
    
RBIE 1;
    
GIE 1;
    
asm ("SLEEP");       // the MCU into the sleep mode
    
while(1);
}

    
//the interrup handle routine
void interrupt int_hdl(void)
{
    
unsigned char temp;

    if (
RBIF)         // if RBIF=1 then set PORTD all high
    
{
       
PORTD ++;    // Increase LED on PORTD
       
temp PORTB;    // Dummy read the PORTB insure the original status  
       
RBIF 0;         // clear the flag
     
}
}



發表於: 2005/5/10 14:21
頂部


Re: PIC18F452的RB4~RB7?
高級會員
高級會員


謝謝各位~~~這個問題我找到解答了

發表於: 2005/5/10 14:21
頂部


Re: 关天PIC16C54定时器的问题
版主
版主


我覺得我看不是很懂你的程序流程, bcf tmr0,7 後為何沒做 time-out 的事件,而是 retlw 回去?

發表於: 2005/5/10 14:12
頂部



« 1 ... 7098 7099 7100 (7101) 7102 7103 7104 ... 7522 »



:::

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

教育訓練中心

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