Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
UPD703107A Datasheet(PDF) 88 Page - NEC |
|
UPD703107A Datasheet(HTML) 88 Page - NEC |
88 / 99 page CHAPTER 5 APPLICATION EXAMPLES Application Note U17121EJ1V1AN 88 int status; ATA_COMMAND ac; ac.features = 0x00; // Features register ac.sector_count = sector_count; // SectorCount register ac.sector_number = (lba & 0xFF); // SectorNumber register ac.cylinder_low = (lba>>8 & 0xFF); // CylinderLow register ac.cylinder_high = (lba>>16 & 0xFF); // CylinderHigh register ac.device_head = 0x40|(dev_num<<4)|(lba>>24 & 0x0F); // Device/Head register ac.command = 0x30; // Command register status = ATA_PIO_dataout(&ac, sec_cnt, buff); return status; } ///////////////////////////////////////////////////////////////////////// // Function name: ATA_Read_DMA // // Function: Executes READ DMA command (Protocol:DM, Command:C8h). // // Argument: dev_num : Device selection (0:Master/1:Slave) // // lba : LBA // // sec_cnt : Number of sectors // // Return value: // // STATUS_SUCCESS : Normal end // // STATUS_TIMEOUT_DEVICE_SELECTION : DEVICE SELECTION error end // // STATUS_TIMEOUT_BSY0_DRQ0 : BSY=0,DRQ=0 timeout error end // // STATUS_TIMEOUT_DRDY1 : DRDY=1 timeout error end // // STATUS_TIMEOUT_INTRQ : INTRQ timeout error end // // STATUS_TIMEOUT_BMEND : BM timeout error end // // STATUS_IDE_ERROR : Error end after command execution // // // ///////////////////////////////////////////////////////////////////////// int ATA_Read_DMA(int dev_num, UWORD lba, UHWORD sec_cnt) { int status; ATA_COMMAND ac; ac.features = 0x00; // Features register ac.sector_count = sector_count; // SectorCount register ac.sector_number = (lba & 0xFF); // SectorNumber register ac.cylinder_low = (lba>>8 & 0xFF); // CylinderLow register ac.cylinder_high = (lba>>16 & 0xFF); // CylinderHigh register ac.device_head = 0x40|(dev_num<<4)|(lba>>24 & 0x0F); // Device/Head register ac.command = 0xC8; // Command register status = ATA_DMA(&ac); return status; } |
Número de pieza similar - UPD703107A |
|
Descripción similar - UPD703107A |
|
|
Enlace URL |
Política de Privacidad |
ALLDATASHEET.ES |
¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |