Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: MSP432P401R: IR Library?

$
0
0
Part Number: MSP432P401R Hi Devs, I am working on an IR library but not having much success (not oscilloscope to help me either). My approach is just to translate a working Arduino library, however, I think I have the timings wrong. The 'time' variable needs to be in uS (microseconds). With bit marks as 560uS. The working code: Void sendMark(UInt time) { PWM_start(pwm0); if(time > 0) Task_sleep(time * (1 / Clock_tickPeriod)); } Void sendSpace(UInt time) { PWM_stop(pwm0); if(time > 0) Task_sleep(time * (1 / Clock_tickPeriod)); } So would Task_sleep be in microseconds of variable time? Thanks

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>