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  [ 13 posts ] 
Author Message
 Post subject: AT91RM9200 and RS232 CF cards
PostPosted: Thu Apr 14, 2005 8:53 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
We are trying to use an RS232 CF card on our custom board, but the device does not generate any interrupts. Are there any reference schematics for the CF and AT91RM9200 that have been proven to work? We have no problems using 802.11 and memory CF cards.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 15, 2005 11:05 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hello David,

I was not aware of this kind of CF cards,
How it is connected to the RM9200 ?

Bye,

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 4:25 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
We've connected the CF port very much like the schematics for the DK board. We've also added /IOIS16 to PB2 and /STSCHG to PB3. I think these are the only differences.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 9:39 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Are you aware of this FAQ about CF card on the DK ?

http://www.at91.com/Pages/faq/69.html

Bye


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 18, 2005 9:51 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
Yes, I am aware of this faq. We did not lay out our board this way.
After more checking I found out that we can access a 64M CF memory card in I/O mode, but we have problems in memory mode. I can not access a 128M CF memory card in either mode.
An 802.11 CF card works in I/O mode, but it doesn't work in memory mode.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2005 10:38 am 
Offline

Joined: Wed Apr 07, 2004 5:47 pm
Posts: 52
Location: Scotland
dapper

I am using a custom board with CF interface almost identical to -DK schematics. Not far off your additions.

We operate CF card in 16 bit memory mode without problems. Up to 2Gig at moment.

The main modfications to the sample code were in loop timings. (Running with I- and D-cache the while ..cpt++ < 1000 was way too short.). I also added write multiple and read multiple routines.

The main bug I found (and it took a long time to find) was my power supply drooped when doing a lot of CF writing and corrupted the data. Some cards really sap the 3.3 volt supply.

Hope this helps find your problem.

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 20, 2005 7:39 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
I changed some of the timeouts and now have the memory cards working in both I/O and memory mode. The RS232 cards still do not work.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 7:31 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Guys,

Dapper what do you mean by "We did not lay out our board this way." do you mean the DK's way without taking into account the FAQ or ?

Simon, same question for you :wink: what do you mean by "CF interface almost identical to -DK schematics" ?

Thanks Simon and Dapper.

Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 9:06 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
We are not using CFOE to control data direction as the DK is. We are using CFRNW to control the data direction for the data bus. CFOE is tied to the CF port through a buffer ic.
Like I said previously, memory cards work great, but rs232 cards don't. Are there any control lines that an rs232 cf card would use that the memory cards don't?

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 9:14 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
We have our board layed out very much like page 145 (Figure 35. CompactFlash Application Example) in the AT91RM9200 datasheet.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 3:23 pm 
Offline

Joined: Wed Apr 07, 2004 5:47 pm
Posts: 52
Location: Scotland
pfillipi

We use different buffer chips on data lines. We drive the address bus through single direction buffers to reduce BOM price.

CD1 and CD2 circuit different for our own reasons. We also drive the CE2 and CE1 lines through spare gates on some other logic chips we have on the board.

We need to be able to "hot" insert remove and detect CF card and found a few "glitchs" with the DK. So there is a little more pull downs and power supply filtering.

Other than that the -DK was an excellent starting point. :D

Simon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 3:41 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
The more that I look at this the more I think there is a driver problem. We are running Linux 2.4.27-vrs1. I've gone through some of the code and everything appears to be getting set up properly, so I'm not sure what else to check.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 3:50 pm 
Offline

Joined: Wed Apr 07, 2004 5:47 pm
Posts: 52
Location: Scotland
dapper

Do you mean hardware drivers or Linux drivers ?

If you mean the first, my bet would be power supply. The second no idea, not my department. :(

Good luck and when you find the solution let us know, we may be there in the months to come.

Simon


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: