Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: external 16c554 driver for 9261, wince6.0
PostPosted: Mon Sep 05, 2011 5:34 am 
Offline

Joined: Mon Jan 17, 2011 11:17 am
Posts: 13
I need add 16c554 on 9261 system to expand my uarts.
I found there is 16550 driver in wince 6.0 and I think this driver can be used to drive 16c554, like linux. In internet, i can not find a whole solution for this application, please help to tell me how i can do.

even if no one use 16c554, it will be better if can tell me how to add 16550 driver on 9261 system.
how can i make reg file for it?
I use CS0 of 9261, interrupt pin is PC3, I can calculate the IOBASE, but what the IRQ is here?
and i can find com16550, ser16550, isr16550, which one i should use?

thanks!


Top
 Profile  
 
 Post subject: Re: external 16c554 driver for 9261, wince6.0
PostPosted: Mon Sep 05, 2011 10:04 am 
Offline

Joined: Mon Jan 17, 2011 11:17 am
Posts: 13
i make a folder under drivers fold of 9261 BSP, and copy the files of comm16550.def, com16550.cpp, pdd16550.cpp under this folder. And make files of makefile, sources, and modified files of platform.bib .reg, and so on.
and I make com16550.reg, according to the way found in the internet.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\S16550_A]
"DeviceArrayIndex"=dword:0
"IrqNumber"=dword:83
"IOBase"=dword:10000000
"IOLen"=dword:8
;"ISTTimeouts"=dword:200 ; every 512 ticks checking Modem status.
"Prefix"="COM"
"Index"=dword:6
"Dll"="com16550.Dll"
"Order"=dword:0
"Priority"=dword:0
;"Port"="COM6:"
;"DeviceType"=dword:0
;"FriendlyName"="serial6"
;"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
;"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\S16550_B]
"IRQ"=dword:84
"Dll"="com16550.dll"
"Prefix"="COM"
"DeviceArrayIndex"=dword:0
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"
"Index"=dword:7
"Order"=dword:2
"RegStride"=dword:2
"IoLen"=dword:8
"IOBase"=dword:10000008
"InterfaceType"=dword:0
"BusNumber"=dword:0
and then nk.nb0 is produced without any error, and I can find com16550.dll, too.
when I boot systeem, I can find these 2 uarts under .../drivers/buildin with using regedit tool. and the information is same as the one I make in com16550.reg file.
but when i use uart test tool to test them, i can not find these 2 uarts, there are only 2 original uarts of 9261.
who can tell me what the reason is? it is because of wrong IRQ or IOBASE defination? How can I test it?
the IRQ is PC3, 4 of 9261, CSA, B is NCS0+y0,y1 of 74lvc138 with A3,A4 input.
thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: