2/15/2023 0 Comments Msp432p401r wire library![]() ![]() And if you want to be really fancy, you can use the internal temperature sensor to account for clock drifts (but that is probably unnecessary, unless you are working at temperatures far from the ambient temperature). To further boost accuracy, you can increase the priority of the SysTick Interrupt via the NVIC. You can find plenty examples via google for the Cortex M4 which should also work for the MSP432, e.g.: patrickleyman.be/blog/stm32f407-delay-with-systick/ (you'll have to adjust some values & variables, but the principle should be applicable). I would then suggest to use the SysTick interrupt to implement a delay function. If timeout occurs, reset device (either Class 0 or Class 1) and ensure JTAG is accessed within a 10 second window. Then you can check which of the methods is more accurate and choose one of the clock sources (HFXT or DCO). Use Serial Wire Debug (SWD) as the debug/program interface instead of JTAG. The core clock MCLK can be exposed via P4.3 in the following way: P4->DIR |= BIT3 If you have a scope, you can verify the core frequency. I would suggest to do the following for a delay that should be accurate enough: set your CPU clock to 48 MHz using either a very precise oscillator or quartz or use the internal DCO to set the core clock. ![]() Supported 64-bit cores are Cortex-A35, Cortex-A53 and Cortex-A55. In this way we will see how we can set MSP432 Pins as input and output. ![]() We will use these onboard Pushbutton to start the multiple LED in sequence. This makes an exact delay tricky, as 1 μs corresponds to 48 CPU cycles (assuming your MSP is running at full 48 MHz). TI launchpad MSP432P401R is featured with onboard Pushbuttons which can be configured as input. I am guessing, that you want to delay accurately for a few microseconds rather than a few hundred. modem by taking advantage of the CMSIS DSP Library with on-chip timer and. and manipulate the hardware peripherals of the MSP432 platform The Texas Instruments MSP432 Driver Library (DriverLib) is a set. MSP432 Debugging Tools: Using Serial Wire Output With CCS Trace Analyzer (Rev. Your delay loop is fine, if you are ok with it blocking the CPU and possibly not being 100% percent accurate, since it can be interrupted by Interrupt and Fault Handlers. Theyre perfect for directly replacing a wired asynchronous serial interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |