參數(shù)資料
型號: UPD70F3134AGJ-UEN
廠商: NEC Corp.
英文描述: 32-Bit Single-Chip Microcontrollers
中文描述: 32位單芯片微控制器
文件頁數(shù): 94/99頁
文件大小: 528K
代理商: UPD70F3134AGJ-UEN
CHAPTER 5 APPLICATION EXAMPLES
Application Note U17121EJ1V1AN
94
idestat = *IDEREG_ALT_STATUS; // Alt Status register empty read
idestat = *IDEREG_STATUS; // Status register read
if ( idestat & IDEREG_ERROR_ERR_BIT ) {
return STATUS_IDE_ERROR(*IDEREG_ERROR); // Error end (after command execution)
}
return STATUS_SUCCESS; // Normal end
}
/////////////////////////////////////////////////////////////////////////
// Function name: ATA_DMA //
// Function: Executes DMA command protocol. //
// Argument: atacom : ATA_COMMAND structure pointer //
// 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_DMA(ATA_COMMAND *atacom)
{
int status;
UBYTE dev, idestat;
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
*IDEREG_SECTOR_NUMBER = atacom->sector_number; // SectorNumber register
*IDEREG_CYL_LOW = atacom->cylinder_low; // CylinderLow register
*IDEREG_CYL_HIGH = atacom->cylinder_high; // CylinderHigh register
status = Wait_IDE_DRDY1(); // Loop until DRDY=1
if ( status != 0 ) {
return STATUS_TIMEOUT_DRDY1; // DRDY timeout
}
*IDEREG_COMMAND = atacom->command; // Command register
相關(guān)PDF資料
PDF描述
UPD70F3134AY 32-Bit Single-Chip Microcontrollers
UPD70F3134AYF1-EN4 32-Bit Single-Chip Microcontrollers
UPD70F3134AYGJ-UEN 32-Bit Single-Chip Microcontrollers
UPD71088C-10 System Bus Controller
UPD71088C-8 System Bus Controller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPD70F3134AY 制造商:NEC 制造商全稱:NEC 功能描述:32-Bit Single-Chip Microcontrollers
UPD70F3134AYF1-EN4 制造商:NEC 制造商全稱:NEC 功能描述:32-Bit Single-Chip Microcontrollers
UPD70F3134AYGJ-UEN 制造商:NEC 制造商全稱:NEC 功能描述:32-Bit Single-Chip Microcontrollers
UPD70F3134BYGJ-UEN-A 制造商:Renesas Electronics 功能描述:Cut Tape 制造商:Renesas 功能描述:MCU 32-bit V850E RISC 512KB Flash 3.3V 144-Pin LQFP
UPD70F3134GJ-UEN 制造商:Renesas Electronics Corporation 功能描述: