CHAPTER 5 APPLICATION EXAMPLES
Application Note U17121EJ1V1AN
84
// bit 07-02 : Register number = 18 (010010b)
// -> PIO Timing (In the case of PCI-IDE ASIC board used in this application)
// bit 01-00 : 00b (fixed)
PCI_ConfigWrite( ConfigAddress, pio_timing );
return;
}
/////////////////////////////////////////////////////////////////////////
// Function name: Set_UDMA_Timing //
// Function: Setting of UltraDMA Timing1, 2 registers //
// Argument: udma_timing1 : Value set to UltraDMA Timing1 register //
// udma_timing2 : Value set to UltraDMA Timing2 register //
// Return value: None //
// //
/////////////////////////////////////////////////////////////////////////
void Set_UDMA_Timing(UWORD udma_timing1, UWORD udma_timing2)
{
UWORD ConfigAddress;
UWORD ConfigData;
ConfigAddress = 0x4000004C;
// bit 31-11 : IDSEL specification = 010000000000000000000b
// Select PCI device connected to AD30
// bit 10-08 : Function number = 00b
// bit 07-02 : Register number = 19 (010011b)
// -> UltraDMA Timing1
// (In the case of PCI-IDE ASIC board used in this application)
// bit 01-00 : 00b (fixed)
PCI_ConfigWrite( ConfigAddress, udma_timing11 );
ConfigAddress = 0x40000050;
// bit 31-11 : IDSEL specification = 010000000000000000000b
// Select PCI device connected to AD30
// bit 10-08 : Function number = 00b
// bit 07-02 : Register number = 20 (010100b)
// -> UltraDMA Timing2
// (In the case of PCI-IDE ASIC board used in this application)
// bit 01-00 : 00b (fixed)
PCI_ConfigWrite( ConfigAddress, udma_timing2 );
return;
}
////////////////////////////////////
Содержание V850E/MA1
Страница 2: ...Application Note U17121EJ1V1AN 2 MEMO ...