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

論壇索引


Board index » All Posts (dginlon)




Re: 請問PIC如何做電流偵測??
資深會員
資深會員


可以參考 High side Current Sensor
答案會讓你

發表於: 2007/9/13 23:08
頂部


有人知道PICKit2 2.0 為何要改M$.NET 嗎?
資深會員
資深會員


含M$.NET Framework 安裝檔要28M也
PICKit 2.x 版的安裝檔也才1.4 M
M$.NET Framework 由啥優勢嗎
還是Borland Power Builder 不好

發表於: 2007/1/22 12:40
頂部


Re: 修改 Ctrl_IO_AD_DEMO 問題
資深會員
資深會員


找到問題了
Configuration CPU clock 設錯了
System Clock Postscaler Selection
96MHz PLL Src: /4
大概是 18F4550 沒辦法跑 48M 吧

發表於: 2006/8/21 1:04
頂部


修改 Ctrl_IO_AD_DEMO 問題
資深會員
資深會員


請教各位高手

在 USB FSUSB\fw\Hid\Ctrl_IO_AD_DEMO
我可以成功的以直接用ICD2 燒入
但若我改成 boot 版本 卻不能正確執行
LCD 也怪怪的有顯示但有嚴重漏字

LinkFile 18f4550i.lkr => rm18f4550.lkr

unmark in main.c

extern void _startup (void); // See c018i.c in your C18 compiler dir
#pragma code _RESET_INTERRUPT_VECTOR = 0x000800
void _reset (void)
{
_asm goto _startup _endasm
}
#pragma code


chnage "#include "user\user_io.h" => #include "user\user.h" in all project

select COD-file generation in Build option


downloan 完成後 LED1 LED2 快閃 顯示 "PIC18F455?Test" 但有漏字
PC 無法列舉



發表於: 2006/8/20 17:06
頂部


Re: PIC16F877 PWM 設計???
資深會員
資深會員


振盪晶體4MHz 要產生 500 Hz 沒問題阿
ye_yuli710 兄妳datasheet 沒看清楚喔
#define XTAL_FREQ 4000000
#define ICLK (XTAL_FREQ/4) // crystal is divided by four
#define PWM_FREQ 500 //Hz

#define T2CKPS1_VAL 1
#define T2CKPS0_VAL 1

#if T2CKPS1_VAL < 0
#if T2CKPS0_VAL < 0
#define T2CKPS 1
#else
#define T2CKPS 4
#endif
#else
#define T2CKPS 16
#endif

#define PR2_VAL (ICLK/T2CKPS/PWM_FREQ-1)

T2CON=
(0x0 <<7)| // 0 =Unimplemented
(0xF <<3)| // F =TOUTPSx,Timer2 Output Postscale Select 1:16 Postscale
(0x1 <<2)| // 1 =TMR2ON,Timer2 is on
(T2CKPS1_VAL << 1)|
(T2CKPS0_VAL << 0); // 0 =T2CKPS1:T2CKPS0 Timer2 Clock Prescale Select 1:16

PR2= PR2_VAL;
CCPR1L=PR2_VAL/2;
TRISC &= ~0x04; // Set TRISC2/CCP1 Output

發表於: 2006/7/30 1:49
頂部


Re: 請問 Read-Modify-Write 的問題
資深會員
資深會員


Sorry
經過 華豫寧 FAE 討論後
可能是我忘了設定CMCON 的問題

發表於: 2006/3/17 10:59
頂部


請問 Read-Modify-Write 的問題
資深會員
資深會員


原先我是用12F675 來控制兩個輸出到TTL端
除了TTL沒有其他負載
一切都沒啥問題,但是最近將程式移植到16F676
就出問題了
BSF PORTA,RA0
BSF PORTA,RA1
依程式一應該是 RA0,RA1都要為HI,
但是結果是RA0 為LO,RA1為HI
不管我在兩行程式中加入幾個 NOP都無效
難道PIC 真的不建議使用BIT 操作FILE I/O 輸出嗎?
如果是不能這樣做那程式會粉難寫

發表於: 2006/3/17 0:58
頂部



« 1 ... 31 32 33 (34)



:::

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

教育訓練中心

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