English
Language : 

SH7619_09 Datasheet, PDF (681/860 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7619 Series
Section 22 Ethernet Physical Layer Transceiver (PHY)
pre_data = REG_PIR&0x00000006; /* MDO,MMD */
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000000 | pre_data; //line 1
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000001 | pre_data; //line 2
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000007; //line 3
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000006; //line 4
}
/* Output 0 */
void
mii_write_0( void )
{
int j;
unsigned short pre_data;
Example of corresponding waveforms
line 1 line 2 line 3 line 4
MDC
MDO
pre_data
1
pre_data = REG_PIR&0x00000006; /* MDO,MMD */
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000000 | pre_data;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000001 | pre_data;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000003;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000002;
}
/* Idle cycle */
void
mii_idle( void )
{
int j;
unsigned short pre_data;
pre_data = REG_PIR&0x00000006; /* MDO,MMD */
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000000 | pre_data;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000001 | pre_data;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000001;
for (j=1;j<=QuatA;j++) REG_PIR = 0x00000000;
}
Rev. 6.00 Jul. 15, 2009 Page 641 of 816
REJ09B0237-0600