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.

TMS320f28069 Byte addressable GPIOS

Other Parts Discussed in Thread: TMS320F28069

Hi,

I am trying to interface my TMS320f28069 with an Analog to digital converter that output's parallel data. I am looking for a way that I can read the GPIOs as a byte instead of having to read each individual GPIO. I know from AVR experience they have stuff like PORTA, PORTB, etc, etc, I am assuming that you can define the ports yourself and assing individual GPIOS to these ports however I can't find anything like that on the datasheet or refenrence manual. I looked at the DMA information and is mention something about Channels 1-6 but I do not know if they refer to GPIOS. 

If you could point me to where I can find that information I would truly appreciate it. 

Thanks. 

  • Marco,

    Unfortunately you cannot define the ports yourself. So reading individual GPIOs is how you would do this on the F28069.

    This information can be found in the System Control and Interrupts chapter of the F2806x TRM [http://www.ti.com/litv/pdf/spruh18d]. On page 145: "The value read from the GPxDAT registers reflect the state of the pin (after qualification),..."

    When the GPIOs are set up as inputs, you can just go and read the whole GPIO Port x Data register (GPxDAT) to get your  value. Keep in mind that this will be a 32-bit register, so if the inputs are not in consectuive GPIOS, some bit masking, and shifting may be necessary. For example, if your data is coming in on GPIO0- GPIO7, you read the GPADAT register, with the upper 24 bits masked off. Store this value and use it as necessary.

    Regards,
    Mark Labbato