Infrared Protocol - 18F1320 - NEC

Discussion in 'Embedded Systems and Microcontrollers' started by ex-navy, Apr 22, 2008.

  1. ex-navy

    Thread Starter New Member

    Apr 22, 2008
    I am trying to design a 2 switch (momentary) embedded controller using the 18F1320.

    The protocol timing I need to generate is here:


    I need to generate the 38 khz that is pulse positioned as above.

    The data that needs to be sent when button 1 is pressed is here:


    The second button, the record button needs to send out this data:


    Has anyone come across a similiar type project where I might be able to look at sample circuits?

    I'm at a loss on how to generate the 38khz.

    Thank you
  2. AlexR

    Well-Known Member

    Jan 16, 2008
    Simplest way is to use the PWM module in the PIC to generate the 38KHz carrier and then use external logic to and it with your data stream.