Hi Anthony, you're right. TI has messed-up the port register names (or the positions). The first versions of the documentation listed them all in the wrong order, later revisions corrected this for the UCAxCTLy but still had them wrong for the UCBxCTLy. This was when this header file was last revised. The latest documentation is finally right and so will be usci.h after your patch :) I detected this myself while I was working on DMA support for SPI (and my discovery that the DMA registers are 16 bit access only, depsite of the docs defining _L and _H byte access subregisters, even made it into this latest revision) and corrected my personal copy of the file, but I didn't publish a patch yet. So credits go to you :)
JMGross ----- Ursprüngliche Nachricht ----- Von: Anthony Asterisk An: [email protected]; [email protected]; [email protected] Gesendet am: 16 Mrz 2010 02:42:03 Betreff: mspgcc4 usci.h error in definition of UCBxCTL0/1 I found an error in the usci.h modification for the 5xxx series. The definitions for UCBxCTL0/1 are swapped. The UCAxCTL are ok.
