Hello Joshua, I copied your code excerpt and was able to get it working from the start with CCS V6.1 and TI Compiler V5.2.2. I tested it by wiring the 3V3 pin to P5.4, in which case LED1 would turn on. ![]() The configuration of ADC10; The use of ADC10 to detect the internal. ADC of MSP430. Use ADC10 internal oscillator to time the sample and conversion. MSP430 has two internal voltage thresholds at 1.5V and 2.5V. This will saturate the output of ADC to these levels. So, if Voltage at ADC pin is any greater than 2.5 V it will show the maximum ADC reading. There is no 3V reference. Upon disconnection the LED would turn off. So your firmware is fine, the problem lies somewhere in the hardware. Make sure that the voltage you are supplying to P5.4 is greater than half of AVcc (1.65 V) and you could even try a continuity test between the P5.4 header and pin on the device to make sure that the connection is sound. You could also make sure that the LED header is properly connected, but seeing as how you aren't able to enter the ADC ISR at all I doubt that this is the issue. Guns up, Ryan. In reply to: I confirmed that if I check ADC14MEM0 before the __sleep() code LED0 is controlled properly. Buy your Carlo Gavazzi Parts & Components from Quantum First Automation at best competetive prices. Shop Online or Call us. Relays, Switches, Sensors. We have three purchase options to purchase Carlo Gavazzi Automation Components products if you are located within the United States: Through your local Distributor, call us with your five digit zip code. Carlo Gavazzi is an international group active in designing, manufacturing and marketing electronic equipment. The Group's products (sensors, monitoring relays, timers, energy management systems, solid state-relays, safety devices, fieldbus systems) provide automation solutions for the global markets of industrial and building automation. Carlo gavazzi usa distributors. What's odd is that it only works once and if I pause the debugger it is caught in the defaultISR routine of the msp432_startup_ccs. Okina character code. Autodesk plant 3d training video. I'm running the latest CCS 6.1.2 with all updates applied and working with the sample code so I'm at a loss as to why it seems the USR is not being handled properly. **Update** After doing a little more searching I ran across this thread, which gave me the clus that the startup file didn't get copied over when the project was created. I thought that would be the answer but unfortunately after making that change I am now not able to connect to the board. I don't think it's directly related to this but until I can fix this new error I am no longer able to debug code. 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. 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. Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.
0 Comments
Leave a Reply. |