newbie with serial com question...


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Highly Doable

    Hi,

    As far as I understood you want to have a network of PICs on a common drop down serial bus and address them on specific requests . So your protocol may be a simple two byte thing, the first byte mentioning which PIC and the second what to do actually. Well if you are putting a DIP switch on a portb and using your entire portb as inputs then you can compare it with incoming address. In all PICs the ports are memory mapped registers so you can do a read directly.

    So as you did, It should work, like:

    IF incoming_address = portb then

    or you can have your own byte variable

    myvariable = portb

    Then compare or process your variable.
    Last edited by sougata; - 10th December 2006 at 05:48.
    Regards

    Sougata

Similar Threads

  1. Wireless serial communication question
    By Ahmadabuomar in forum Serial
    Replies: 3
    Last Post: - 21st December 2009, 03:49
  2. serial LCD/SLCD question
    By MatthewM in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th May 2009, 14:56
  3. Serial Question + General Review
    By Freman in forum General
    Replies: 2
    Last Post: - 20th June 2008, 22:27
  4. AN Question for "word" variable read The serial port
    By redfoen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2007, 17:39
  5. Simple question, I hope? (Serial control, 16F84A)
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st December 2005, 19:47

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