Shop OBEX P1 Docs P2 Docs Learn Events
Simple questions about SmartPin configurations — Parallax Forums

Simple questions about SmartPin configurations

rjo__rjo__ Posts: 2,114
edited 2019-11-30 18:02 in Propeller 2
Except for setting up the SmartPins, I honestly believe that the easiest language to learn and most efficient to use will always be P2PASM. It is such a joy and simple that it is hard to not recommend it as the first choice for a new user with any experience at all... except for the SmartPins.

I simply cannot read the documentation. Every time I try, I end up crying out for help. Which always arrives in the nick of time, but eventually you guys are going to get tired of answering SmartPin questions.

So... here goes: My investigation into whether or not an easy SmartPin configurator can be written....by me:)

Questions:

Is there a bit or bits which says "you're an output or you're an input"
Is there a bit or bits which says "you are digital" or "you are analog"

thanks

Rich

Comments

  • cgraceycgracey Posts: 14,155
    edited 2019-11-30 18:43
    The five-bit smart pin mode should correlate with the 13-bit low-level pin configuration for things like DAC and ADC functions, as well as input and output functions.
  • rjo__rjo__ Posts: 2,114
    That's what I mean:)

    You are speaking English. I'm hearing Greek as translated by a Russian as told to a Latvian.

    I'm guessing that your answer is "no."

    I used to invoke "for anyone but Chip" because it really upsets me to use any of your time.

    I'll get there... let the other guys chime in.

    Thanks

  • evanhevanh Posts: 15,916
    edited 2019-12-01 02:05
    I've written a couple of assistant docs to go with the main I/O and smartpins section in Chip's google doc. First one covers the config bits for custom pin modes, largely independent of smartpins. I know it probably also needs more verbose descriptions for each mode. Let me know if it helps - https://forums.parallax.com/discussion/comment/1452036/#Comment_1452036

    The other one is re-labelling the smartpin counter modes in general terms - https://forums.parallax.com/discussion/comment/1482243/#Comment_1482243

    EDIT: I also had a shot at making a block diagram of the I/O functions - https://forums.parallax.com/discussion/comment/1473762/#Comment_1473762

  • rjo__rjo__ Posts: 2,114
    Thank you EvanH. I took a look just to see what was there. I'm going to have to go back and study it.
    The "Figuator" that I was thinking about was a Boolean exercise. Now it looks as though it is going to be a series of switch buttons and fill in the blanks. The end result will be a P2Pasm prototype. It isn't real high on my list right now, but a little each day should get me there by February.

  • evanhevanh Posts: 15,916
    edited 2019-12-01 06:59
    A little trivia: There is 128 DAC channels (4x8 cogs + 4x8 streamers + 64 smartpins) feeding 64 DACs that can be muxed in 1088 ways. EDIT; Err, maybe that's not very realistic since the cog/streamer muxing is done in groups of four. So, more like 8 cogs x 16 four-channel groups x 2 for streamers + 64 smartpins = 320 ways.
  • evanhevanh Posts: 15,916
    edited 2019-12-01 14:10
    [deleted] Updated smartpin counter modes in other topic instead
  • rjo__rjo__ Posts: 2,114
    evanh,

    you are wonderful.

    thanks
  • evanh wrote: »
    A little trivia: There is 128 DAC channels (4x8 cogs + 4x8 streamers + 64 smartpins) feeding 64 DACs that can be muxed in 1088 ways. EDIT; Err, maybe that's not very realistic since the cog/streamer muxing is done in groups of four. So, more like 8 cogs x 16 four-channel groups x 2 for streamers + 64 smartpins = 320 ways.

    @evanh

    Muxed = multiplexing?? Can you send me a link to something that explains that. I have been trying to get an understanding.
    thanks.
    https://en.wikipedia.org/wiki/Multiplexing

  • evanhevanh Posts: 15,916
    edited 2020-01-24 21:59
    Those are applications. The building blocks of a multiplexer are a group of switches and the encoded control lines. For digital logic this can also be done with AND and OR gates - https://en.wikipedia.org/wiki/Multiplexer

    PS: About half way down the article, both arrangements are shown side by side.

  • @evanh
    Thanks I will look.
Sign In or Register to comment.