Re: 如要使用內部震盪,該如何設定
|
||||
---|---|---|---|---|
資深會員
|
用I/O送幾個PULSE量量看呀...^^~
發表於: 2007/9/20 11:26
|
|||
|
Re: 如要使用內部震盪,該如何設定
|
||||
---|---|---|---|---|
資深會員
|
謝謝
是這樣寫就好嗎? #pragma config OSC=INTIO67 void main(void) { OSCCON= 0b01110010; } 試了一下,速度有變快了,但不知是否為8Mhz
發表於: 2007/9/20 10:01
|
|||
|
Re: 如要使用內部震盪,該如何設定
|
||||
---|---|---|---|---|
資深會員
|
OSCCON可以選擇內部振盪的速度,預設是1MHZ
發表於: 2007/9/19 23:51
|
|||
|
如要使用內部震盪,該如何設定
|
||||
---|---|---|---|---|
資深會員
|
on 18f4520 / C18
原本使用外部晶體振盪時(10Mhz) 都只在程式最前面加一行 #pragma config OSC=HS 就可以了 現在想用內部震盪,8Mhz,只改成 #pragma config OSC=INTIO67 雖然會動作,但好像怪怪的 速度慢太多,好像只有幾十K的速度而已 是哪裡沒有設定到嗎?
發表於: 2007/9/19 19:33
|
|||
|