This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TUSB7320 - PCI Register Access

Guru 19785 points
Other Parts Discussed in Thread: TUSB7320

Hi Team,

I understand that there are 2 way to access PCI Register, EEPROM or BIOS. But, I could not understand the detail procedure how to access using the above each way.

Do you have an application note or any material which describes in detail ?
Please tell us the procedure how to program PCI Register.

Best Regards,
Kawai

  • Hello Kawai,

    The easiest way to configure the PCI registers is by means of the EEPROM. This method consists on write the desired configurations in an EEPROM (Attached is an example of the configuration implemented on the EVM), the definition of each byte is given in the table 7-1 of datasheet, page 97. You only have to program the EEPROM with the desired configuration and the TUSB7320 will load the configuration from the EEPROM on each power-on/RESET cycle .

    The second way is by directly accessing to the PCI registers of the TUSB7320, this procedure must be done each time the system turns on and the implementation depends on the OS.

    'WinROM 3 EEPROM Data File
    'DEVICE ID: 8241104C	SILICON REV: 02
    'Created 12/19/2013 4:15:28 PM
    000	00	00000000
    001	19	00011001
    002	61	01100001
    003	14	00010100
    004	70	01110000
    005	75	01110101
    006	AB	10101011
    007	0D	00001101
    008	1B	00011011
    009	3F	00111111
    00A	00	00000000
    00B	00	00000000
    00C	00	00000000
    00D	00	00000000
    00E	00	00000000
    00F	00	00000000
    010	00	00000000
    011	00	00000000
    012	00	00000000
    013	00	00000000
    014	00	00000000
    015	00	00000000
    016	00	00000000
    017	00	00000000
    018	00	00000000
    019	00	00000000
    01A	20	00100000
    01B	80	10000000
    01C	FF	11111111
    01D	FF	11111111
    01E	FF	11111111
    01F	FF	11111111
    020	FF	11111111
    021	FF	11111111
    022	FF	11111111
    023	FF	11111111
    024	FF	11111111
    025	FF	11111111
    026	FF	11111111
    027	FF	11111111
    028	FF	11111111
    029	FF	11111111
    02A	FF	11111111
    02B	FF	11111111
    02C	FF	11111111
    02D	FF	11111111
    02E	FF	11111111
    02F	FF	11111111
    030	FF	11111111
    031	FF	11111111
    032	FF	11111111
    033	FF	11111111
    034	FF	11111111
    035	FF	11111111
    036	FF	11111111
    037	FF	11111111
    038	FF	11111111
    039	FF	11111111
    03A	FF	11111111
    03B	FF	11111111
    03C	FF	11111111
    03D	FF	11111111
    03E	FF	11111111
    03F	FF	11111111
    040	FF	11111111
    041	FF	11111111
    042	FF	11111111
    043	FF	11111111
    044	FF	11111111
    045	FF	11111111
    046	FF	11111111
    047	FF	11111111
    048	FF	11111111
    049	FF	11111111
    04A	FF	11111111
    04B	FF	11111111
    04C	FF	11111111
    04D	FF	11111111
    04E	FF	11111111
    04F	FF	11111111
    050	FF	11111111
    051	FF	11111111
    052	FF	11111111
    053	FF	11111111
    054	FF	11111111
    055	FF	11111111
    056	FF	11111111
    057	FF	11111111
    058	FF	11111111
    059	FF	11111111
    05A	FF	11111111
    05B	FF	11111111
    05C	FF	11111111
    05D	FF	11111111
    05E	FF	11111111
    05F	FF	11111111
    060	FF	11111111
    061	FF	11111111
    062	FF	11111111
    063	FF	11111111
    064	FF	11111111
    065	FF	11111111
    066	FF	11111111
    067	FF	11111111
    068	FF	11111111
    069	FF	11111111
    06A	FF	11111111
    06B	FF	11111111
    06C	FF	11111111
    06D	FF	11111111
    06E	FF	11111111
    06F	FF	11111111
    070	FF	11111111
    071	FF	11111111
    072	FF	11111111
    073	FF	11111111
    074	FF	11111111
    075	FF	11111111
    076	FF	11111111
    077	FF	11111111
    078	FF	11111111
    079	FF	11111111
    07A	FF	11111111
    07B	FF	11111111
    07C	FF	11111111
    07D	FF	11111111
    07E	FF	11111111
    07F	FF	11111111
    080	00	00000000
    081	19	00011001
    082	61	01100001
    083	14	00010100
    084	70	01110000
    085	75	01110101
    086	AB	10101011
    087	0D	00001101
    088	1B	00011011
    089	3F	00111111
    08A	00	00000000
    08B	00	00000000
    08C	00	00000000
    08D	00	00000000
    08E	00	00000000
    08F	00	00000000
    090	00	00000000
    091	00	00000000
    092	00	00000000
    093	00	00000000
    094	00	00000000
    095	00	00000000
    096	00	00000000
    097	00	00000000
    098	00	00000000
    099	00	00000000
    09A	20	00100000
    09B	80	10000000
    09C	FF	11111111
    09D	FF	11111111
    09E	FF	11111111
    09F	FF	11111111
    0A0	FF	11111111
    0A1	FF	11111111
    0A2	FF	11111111
    0A3	FF	11111111
    0A4	FF	11111111
    0A5	FF	11111111
    0A6	FF	11111111
    0A7	FF	11111111
    0A8	FF	11111111
    0A9	FF	11111111
    0AA	FF	11111111
    0AB	FF	11111111
    0AC	FF	11111111
    0AD	FF	11111111
    0AE	FF	11111111
    0AF	FF	11111111
    0B0	FF	11111111
    0B1	FF	11111111
    0B2	FF	11111111
    0B3	FF	11111111
    0B4	FF	11111111
    0B5	FF	11111111
    0B6	FF	11111111
    0B7	FF	11111111
    0B8	FF	11111111
    0B9	FF	11111111
    0BA	FF	11111111
    0BB	FF	11111111
    0BC	FF	11111111
    0BD	FF	11111111
    0BE	FF	11111111
    0BF	FF	11111111
    0C0	FF	11111111
    0C1	FF	11111111
    0C2	FF	11111111
    0C3	FF	11111111
    0C4	FF	11111111
    0C5	FF	11111111
    0C6	FF	11111111
    0C7	FF	11111111
    0C8	FF	11111111
    0C9	FF	11111111
    0CA	FF	11111111
    0CB	FF	11111111
    0CC	FF	11111111
    0CD	FF	11111111
    0CE	FF	11111111
    0CF	FF	11111111
    0D0	FF	11111111
    0D1	FF	11111111
    0D2	FF	11111111
    0D3	FF	11111111
    0D4	FF	11111111
    0D5	FF	11111111
    0D6	FF	11111111
    0D7	FF	11111111
    0D8	FF	11111111
    0D9	FF	11111111
    0DA	FF	11111111
    0DB	FF	11111111
    0DC	FF	11111111
    0DD	FF	11111111
    0DE	FF	11111111
    0DF	FF	11111111
    0E0	FF	11111111
    0E1	FF	11111111
    0E2	FF	11111111
    0E3	FF	11111111
    0E4	FF	11111111
    0E5	FF	11111111
    0E6	FF	11111111
    0E7	FF	11111111
    0E8	FF	11111111
    0E9	FF	11111111
    0EA	FF	11111111
    0EB	FF	11111111
    0EC	FF	11111111
    0ED	FF	11111111
    0EE	FF	11111111
    0EF	FF	11111111
    0F0	FF	11111111
    0F1	FF	11111111
    0F2	FF	11111111
    0F3	FF	11111111
    0F4	FF	11111111
    0F5	FF	11111111
    0F6	FF	11111111
    0F7	FF	11111111
    0F8	FF	11111111
    0F9	FF	11111111
    0FA	FF	11111111
    0FB	FF	11111111
    0FC	FF	11111111
    0FD	FF	11111111
    0FE	FF	11111111
    0FF	FF	11111111
    
    'DATA FILE FORMAT: <HEX ADDRESS><TAB><HEX DATA>. EVERYTHING AFTER <DATA> IS IGNORED.
    'USE <'> FOR IN-LINE COMMENTING.
    'DATA FILE PARSING STOPS AT FIRST BLANK LINE.
    

    Best regards,

    Diego. 

  • Hi Diego-san,

    Sorry that I had not verified your answer. Could you please allow me to ask you one more thing ?

    Is it possible to program the registers through I2C as TUSB7320 in I2C slave mode ? I believe I2C pins are only for reading from EEPROM (I2C Master mode).

    Best Regards,
    Kawai
  • Hello Kawai-san,

        Unfortunately all the configurations are made via PCIe, the I2C bus is master only and it is used to load the configuration from the EEPROM after power -on only.

    Regards,

    Diego.

  • Hello Diego-san,

    I understand. Thank you for the information.

    Best Regards,
    Kawai