TI E2E Community
MSP430F5310 SYS/BIOS Stepping on timer A0
I have successfully set up PWM on timer A0, and run it as a stand alone piece of code. However, when I set up A0 for PWM, timer A1 as a periodic timer with interrupt, and make the call to BIOS_start(), the A0 PWM gets changed. The timer 1 periodic timer continues to function correctly. I also notice the interrupt vector for timer A0 (53) is populated with a periodic function, but I have nothing like this defined in the configuration.
BIOS grabs A0 for the Clock tick timer.
You can get around this by explicitly configuring BIOS to use a different timer:
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
Clock.timerId = 2; /* stay away from A0 and A1 */
I'm still getting code placed at interrupt 53. This is a timer A0 interrupt. The interrupt is not executed, but it leaves me suspicious that something is messing with timer A0. Again, if I don't call BIOSstart() the PWM on timer A03 works just fine.
I had left Enable Clock Management unchecked when I tried the code. It's now working. Thank you.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.