This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 pwm 38khz 红外信号高低电平 持续时间(NEC 红外遥控)

Other Parts Discussed in Thread: CC3200

请问一下, 是不是可以通过 控制pwm 38khz  载波  产生 或 不产生 的时间, 来控制发射红外信号的 持续时间了?从而控制红外电器。  pwm 输出引脚接到红外发射头上。

  • 可以的,如果实在不行,就在接受断整个单片机用于解码也行。

  • cc3200 控制 38khz 载波的产生 或 不产生,下面的实现 可以吗? 精确度度会不会不高?

    while(1)
    {
    MAP_UtilsDelay(8000);
    MAP_TimerDisable(TIMERA2_BASE,TIMER_B);
    MAP_UtilsDelay(800000);

    MAP_TimerLoadSet(TIMERA2_BASE,TIMER_B,TIMER_INTERVAL_RELOAD);/*TIMER_INTERVAL_RELOAD = 80Mhz/38khz = 2105*/
    MAP_TimerMatchSet(TIMERA2_BASE,TIMER_B,DUTYCYCLE_GRANULARITY);/*DUTYCYCLE_GRANULARITY = 1052 占空比50%*/

    MAP_TimerEnable(TIMERA2_BASE,TIMER_B);
    }