Re: 請問timer3中斷的使用
|
||||
---|---|---|---|---|
版主
|
照你的要求應該是1:1的設定,(32768Hz/65535=2Sec) 。
要不要將 OpenTimer3 改為 T3CON= 0bxxxxxxxx
發表於: 2007/2/8 10:06
|
|||
|
Re: 請問timer3中斷的使用
|
||||
---|---|---|---|---|
高級會員
|
我將原本的
OpenTimer3(0b10000111); 改成這樣就可以了 TRISD=0xfc; PORTD=0x00; INTCON=0b11000000; OpenTimer3(0b10010111); 這樣應該是預分頻1:2
發表於: 2007/2/7 15:48
|
|||
|
Re: 請問timer3中斷的使用
|
||||
---|---|---|---|---|
版主
|
計數值是對的,看不出來問題在哪哩。如果 32768Hz 是準的,那試看看用短一點的時間10mS , 50mS 來試試是否正常
。
發表於: 2007/2/7 15:44
|
|||
|