作者JohnLinq (林約翰)
看板LinuxDev
標題Re: [問題] ARM板 RS232互傳問題請教~
時間Thu Dec 18 11:21:32 2008
※ 引述《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
→ TroyLee:不同家出的 ARM 的 Register 不一定是一樣的喔~ 12/18 14:43
推 a910937:我不是在kernel下的,我的是s3c2410的版子 12/25 14:27
→ JohnLinq:那你的板子上面是跑Linux嗎? 12/29 13:27
→ JohnLinq:如果是跑Linux,你的程式又不在Kernel裡面 12/29 13:28
→ JohnLinq:那你是怎麼存取Register的? 12/29 13:29
推 a910937:我的是LINUX系統,s3c2410規格裡面有寫到有UART有fifo暫存 01/07 15:38
→ a910937:他寫UART各有16byte FIFOs,這樣應該可以儲存資料吧??^^" 01/07 15:40