• slider image 442
  • slider image 497
  • slider image 498
  • slider image 499
  • slider image 500
  • slider image 502
:::


Browsing this Thread:   1 Anonymous Users






Re: PIC18F87J90的 EUAST問題??
#8
新會員
新會員


查看用戶資訊
試了還是不行.但是我把TX1設成一般I/O,輸出1->0->1->0測試卻有信號出來~~~

發表於: 2009/12/15 15:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#7
版主
版主


查看用戶資訊
void Set_USART(void)
{

        
TXSTA 0// CLEAR THE LOAD REGS
        
RCSTA 0;

      
TRISC =0x80;
    
RCSTAbits.SPEN 1;      // ENABLING THE USART Tx AND Rx 
    
RCSTAbits.CREN 1;     // ENABLING THE CONTINOUS  RECEIVE 
    
RCSTAbits.RX9 0;      // DISABLE 9TH BIT RECEIVE
    
        
PIR1bits.TXIF 0;  
    
TXSTAbits.SYNC 0;       // ASYNCH MODE
    
TXSTAbits.BRGH =1;       // HIGH BAUD RATE
    
TXSTAbits.TXEN =1;      // ENABLE TRANSMISSION
    
TXSTAbits.TX9 =0;         // DISABLE 9TH BIT TRANSMISSION
    
     
SPBRG =51;           // BAUD OF 19200 with 16MHz

   
}


查了一下以前寫的程式 for PIC18F4520 的UART 發送設定程式,TxD 我記得是一定要設成輸出腳的。 TRISCbits.TRISC6=0;

發表於: 2009/12/15 13:54
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#6
新會員
新會員


查看用戶資訊
先不接任何東西,單純用示波器接TX1腳,就沒訊號.至於TX1的TRISbit要設成"1" =>data sheet上寫的

發表於: 2009/12/15 12:32
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#5
版主
版主


查看用戶資訊
TxD 要設成 Output pin, RxD 要設成 Input Pin.

發表於: 2009/12/14 16:54
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#4
中級會員
中級會員


查看用戶資訊
出來都沒有 更不用說接收了
你硬體有沒有接錯
pic tx to rx
rx to tx

再看看io port有沒有設錯

發表於: 2009/12/14 16:35
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#3
新會員
新會員


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F87J90的 EUAST問題??
#2
中級會員
中級會員


查看用戶資訊
鮑率? 高低速?
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC18F87J90的 EUAST問題??
#1
新會員
新會員


查看用戶資訊
在PIC18F87J90如何用C語言去打開EUASRT及設定相關的參數.用UASRT的寫法好像不行.Compile會過,但是都沒輸出訊號.

發表於: 2009/12/14 9:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------