Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

I/O port access

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I/O port access

    It's not clear how one accesses the I/O pins. I'm interested in digital in and out, analog in, and PWM out. Is there a reference that shows how to program and use those various functions?

  • #2
    Hi Steve,

    For the TED hardware, at this point we only have TED-96. It is powered by PIXXI28 processor. This makes the pins programmable using the Pixxi's Internal Functions
    You will need to use the Genius environment to write your own code. The internal functions manual can be downloaded from this link. Please find the section GPIO Functions.

    Best Regards
    Juniel Cruz

    Comment


    • #3
      Hi Juniel,

      After reviewing the GPIO section of the Pixxi28 processor manual, would I be correct in my belief that there is no way to set or read the IO ports on the TED or TIMI by using any of the commands prefixed by 0x24 via the serial port? Only direct coding in the Genius environment under Mates Studio?

      Also, marginally related - the Mates_Controller_Command_Protocol_Manual.pdf lists several touch-screen oriented commands (swipe events, swipe values) - are these actively functional? Or are these proposed? I don't recall seeing anything stated about these displays responding to touch (although that would be incredibly cool and useful... )

      Thanks,

      Dave Xanatos

      Comment


      • #4
        Hi Dave,

        I'm adding here my reply to our email conversation.

        The Mates Controller protocol is primarily designed to interact with the widgets and the screen. It is possible to control the GPIO to a certain degree.

        I added the following commands to the documentationYou can view the diagrams for an example of the data exchange.

        For a brief example, you can send: 24 00 0A 00 01 00 00
        • Start byte: 0x24
        • Command: 0x000A – as shown, this sets the mode for the GPIO
        • Pin: 0x0001 – this specifies the pin, you have 1-7 for TED-96
        • Mode: 0x0000 – this specifies the target mode, 0 is OUTPUT, 1 is INPUT
        This sets Pin 1 as OUTPUT. Then you can send: 24 00 0B 00 01 00 01
        • Start byte: 0x24
        • Command: 0x000B – sets the value of the GPIO which was previously set as OUTPUT
        • Pin: 0x0001 – this specifies the pin, you have 1-7 for TED-96
        • Mode: 0x0001 – this specifies HIGH, 0 specifies LOW
        This sets the pin to HIGH.

        ​Please let us know if you have any issues with these commands.

        Also, marginally related - the Mates_Controller_Command_Protocol_Manual.pdf lists several touch-screen oriented commands (swipe events, swipe values) - are these actively functional? Or are these proposed? I don't recall seeing anything stated about these displays responding to touch (although that would be incredibly cool and useful... )​
        The touch commands are available for when the touch enabled displays are released, for example, we have the REPTOR-250. If you are using the latest Mates Studio, you should be able to see it listed as a module. It will also have a TED-250 variant which may be what you’d be more interested in since you are using TED-96.

        Best Regards
        Last edited by Juniel_BBM; 24-01-2023, 12:02 PM.
        Juniel Cruz

        Comment


        • #5
          I've been meaning to get back to you regarding these IO pin access items - I have tested them and they work well. This effectively allows me to use a smaller microcontroller with fewer IO ports exposed since I can send serial commands through the display to enable/disable external items now connected to the TED-96 IO ports, that had previously needed IO ports on my controller. Very handy.

          Comment


          • #6
            Thank David! Glad it is working well and that you find it really handy.

            If you have any other inquiries or topics you wish to discuss, please feel free to start a new forum thread or comment on an existing one.
            Juniel Cruz

            Comment

            Working...
            X