Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: ecoli-557; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    That is exactly what I was looking for!
    I thought I had done this before but could have been mistaken.
    Will try later this evening.
    Thanks!
    -Steve
  2. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Thanks, I will give that a try.
    Now if I could write both bytes at the same SPI communication, that would be an even bigger win!
  3. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    OK, it is working!
    Thanks to all who helped and provided some food for thought.....
    Code below for any others who need to do this:


    OutA=$FFFF ...
  4. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Richard-
    I tried the following:


    OutA=$FFFF 'Initial value for word var
    PortDevice=$D ...
  5. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Thanks!
    I tried your suggestion:


    OutA=$FFFF 'Initial value for word var
    OutA.0=0 ...
  6. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Why does this not work?
    OutA.12=0 doesn't gen an error but it nor the other (OutA.15=0) turns ON an LED?????



    OutA=$FFFE 'Initial...
  7. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Henrik-
    Thanks for the assist, but I don't think I can use that idea. There are some outputs which will be already active which another serial command comes in and I will need to add to the already...
  8. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Thanks I will try that!

    I have made some progress but I still need a way to get from 1 byte which will tell me which of the 16 outputs to turn on.

    Current test code:


    ...
  9. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Henrik-
    Also forgot to mention that in the older I2C design I had 8 bits of inputs and 8 bits of outputs on one 2317.
    This new design is all outputs - I thought it would be easier!
    Not so...
  10. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Henrik-
    I may have been too hasty in my description ( I am back on my home project) as I am stumped. I had used the I2C version of this part a while back and have it working. Now I am trying to...
  11. Replies
    18
    Views
    13,058

    Re: Port alias in Port Expanders (MCP23S17)

    Thanks, yes I did say which chip in the topic.... <grin>.
    And yes again, that is what I had come up with and I had used that in the past - using
    outputs var byte[4]
    and then indexing by...
  12. Replies
    18
    Views
    13,058

    Port alias in Port Expanders (MCP23S17)

    Hello to All-
    I am trying to do something and I just can't break through the fog to see how this may be accomplished;
    Assign an alias to a port pin on a port expander.
    I know how to do it with a...
Results 1 to 12 of 12