X-10


Closed Thread
Results 1 to 7 of 7

Thread: X-10

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i can't really help 'cause i've never ever messed with any x-10 stuff but maybe the following Microchip's appnote may help

    http://ww1.microchip.com/downloads/e...tes/00236a.pdf
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Hello again.
    It's a bit difficult for me to help ATM as all my gear and books are packed away ready to move house, so I gotta go by memory.
    The way I see it, if the red led is blinking on the transmitter module then it is seeing some data. So far so good.
    The trouble I had was making sure the house code was right. Codes A to P are equal to 0 to 15 and not 1 to 16 which was where I mucked myself up for a while. Your house code is "D" so that is equal to "3" and I think you are sending as "5". The easiest thing to check is to set the house code on the receiving module at A and send it something, without changing your program, and if nothing switches, set the module to B and go through the settings right thru to P and see if that makes a difference.
    I've just had a look at my program, but without the manual to look at I can't remember what the variables are or the correct setup of the X
    OUT command so that's not much help huh?
    Anyway, it seems to me that the transmitter is getting data from your PIC so I would make a little bet that the house code is part (if not all) of the problem. PS have you told your program that you are running at 20MHz? Try running at 4 and see what happens.
    I'm gunna be off the air for a couple of weeks at least, so I can only wish you all the best and I'll check the forum out as soon as I am back on.

    My send line is XOUT datapin,zeropin,[house\index\2,house\%11010] and yours is xout portc.6,porta.3,[5\5,5\unitoff] so muck around with the syntax of yours and compare them. (Mine does work perfectly BTW).

    [house\index\2,house\%11010] translates to [housecode\unitcode\2,housecode\unit off] from memory the 2, represents number of send each command, or similar.

    Anyway, all the best, and I'll catch up with you in a cuppla weeks or so.

  3. #3
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Didn't work

    It didn't work. I have no idea what I am doing wrong. The led doesn't blink it only goes out and then comes back on.

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,

    For the XOUT lines you have shown in the code, I think your module would respond if set to F6, and not D5. So, either change the module address to F6, or change the XOUT command to XOUT PORTc.6,PORTa.3,[3\4,3\uniton] keeping the module at D5

    Hope this works!

    Regards,

    Anand

Similar Threads

  1. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 12:34
  2. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  3. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 22:40
  4. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 04:25
  5. Need help with 16f819 10 bit ADC
    By bannrikae in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th September 2005, 15:20

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