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.

PGA280 GPIO as simple output

Other Parts Discussed in Thread: PGA280

The PGA280 datasheet doesn't spend enough time describing the use of the GPIO pins as simple outputs.  Nowhere does it describe how to configure and write a simple output.  The closest it comes is a note at the top of the register 5 definition for "Write 0x45".

Is the following true?  In order to make all 7 GPIO pins outputs and then write values to them:
1) Send SPI command and data 0x487F to make them all outputs.
2) Send SPI command and data 0x45NN to send out data values 0xNN to GPIO6:0.  
    (e.g. 0x457F for all ones.  0x4500 for all zeroes.  0x4555 for alternate ones and zeros on GPIO6:0.)

Step 2 is never specified explicitly in the datasheet.  I just want to be sure before designing this part in.

Thanks.

  • Helmut,

    You're first step is correct,  it will configure the GPIO pins to outputs by writing all ones to the corresponding bits in register 8. However, I should clarify in your second step that writing a 1 to the corresponding position in register 5 will output a low, 0 will output a high at that pin as described in the GPIO configuration section on page 36.

  • Thanks for the heads up.  I'll watch for that.  (((I read that section and it's still as clear as mud.  It very poorly describes forcing a value in spite of configuring for  /CS function, and doesn't address what happens when you're not doing any forcing.  But I can see it being the same.  So I'll watch for it.  It will be easy enough to test, and easy enough to correct software.)))