Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
新會員
|
試了還是不行.但是我把TX1設成一般I/O,輸出1->0->1->0測試卻有信號出來~~~
發表於: 2009/12/15 15:10
|
|||
|
Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
新會員
|
先不接任何東西,單純用示波器接TX1腳,就沒訊號.至於TX1的TRISbit要設成"1" =>data sheet上寫的
發表於: 2009/12/15 12:32
|
|||
|
Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
版主
|
TxD 要設成 Output pin, RxD 要設成 Input Pin.
發表於: 2009/12/14 16:54
|
|||
|
Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
中級會員
|
出來都沒有 更不用說接收了
你硬體有沒有接錯 pic tx to rx rx to tx 再看看io port有沒有設錯
發表於: 2009/12/14 16:35
|
|||
|
Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
新會員
|
Open1USART(
USART_TX_INT_OFF & // TX傳送完資料不產生中斷 USART_RX_INT_ON & // RC接收完資料產生中斷 USART_ASYNCH_MODE & // 非同步傳輸模式 USART_EIGHT_BIT & // 每次傳輸8bit資料 EIGHT /NINE USART_CONT_RX & // RX連續接收 USART_BRGH_HIGH , // HIGH = 16 ; fcy=16MHz 103 ); //BaudRate = 9600 我是這樣設定, 但是在TX1接腳依樣沒輸出訊號~~~
發表於: 2009/12/14 13:09
|
|||
|
Re: PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
中級會員
|
鮑率? 高低速?
Open1USART( USART_TX_INT_OFF & // TX傳送完資料不產生中斷 USART_RX_INT_ON & // RC接收完資料產生中斷 USART_ASYNCH_MODE & // 非同步傳輸模式 USART_EIGHT_BIT & // 每次傳輸8bit資料 EIGHT /NINE USART_CONT_RX & // RX連續接收 USART_BRGH_HIGH , // LOW = 64; HIGH = 16 ; fcy=12MHz 18 ); // sqrg ,BR=38400
發表於: 2009/12/14 11:07
|
|||
|
PIC18F87J90的 EUAST問題??
|
||||
---|---|---|---|---|
新會員
|
在PIC18F87J90如何用C語言去打開EUASRT及設定相關的參數.用UASRT的寫法好像不行.Compile會過,但是都沒輸出訊號.
發表於: 2009/12/14 9:06
|
|||
|