You could start with looking for information on interfacing with CF cards, the ATA interface is common between them.