Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
新會員
|
問題已找到,但是GP2我仍然無法控制,是否我沒將GP2設為IO mode ? 那要如何設定,GP2才會是IO mode ...
謝謝!!
發表於: 2005/4/15 19:53
|
|||
|
Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
版主
|
這個程式的需求非常簡單,建議你打電話到 Microchip 來找我吧! 0800-717-718 找 楊先生或何先生。
發表於: 2005/4/13 11:38
|
|||
|
Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
新會員
|
想了好久還是不知要如何下手,目前我想要的功能 2 input , 1 output , 當 2個input 同時為 '0'時,且時間要大於400ms,這時另一個output pin 就會產生一個 High Low 的 訊號,不曉得各位是否能夠幫忙....
謝謝!!
發表於: 2005/4/12 19:21
|
|||
|
Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
版主
|
bsf GPIO,0 ; 將 GP0 pin 設 '0'
bsf GPIO,1 ; 將 GP1 pin 設 '1' 如果我要讀取 GP0 pin 的值要如何寫? movwf GPIO ;將 GPIO 讀到 W REGISTER.
發表於: 2005/4/12 17:12
|
|||
|
Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
新會員
|
Thank you !!
bsf GPIO,0 <- 是否將 GP0 pin 設 '1' ? bsf GPIO,1 <- 是否將 GP1 pin 設 '1' ? 如果我要讀取 GP0 pin 的值要如何寫? Thank !!
發表於: 2005/4/12 15:34
|
|||
|
Re: 第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
版主
|
網站就有 MPLAB IDE v7.10 用它就可以了。
http://www.microchip.com/stellent/idc ... me=en019469&part=SW007002 基本的範例程式如下所示:
;**********************************************************************
發表於: 2005/4/12 11:15
|
|||
|
第一次使用Microchip MCU ....
|
||||
---|---|---|---|---|
新會員
|
第一次使用Microchip MCU ,不曉得 PIC10F200 要用哪一套編譯軟體,有沒有一些 sample code ?
發表於: 2005/4/12 9:32
|
|||
|