參數(shù)資料
型號(hào): UPD70F3107AGJ-UEN
廠商: NEC Corp.
英文描述: 32-Bit Single-Chip Microcontrollers
中文描述: 32位單芯片微控制器
文件頁(yè)數(shù): 90/99頁(yè)
文件大?。?/td> 528K
代理商: UPD70F3107AGJ-UEN
CHAPTER 5 APPLICATION EXAMPLES
Application Note U17121EJ1V1AN
90
int status;
status = Wait_IDE_BSY0_DRQ0();
if ( status != 0 ) {
return STATUS_TIMEOUT_BSY0_DRQ0;
}
*IDEREG_DEVICE_HEAD = dev_num << 4;
wait(TIMER400ns);
status = Wait_IDE_BSY0_DRQ0();
if ( status != 0 ) {
return STATUS_TIMEOUT_BSY0_DRQ0;
}
return STATUS_SUCCESS;
}
/////////////////////////////////////////////////////////////////////////
// Function name: ATA_PIO_datain //
// Function: Executes PIO data in command protocol. //
// Argument: atacom : ATA_COMMAND structure pointer //
// sector_count : Number of sectors //
// buff : Buffer pointer //
// Return value: //
// STATUS_SUCCESS : Normal end //
// STATUS_TIMEOUT_DEVICE_SELECTION : DEVICE SELECTION error end //
// STATUS_TIMEOUT_DRDY1 : DRDY=1 timeout error end //
// STATUS_TIMEOUT_INTRQ : INTRQ timeout error end //
// STATUS_IDE_ERROR : Error end after command execution //
// //
/////////////////////////////////////////////////////////////////////////
int ATA_PIO_datain(ATA_COMMAND *atacom, UHWORD sector_count, void *buff)
{
UBYTE dev, idestat;
UWORD *buffp;
int i, j, status;
buffp = (UWORD*)buff;
dev = ( atacom->device_head >> 4 ) & 1;
status = ATA_Device_Selection(dev); // DEVICE SELECTION
if ( status != 0 ) {
return STATUS_TIMEOUT_DEVICE_SELECTION; // DEVICE SELECTION timeout
}
*IDEREG_FEATURES = atacom->features; // Features register
*IDEREG_SECTOR_COUNT = atacom->sector_count; // SectorCount register
// Wait until BSY=0, DRQ=0
// Timeout error end
// Device selection
// Wait 400 ns
// Wait until BSY=0, DRQ=0
// Timeout error end
// Normal end
相關(guān)PDF資料
PDF描述
UPD70F3134A 32-Bit Single-Chip Microcontrollers
UPD70F3134AF1-EN4 32-Bit Single-Chip Microcontrollers
UPD70F3134AGJ-UEN 32-Bit Single-Chip Microcontrollers
UPD70F3134AY 32-Bit Single-Chip Microcontrollers
UPD70F3134AYF1-EN4 32-Bit Single-Chip Microcontrollers
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPD70F3107AGJ-UEN-A 制造商:Renesas Electronics 功能描述:V850 50MHz 制造商:Renesas Electronics 功能描述:V850 50MHz Cut Tape
UPD70F3107F1-EN4 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Microcontroller
UPD70F3107GJ-UEN 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Microcontroller
UPD70F3114 制造商:NEC 制造商全稱(chēng):NEC 功能描述:32-Bit Single-Chip Microcontrollers
UPD70F3114A 制造商:NEC 制造商全稱(chēng):NEC 功能描述:32-Bit Single-Chip Microcontrollers