Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: analogWrite to A10, A11

  1. #1

    analogWrite to A10, A11

    Having a bit of trouble performing analogWrite to A10 or A11 on Teensyduino 3.2.

    The oscilloscope shows no changes when monitoring either of those pins while sending, i.e.
    Code:
    analogWrite(A10, 256);
    .

    The schematic shows A10, A11 as ADC pins, will it be an issue, or a way to force these pins to analogWrite?
    https://www.pjrc.com/teensy/schematic.html

  2. #2
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,830
    The only pin that you can do analogWrite to on a Teensy 3.2 and get an analog result is pin A14 (the DAC pin) on the back of the Teensy 3.2. The pins A10 and A11 are only available as analog input pins.

    Note, you can write to the digital PWM pins with analogWrite, that that is a digital process that sends on/off pulses to simulate an analog current.

  3. #3
    That makes it clear, thanks Michael!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •