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.
I am attempting to run the example given in your MSP430 Peripheral Driver Library User's Guide section 44.3. I found the code in your MSPware driver library
and am wondering if there is anything beyond is shown in the code is required other than making it part of a real program. There is a comment in there about
adding interrupt handlers to the vector table. Your example follows what is specified in the IAR C/C++ Compliler Reference Guide but it does not specify anything
more either.
There is an example in the msp430ware_1_20_00_16\examples\driverlib\5xx_6xx\eUSCI_uart that ties it together.
Is this perhaps what you were looking for?
I was using the example in driverlib_1_25_00_00\driverlib\5xx_6xx\uart.c although it looks like your example has the same problem in that there are some names which are not defined in any of the include files. A number of them start with __MSP430_BASEADDRESS_... Also the vector specified in the pragma statement does not match anything in the vector interrupt table in msp430f249.h. Could there have been a naming convention change and these examples weren't completely updated?
Mark Vojta1 said:\5xx_6xx\uart.c
Mark Vojta1 said:msp430f249.h
If you use a 5x family example code for a 2x family device,your problems are to be expected. The 2x family USCI module has a completely different interrupt mechanism than the 5x family USCI. Also, on 2X family, USCIx0 and USCIx1 are using different interrupt flagging mechanisms. You can take al look at the users guides of both families to see the differences.
Are most of examples for 5x devices or did I download the wrong library of device drivers/examples?
AFAIK, the driverlib only supports 5x family, or at least started with supporting only 5x. I'm not sure whether 2x sample code is already included.Mark Vojta1 said:Are most of examples for 5x devices or did I download the wrong library of device drivers/examples?
However, sample code for your 2x family MSP should be available from the MSPs product page on the TI website.
I found the sample code examples and they do make sense, thank you. I originally gravitated toward the MSPware because of their driver library.
The drive rlibrary is quite new and being constantly improved. It started with 5x family code and is now expanding toards othe rfamilies. However, much of the code in the library was already available as separate example code and available from the product pages.Mark Vojta1 said:I originally gravitated toward the MSPware because of their driver library.
**Attention** This is a public forum