Re: 請問高手,如何以Timer與Delay來產生週期性方波
|
||||
---|---|---|---|---|
高級會員
|
建議用計時中斷做
40Hz 要是用delay做 那真的太久了
發表於: 2007/7/20 3:47
|
|||
|
Re: 請問高手,如何以Timer與Delay來產生週期性方波
|
||||
---|---|---|---|---|
新會員
|
我想要做出40HZ的方波,應該可以用delay調整duty吧?
發表於: 2007/7/20 0:06
|
|||
|
Re: 請問高手,如何以Timer與Delay來產生週期性方波
|
||||
---|---|---|---|---|
資深會員
|
用timer1來做吧,你全部需要幾組pwm輸出,有些是反相輸出而已嗎??用來控制燛達嗎??microchip有馬達控制專用的MCU和相關的程式...可以先去網站找找或問一下FAE.
如果還是要用timer來做的話,請說明所需要波形的工作週期和頻率.
發表於: 2007/7/12 10:00
|
|||
|
Re: 請問高手,如何以Timer與Delay來產生週期性方波
|
||||
---|---|---|---|---|
中級會員
|
static void interrupt isr(void)
{ if(TMR1IF && TMR1ON) OUT^=1; } 還是這樣 delay(); out=1; delay(); out=0;
發表於: 2007/7/12 8:55
|
|||
|
請問高手,如何以Timer與Delay來產生週期性方波
|
||||
---|---|---|---|---|
新會員
|
請問各位高手,
因為PIC18F4520提供的CCP不夠, 想利用Timer與Delay來產生週期性方波, 要如何用C語言來撰寫程式? 謝謝!!
發表於: 2007/7/11 22:42
|
|||
|