Maker Pro
Maker Pro

Mitsubishi M16C and CF-card

T

Teemu Keskinarkaus

Jan 1, 1970
0
Hi,

I have Mitsubishi M16C based HW with CF-slot.

CF-card is used in memory mapped mode. I've managed to get something data
out of CF-card, but it's only 8-bit thus I get only partial data.

CF-card is connected like Renesas application note says except few little
details(since application notes has errors). CF-/CE1 is connected directly
to M16C-/CS2. CF /OE and /WE are connected directly to M16C /RD and /WR.
CF-/CE2 is activated _only_ when M16C-/CS2 is active AND A0-A3 = 0 thus
enabling only data-register to get 16-bit access. M16C is configured to have
16-bit external bus.

I'm using IDE-driver that has been ported from other system. It's been used
for several different systems working with normal IDE-harddisk and CF-cards.
When I try to read data register(for example at the start when using
IDENTIFY_DEVICE - command) I get correct data to even addresses, but odd
addresses gives zeroes.

Any idea what could be the problem? Card works ok except for 16-bit access.
It gives interrupts when I write command into it and status don't show any
errors etc.
 
Top