[U-Boot-Users] How to do DUART loopback test on MPC8541?

wylg at sina.com wylg at sina.com
Tue Apr 1 04:01:40 CEST 2008


hello,all
I'm new to u-boot, now I am working on MPC8541, I use DUART1 as my serial port, I want to do loopback test on DUART1, but it isn't working, so I want to know how to do loopback test on DUART1.Can you help me?
below is my processing steps:
1) set UCLR1=0x00 (close DLAB)
2) set UIER1=0x00 (disable interrupt)
3) set UMCR1=0x12 (allow loopback)
4) set UTHR1=0x5a (sending a char)
5) get the loopback value from URBR1 (but I always get value 0)
best regards
leo

-------------------------------------------------------------------
每天一晒每天一个幸运儿,你的梦想KFC来买单( http://d1.sina.com.cn/sina/limeng3/mail_zhuiyu/2008/mail_zhuiyu_20080205.html )

===================================================================
注册新浪2G免费邮箱(http://mail.sina.com.cn/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080401/03ca7b80/attachment.htm 


More information about the U-Boot mailing list