Re: [問題] ARM板 RS232互傳問題請教~
※ 引述《a910937 (skura)》之銘言:
: → a910937:您好,請問while迴圈怎麼樣判斷呢?? 12/11 15:02
: → a910937:我想用arm uart內部特殊暫存器做判斷是否已滿 可行嗎^^? 12/11 15:03
^^^^^^^^^^^^^^
讓我來亂入一下。
UARTn Interrupt Identification Register
(U0IIR - 0xE000 C008, U2IIR - 0xE007 8008, U3IIR - 0x7008 C008, Read Only)
Interrupt identification. UnIER[3:1] identifies an interrupt
corresponding to the UARTn Rx FIFO. All other combinations of
UnIER[3:1] not listed above are reserved (000,100,101,111).
011 1 - Receive Line Status (RLS).
010 2a - Receive Data Available (RDA). -> 收到(一定量)的東西
110 2b - Character Time-out Indicator (CTI).
001 3 - THRE Interrupt -> 沒有東西可以送了
你是在Linux kernel裡面作編程嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.221.140.178
→
12/18 14:43, , 1F
12/18 14:43, 1F
推
12/25 14:27, , 2F
12/25 14:27, 2F
→
12/29 13:27, , 3F
12/29 13:27, 3F
→
12/29 13:28, , 4F
12/29 13:28, 4F
→
12/29 13:29, , 5F
12/29 13:29, 5F
推
01/07 15:38, , 6F
01/07 15:38, 6F
→
01/07 15:40, , 7F
01/07 15:40, 7F
討論串 (同標題文章)
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章