Re: MOD54415 HiResTimer
Posted: Fri May 31, 2013 8:38 am
Yes it does. You said that your new task runs with priority MAIN_PRIO+1. MAIN_PRIO+1 is higher/larger than MAIN_PRIO. That means it will only run when UserMain is not running. That means the only time period in which it gets to run is when an OSTimeDly or *Pend function is called during UserMain.
You also said you have interrupts for reading a PWM (I really hope I'm reading your post wrong!!!). If the PWM signal you're reading is remotely high frequency (>1KHz), you should be using a DMA Timer to sample it. Though thinking about it, you said this was reading an IMU, hence autopilot, so I'll assume the PWM is a Servo drive PWM and is 50 Hz, which should be fine. On that note... PAGING PAUL (He's done/is doing exactly what you're doing).
You're not by chance working on a project for Sparkfun's Autonomous Vehicle Competition, are you?
-Dan
You also said you have interrupts for reading a PWM (I really hope I'm reading your post wrong!!!). If the PWM signal you're reading is remotely high frequency (>1KHz), you should be using a DMA Timer to sample it. Though thinking about it, you said this was reading an IMU, hence autopilot, so I'll assume the PWM is a Servo drive PWM and is 50 Hz, which should be fine. On that note... PAGING PAUL (He's done/is doing exactly what you're doing).
You're not by chance working on a project for Sparkfun's Autonomous Vehicle Competition, are you?
-Dan