NEC V850E/MA1 Application Note page 81

32-bit single-chip microcontrollers pci host bridge macro
Hide thumbs Also See for V850E/MA1:
Table of Contents

Advertisement

UBYTE cylinder_low;
UBYTE cylinder_high;
UBYTE device_head;
UBYTE command;
} ATA_COMMAND;
////////////////////////////////////////////
// Descriptor table for UltraDMA transfer //
////////////////////////////////////////////
typedef struct{
UWORD transfer_address;
UWORD transfer_byte;
UWORD next_table_address;
} DISCRIPTOR_TABLE;
/////////////////////////////
// Initialization function //
/////////////////////////////
/////////////////////////////////////////////////////////////////
// Function name: PCI_Config_ModeInit
// Function: Sets initialization of PCI-IDE ASIC board.
// Argument: None
// Return value: None
// Details: Sets handling of interrupts and errors, coding and //
//
then resets IDE bus.
//
/////////////////////////////////////////////////////////////////
void PCI_Config_ModeInit(void)
{
UWORD ConfigAddress;
UWORD ConfigData;
//////////////////////////////
// Setting of PCI functions //
//////////////////////////////
ConfigAddress = 0x40000004;
// bit 31-11 : IDSEL specification = 010000000000000000000b
//
Select PCI device connected to AD30
// bit 10-08 : Function number = 00b
// bit 07-02 : Register number = 1 (000001b)
//
-> Status / Command
// bit 01-00 : 00b (fixed)
ConfigData = 0x02000145;
// bit 26-25 : DEVSEL timing = 01b (medium fixed)
// bit
8 : SERR Enable = 1b : Output pci_serr.
// bit
6 : Parity Error Response = 1b : Output pci_serr
CHAPTER 5 APPLICATION EXAMPLES
// Cylinder Low register
// Cylinder High register
// Device/Head register
// Command register
// Transfer address
// Number of transfer bytes
// Next table address
Application Note U17121EJ1V1AN
//
//
//
//
//
//
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

V850e/ma2V850e/ma3V850e/me2

Table of Contents