IR-RS232 with pic 16F628A


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    jj 2's Avatar
    jj 2 Guest


    Did you find this post helpful? Yes | No

    Default

    I too am new to this forum. There are a lot of questions to be clarified.

    I assume the IR device output is TTL, 0-5 volts, 0 with no IR input and 5V with IR input. If so, why the Max232? Is the purpose of the Max 232 to provide output to go to a PC?

    I assume the device will output a sequence of ON/OFF TTL transitions similar to an RS-232 character - correct? Does the IR device output a RS-232 code? If not, then you need to decode the output some way. Assuming it is "RS-232 like" you will need to determine the bit timing and program the pic to detect the bit sequence.

    What is the data bit rate? I took a class once and we did some 1200 baud pic to PC RS-232 experiments using a 4MHz frequency for the pic. If the baud rate is faster you may need to go to a higher pic oscillator frequency.

    Google the Microchip web site and check out some of the application notes and sample code to get help on programming the pic to handle RS-232. Decoding another format code can be handled similarly.

    Hope this helps.

    jj 2

  2. #2
    aloncha's Avatar
    aloncha Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for your help!
    The purpose of the MAX232 is to provide output to go to a pc and input from the pc.
    I want to send some string by RS-232 and output a IR signal, so I want to use the PIC as a translator.
    I want to save in PIC the IR code of the equipment and make correspond some string to an IR code, example: typing "PL" on the hyperterminal I want the pic to send de PLAY IR code, previously known.
    I´m planning to use the 4MHz oscilator, so what is the maximum speed allowed for that crystal?
    If you have some code examples you will help me a lot!!
    Thanks

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  3. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. PIC to RS232 interface
    By thon in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th February 2004, 02:01

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts