Looking for help with MSP430 interrupts

Comments

2 comments

  • Avatar
    Patrick Moran

    I would also like to know how to modify the msp430peripherals.js file to add the ADC converter. If you guys at Crossworks can shed some light that woudl be great.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    If you load the ctl samples these use the simulated timerA supplied in the msp430periperhals.js. You need to enable the peripheral simulation file using the target properties of the simulator.

    The msp430peripherals.js file is a JavaScript file that contains functions that are called by the simulator to read and write peripheral memory and to poll for interrupts. You can modify it with a text editor, take a local copy of it first and modify the target property to point to the local copy. It is loaded into the simulator when you connect to the target. You can't debug it when it is running with the simulator (and if it goes into an endless loop it will lock up CrossStudio).

    You can however use the Javascript console to load the file (using the load function) and you can then interactively call the functions to do some testing outside of the simulator.

    Regards

    Michael

    0
    Comment actions Permalink

Please sign in to leave a comment.