TI-H: Hard Drive Code...


[Prev][Next][Index][Thread]

TI-H: Hard Drive Code...




SendIDE:	sbi	PORTC, DIOW	;DIOW high
		rcall	SENDADR1	;CS0-1, DA0-2
		cbi	PORTC, DIOW	;DIOW low
		nop
		out	PORTA, highb	;MSB
		out	PORTB, lowb	;LSB
		sbi	PORTC, DIOW	;DIOW high
		cbi	PORTC, DIOW	;DIOW low
		ret

ReadIDE:	sbi	PORTC, DIOR	;DIOR high
		rcall	SENDADR1	;CS0-1, DA0-2
		cbi	PORTC, DIOR	;DIOR
		nop
		in	highb, PORTA	;MSB
		in	lowb, PORTB	;LSB
		sbi	PORTC, DIOR	;DIOR high
		cbi	PORTC, 5	;DIOR low
		ret

The part we need to decide is wether or not to use shift registers, or
latches.  When you call SENDADR1 that routine needs to be decided as either
a shift register or latch routine...  I've already coded a shift register
routine but its slow.

Then making a fat is easy...  We don't even have to do that since we could
use the EII driver with some modifications.



Follow-Ups: References: