作者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
1F:→ TroyLee:不同家出的 ARM 的 Register 不一定是一样的喔~ 12/18 14:43
2F:推 a910937:我不是在kernel下的,我的是s3c2410的版子 12/25 14:27
3F:→ JohnLinq:那你的板子上面是跑Linux吗? 12/29 13:27
4F:→ JohnLinq:如果是跑Linux,你的程式又不在Kernel里面 12/29 13:28
5F:→ JohnLinq:那你是怎麽存取Register的? 12/29 13:29
6F:推 a910937:我的是LINUX系统,s3c2410规格里面有写到有UART有fifo暂存 01/07 15:38
7F:→ a910937:他写UART各有16byte FIFOs,这样应该可以储存资料吧??^^" 01/07 15:40