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.

How to look up ioport ?

I'm a fresh here. I have a problem during my searching on debouncing. As it needs to look up the status of the  button, and I have a "INT1" example ,in which there are some variables like:portE400, and portE000...My question is how can I look up the ioport number of my DSP? Is it relative to the CPLD? Thank you for your idea and help~! And Happy Spring Festival!

  • Which DSP device are you using ..Can you provide more information.

    Regards

    Vasanth

  • My DSP is VC5416.

    And here comes another problem that how can I assign a section into the external RAM by modifying the .cmd file (if there is some ways..) ?

    By the examples the suppiler provided, it access the external RAM by two steps: First define an ioport variable --- port8000 , and assigned it with, for example 0x11(it comments :A19 = 1, A15 =1 ) ; Second access the page it refers to with the statement:"     *ExRamStart = 0x5555;" where ExRamStart is defined as "unsigned      int  *ExRamStart = (unsigned  int *)0x8000; ".

    I can almostly understand this procedure, however, in my project I want to set some arrays in the EXRAM, so I wonder if there is some ways to assign the external RAM in the .cmd file (.e.g set a section called '.buf' in the external memory), then I can use the statement " #pragma DATA_SECTION(BUF, ".buf")" to allocate the BUF[] array to the .buf section, also the external memory.

    please tell me if there is some ways ~ THX :)