Skip to content

Instantly share code, notes, and snippets.

@macchina
Created June 21, 2016 17:21
Show Gist options
  • Save macchina/23305d9bbc2db2fa89e0c19962728575 to your computer and use it in GitHub Desktop.
Save macchina/23305d9bbc2db2fa89e0c19962728575 to your computer and use it in GitHub Desktop.
Controls PWM/VPW level
#include "SamNonDuePin.h"
const int LPC = PIN_EMAC_ERX0; // LOW POWER CONTROL pin
const int PWM_nVPW = PIN_EMAC_EMDC; // PWM/VPW level control
void setup() {
pinModeNonDue(LPC, OUTPUT);
pinModeNonDue(PWM_nVPW, OUTPUT);
digitalWriteNonDue(LPC, HIGH); // LOW = no power at +12V_SW/+5V_SW
// HIGH = power at +12V_SW/+5V_SW
digitalWriteNonDue(PWM_nVPW, HIGH); // LOW = 7.87v (VPW)
// HIGH = 5.88V (PWM)
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment