PWM and Serial on 8/10

Chris Botha
Chris Botha New Member Posts: 48
edited November 2016 in UP Board Windows
1. How can i write a PWM signal to a PWM pin using the cSharp SDK/API

2. How can I setup serial communication of pins 8/10 (gpio14/15).

3. Can someone explain what the bitmask is for, and how we utilise it?

I had assumed once the drivers were installed the 8/10 combo would show up as a com port as it does in IoT but till so far no luck.

(there IS a com1 available from boot even without drivers, but I cannot find what it is or how to access it)

Thank you in advance

Comments

  • Chris Botha
    Chris Botha New Member Posts: 48
    edited November 2016
    to be clear i need to run a cable between the UP rx/tx and my arduino mega rx1/tx1 circuit internal to my build and NOT through the USB port externally from my build cabinet.

    as so but replacing RPi with the UP.

    WIRING.png
  • Jacky Kuo
    Jacky Kuo New Member Posts: 70
    Hi,

    About your questions:

    1. How can i write a PWM signal to a PWM pin using the cSharp SDK/API
    -> Windows doesn't support to control PWM signal.

    2. How can I setup serial communication of pins 8/10 (gpio14/15).
    -> Pin 8 and Pin 10 is unavailable under Windows.

    3. Can someone explain what the bitmask is for, and how we utilise it?
    -> Bitmask is like a "filter", please refer to related SDK API parameter to use. (No need to set the value ourselves)
  • Jacky Kuo
    Jacky Kuo New Member Posts: 70
    Hi,

    About your questions:

    1. How can i write a PWM signal to a PWM pin using the cSharp SDK/API
    -> Windows doesn't support to control PWM signal.

    2. How can I setup serial communication of pins 8/10 (gpio14/15).
    -> Pin 8 and Pin 10 is unavailable under Windows.
    Please use CN17 Tx Rx TTL signal.

    3. Can someone explain what the bitmask is for, and how we utilise it?
    -> Bitmask is like a "filter", please refer to related SDK API parameter to use. (No need to set the value ourselves)
  • Chris Botha
    Chris Botha New Member Posts: 48
    Thank you for the response, some question between in RED.

    1. How can i write a PWM signal to a PWM pin using the cSharp SDK/API
    -> Windows doesn't support to control PWM signal.
    Does this work in linux using the rpi.gpio softPWM command? If -YES- then its worth looking at writing a routine to do that in windows I guess, depending on if the pins can be accessed fast enough for it to make sense?

    2. How can I setup serial communication of pins 8/10 (gpio14/15).
    -> Pin 8 and Pin 10 is unavailable under Windows.
    Please use CN17 Tx Rx TTL signal.
    OK. Will look this up, cant seem to find any info at hand on doing it, but I'm being lazy I'll dig deeper.

    3. Can someone explain what the bitmask is for, and how we utilise it?
    -> Bitmask is like a "filter", please refer to related SDK API parameter to use. (No need to set the value ourselves)
    OK. Noted. I figured it might be related to the PWM question above, if its not relevant i wont mess with it.
  • Jacky Kuo
    Jacky Kuo New Member Posts: 70
    Hi CB,
    About question 1, PWM SDK development relates to project plan.
    As I know currently UP-CHT01 doesn't plan to develop Windows PWM API/SDK .

    Sorry I can do nothing about project planning..
    I suggest you can mail to "customization@aaeon.eu", give them your feedback and they will know user requirement and evaluate this.

    Thanks.
  • Chris Botha
    Chris Botha New Member Posts: 48
    Thank you for your response, I'm pretty much up the creek without a paddle then.. half an api on windows, no UP screen support in linux.. I'm almost scared to ask what the android support is like?