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.

MSB bits of I/O Register at location 0x1011 cannot be modified in CCS ver 4 ?

Hi all,

I am using Code Composer Studio (CCS) ver 4.1.3.00038 and the Code Generation Tools ver is 4.3.5.

I have some code wherein I need to write the value 0xFF45 to the I/O Register at location 0x001011.

But somehow only the 8 LSB bits are changed to the new value whereas the 8 MSB bits are unchanged.

That is 'FF' in this example is not  being written and only '45' gets written to the LSB. The MSB remains unchanged.

Does anyone know why ?

The location 0x1011 is the Asynchronous CS2 Configuration Register 2 which does have all the bits read write capable.

(Other locations like 0x001004 can be editted.)

Thanks in advance,

- AV.

 

  • How do you write the value to the 0x001011 regisgter? Did you use the memory window or part of your code ?

  • Peter et al,

    Writing is done is two ways:

    1. *(volatile ioport Uint16*)(0x1011) = 0xFF45;

    2. Done by going to View -> Memory .  Choose the I/O section then enter the address 0x001011. Then I manually go and try to change the data value.

    By both the above ways the value at I/O location 0x001011 does not change in the MSB.

    Please note that this is being tried when connecting the USB ezDSP stick 5515.

    Regards,

    - AV