Serial Communication Using PIC16F84A


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18

    Default Serial Communication Using PIC16F84A

    I want to interface PIC16F84A with mobile phone. The aim of my project is to create a device that can control the relays using SMS. Here is some questions:

    1) WHat is UART? Please somebody explain it briefly.
    2) I read in the internet that PIC16F84A dont have built in UART so we must create this function using the software(programming) Can somebody teach me how to do this?

    3) If send the sms to mobile phones, is it possible that PIC16F84A can read this sms?

    Please help me, sorry if my question is too easy for you guys. Actually I'm a beginner in this field. Hope will learn a lot from you guys. Thanks

    Regards,
    Fakhzan

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by fazan83 View Post
    I want to interface PIC16F84A with mobile phone. The aim of my project is to create a device that can control the relays using SMS. Here is some questions:

    1) WHat is UART? Please somebody explain it briefly.
    2) I read in the internet that PIC16F84A dont have built in UART so we must create this function using the software(programming) Can somebody teach me how to do this?

    3) If send the sms to mobile phones, is it possible that PIC16F84A can read this sms?

    Please help me, sorry if my question is too easy for you guys. Actually I'm a beginner in this field. Hope will learn a lot from you guys. Thanks

    Regards,
    Fakhzan
    1 - www.google.com
    2 - www.google.com
    3 - No, the PIC cannot read SMS. It comes from the factory blank. You have to program it first.

  3. #3
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18

    Default

    Quote Originally Posted by skimask View Post
    1 - www.google.com
    2 - www.google.com
    3 - No, the PIC cannot read SMS. It comes from the factory blank. You have to program it first.
    What I mean is can somebody show me some example or teach me how to create UART function using PIC Basic Pro programming.

    I know the PIC is blank and we must program it, what I mean is, is it possible for us to create such a communication between the PIC and mobile phone and then we can read the data that being sending to the phone. Please advise.

    I know you are too good to answer such a question like this. But for such a beginner like me it is not a simple thing. Thanks

  4. #4
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by fazan83 View Post
    What I mean is can somebody show me some example or teach me how to create UART function using PIC Basic Pro programming.
    Look in the PBP Manual under Serin and Serout for details of how to create a serial input and output from your chosen PIC
    Keith

    www.diyha.co.uk
    www.kat5.tv

  5. #5
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18

    Default

    Quote Originally Posted by keithdoxey View Post
    Look in the PBP Manual under Serin and Serout for details of how to create a serial input and output from your chosen PIC
    Dont have the manual that u talking about. Can you please send it to me?
    Thanks

  6. #6
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default

    Mayday Mayday Houston!

    We got a problem !

    --------------------------

  7. #7
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by fazan83 View Post
    Dont have the manual that u talking about. Can you please send it to me?
    Thanks
    In that case I would suggest you return to the authorised retailer where you bought your PBP because the manual comes as part of the package.

    IYSWIM

    I think we have another entry on the list chaps !!!
    Keith

    www.diyha.co.uk
    www.kat5.tv

  8. #8
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18

    Default

    Quote Originally Posted by keithdoxey View Post
    In that case I would suggest you return to the authorised retailer where you bought your PBP because the manual comes as part of the package.

    IYSWIM

    I think we have another entry on the list chaps !!!
    If Do u mean the manual is the document that contain all the description of the PIC Basic Pro command then I know it explain about the Serial in but it doesnt story about how to create UART using bit-banging that can use any general-purpose I/O pins as RxD and TxD?

    This is what I want to know....not general description of serial in and serial out.

    Sorry if my question is funny.

  9. #9
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by fazan83 View Post
    If Do u mean the manual is the document that contain all the description of the PIC Basic Pro command then I know it explain about the Serial in but it doesnt story about how to create UART using bit-banging that can use any general-purpose I/O pins as RxD and TxD?

    This is what I want to know....not general description of serial in and serial out.

    Sorry if my question is funny.
    The whole point of PBP is that it does the hard work for you without you needing to know assembler.

    IF you want to bit bang serial data the hard way then write a PBP program using Serin/Serout and look at the resultant *.ASM file or Google for serial routines in Microchip Assembler.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  10. #10
    Join Date
    May 2006
    Location
    Kedah, Malaysia
    Posts
    18

    Default

    Quote Originally Posted by keithdoxey View Post
    The whole point of PBP is that it does the hard work for you without you needing to know assembler.

    IF you want to bit bang serial data the hard way then write a PBP program using Serin/Serout and look at the resultant *.ASM file or Google for serial routines in Microchip Assembler.
    Thanks keith

Similar Threads

  1. Replies: 18
    Last Post: - 4th July 2017, 15:26
  2. Wireless serial communication question
    By Ahmadabuomar in forum Serial
    Replies: 3
    Last Post: - 21st December 2009, 04:49
  3. Bootloader,MCSP and Serial communication
    By surfer0815 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd March 2006, 11:52
  4. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 16:45
  5. Replies: 8
    Last Post: - 11th November 2004, 21:08

Members who have read this thread : 1

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