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

論壇索引


Board index » All Posts (ncuee)




Re: 請教PIC震盪器採用外部RC的方式
初級會員
初級會員



發表於: 2012/12/18 12:01
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


Re: PIC 可以變頻寫出來嗎?
#2
初級會員
初級會員


抱歉 我是想說PIC可以用在5VSB方面的電源變頻嗎??
就是AC/DC!flyback架構!

發表於: 2008/8/14 1:27
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


PIC 可以變頻寫出來嗎?
#3
初級會員
初級會員


電源控制 可以用PIC控制 寫出 變頻嗎??

發表於: 2008/8/13 2:40
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


Re: 這是哪裡錯啦??
#4
初級會員
初級會員


參照:

Ryang 寫道:
摘自 p30f4012.h 檔裡 :
* IFS0 */
#define _INT0IF IFS0bits.INT0IF
#define _IC1IF IFS0bits.IC1IF
#define _OC1IF IFS0bits.OC1IF
#define _T1IF IFS0bits.T1IF
#define _IC2IF IFS0bits.IC2IF
#define _OC2IF IFS0bits.OC2IF
#define _T2IF IFS0bits.T2IF
#define _T3IF IFS0bits.T3IF
#define _SPI1IF IFS0bits.SPI1IF
#define _U1RXIF IFS0bits.U1RXIF

_U1RXIF 在較新板的 C30 裡以經有定義了,是不是你的版本太舊了的關係?

我使用的是 MPLAB C30, v2.01


我剛剛看啦一下 我的 MPLAB C30, v1.2版本!!
哇!!我ㄉ這ㄇ舊阿??
哪裡抓新版??

發表於: 2008/7/24 15:55
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


Re: EPC XP有人安裝MP LAB IDE??
#5
初級會員
初級會員


感覺 這樣帶EPC寫程式 好屌!!
雖然 我是菜鳥!!

發表於: 2008/7/24 15:52
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


Re: mcw mcp?差異??
#6
初級會員
初級會員


Thank!原來 如此!

發表於: 2008/7/24 15:50
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


EPC XP有人安裝MP LAB IDE??
#7
初級會員
初級會員


EPC XP有人安裝MP LAB IDE??
我家有台EPC 7吋4G XP版!
用這台可以OK嗎?

發表於: 2008/7/24 11:27
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


有沒有新手入門檔案可以參考?
#8
初級會員
初級會員


我有DEMO版 跟IC 還有ICD2 但是常常設定出問題??
有講義可以參考嗎??
就是很基本的入門設定
我現在 只想把環境工具設好 然後驗證DEMO版程式
才能進一步 修改!!
有人知道哪裡有下載嗎??

發表於: 2008/7/23 23:10
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


這是哪裡錯啦??
#9
初級會員
初級會員


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\pic30_tools\bin\pic30-gcc.exe" -mcpu=30F4012 -c -x c "Eg1_BlinkLED.c" -o"Eg1_BlinkLED.o" -g
Eg1_BlinkLED.c: In function `main':
Eg1_BlinkLED.c:79: error: `_U1RXIF' undeclared (first use in this function)
Eg1_BlinkLED.c:79: error: (Each undeclared identifier is reported only once
Eg1_BlinkLED.c:79: error: for each function it appears in.)
Eg1_BlinkLED.c: At top level:
Eg1_BlinkLED.c:109: warning: `no_auto_psv' attribute directive ignored
Halting build on first failure as requested.
BUILD FAILED: Wed Jul 23 22:46:58 2008
我剛剛執行程式 出現??

發表於: 2008/7/23 22:50
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部


我開啟DEMO程式卻出現??
#10
初級會員
初級會員


我有一塊DM300027實驗版
裡面有三個範例!
一個是給30F系列使用!
我有30F4012 IC
去跑這範例:
#include "p30F2010.h"
// the above include path may be different for each user. If a compile
// time error appears then check the path for the file above and edit
// the include statement above.

#define XTFREQ 7372800 //On-board Crystal frequency
#define PLLMODE 16 //On-chip PLL setting
#define FCY XTFREQ*PLLMODE/4 //Instruction Cycle Frequency

#define BAUDRATE 9600
#define BRGVAL ((FCY/BAUDRATE)/16)-1


int main(void)
{

ADPCFG = 0xFF; //Make analog pins digital

LATE = 0x0;
TRISE = 0xF0; //Configure LED pins as output

TMR1 = 0; // clear timer 1
PR1 = 0x7270; // interrupt every 250ms
IFS0bits.T1IF = 0; // clr interrupt flag
IEC0bits.T1IE = 1; // set interrupt enable bit
T1CON = 0x8030; // Fosc/4, 1:256 prescale, start TMR1


TRISF = 0xC;
U1BRG = BRGVAL;
U1MODE = 0x8000; // Reset UART to 8-n-1, alt pins, and enable
U1STA = 0x0440; // Reset status register and enable TX & RX


_U1RXIF=0; // Clear UART RX Interrupt Flag


while(1)
{
int a;

while (_U1RXIF==0); // Wait and receive one Character
a = U1RXREG;

while(!U1STAbits.TRMT); // Echo back received character with quotes
U1TXREG = '"';

while(!U1STAbits.TRMT);
U1TXREG = a;

while(!U1STAbits.TRMT);
U1TXREG = '"';

while(!U1STAbits.TRMT);
U1TXREG = ' ';

_U1RXIF=0; // Clear UART RX Interrupt Flag

}
return 0;
}


void __attribute__((interrupt, no_auto_psv)) _T1Interrupt(void)
{
IFS0bits.T1IF = 0; // clear interrupt flag

LATE ^= 0xF; //Toggle LED's
}


開專案有一個檔名LED.mcp
但是都出現 LED.mcp is already open.
為何??

發表於: 2008/7/23 22:35
剛摸PIC的電源工程師
PIC12F508
[font=Impact]剛摸PIC的電源工程師
PIC12F508
[/font]
頂部



(1) 2 3 4 »



:::

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

教育訓練中心

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