參數(shù)資料
型號(hào): UPD70F3134AY
廠商: NEC Corp.
英文描述: 32-Bit Single-Chip Microcontrollers
中文描述: 32位單芯片微控制器
文件頁(yè)數(shù): 85/99頁(yè)
文件大?。?/td> 528K
代理商: UPD70F3134AY
CHAPTER 5 APPLICATION EXAMPLES
Application Note U17121EJ1V1AN
85
// ATA command execution function //
////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
// Function name: ATA_Set_Features //
// Function: Executes SET FEATURES command (Protocol:ND, Command:EFh). //
// Argument: dev_num : Device selection (0:Master/1:Slave) //
// 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_Set_Features(int dev_num, int sub_cmd, int mode)
{
int status;
ATA_COMMAND ac;
ac.features = sub_cmd;
ac.sector_count = mode;
ac.sector_number = 0x00;
ac.cylinder_low = 0x00;
ac.cylinder_high = 0x00;
ac.device_head = dev_num<<4;
ac.command = 0xEF;
status = ATA_PIO_nondata(&ac);
return status;
}
//////////////////////////////////////////////////////////////////////////
// Function name: ATA_Idle_Immediate //
// Function: Executes IDLE IMMEDIATE command (Protocol:ND, Command:E1h).//
// Argument: dev_num : Device selection (0:Master/1:Slave) //
// 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_Idle_Immediate(int dev_num)
{
ATA_COMMAND ac;
// Features register
// SectorCount register
// SectorNumber register
// CylinderLow register
// CylinderHigh register
// Device/Head register
// Command register
相關(guān)PDF資料
PDF描述
UPD70F3134AYF1-EN4 32-Bit Single-Chip Microcontrollers
UPD70F3134AYGJ-UEN 32-Bit Single-Chip Microcontrollers
UPD71088C-10 System Bus Controller
UPD71088C-8 System Bus Controller
UPD71088G-8 System Bus Controller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
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 功能描述:
UPD70F3134GJ-UEN-A 制造商:Renesas Electronics Corporation 功能描述: