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.

Problem about the ioport keyword!

Other Parts Discussed in Thread: TMS320F28335

Hi,

    I want to use the ioport keyword to access to the XINTF Zone 7 space of the TMS320F28335.

The start address of Zone 7 is 0x20 0000 while the ioport type only should be char, short, int, or unsigned int.

So the compilation is failed and the error is " syntax error or ioport out of range"!

 I found that the direct address access without ioport keyword is available. What's the difference between the

access with ioport keyword and without it ?  

  • Xiong,

    Some devices have a special memory region called I/O space.  This region requires special opcodes to access it (for example in and out instructions) and thus you use the ioport keyword to tell C this is needed.

    On 28x devices, however, I/O space is not used.  All memory (including the flash and XINTF) is available in program and data space.   All peripheral registers are available in data space.  No special I/O opcodes are needed to access anything on the device.  

    Regards

    Lori

  • Thanks!

    I understand. Only the access to the memory region mapped to I/O space needs the ioport keyword.