Created
June 21, 2016 17:21
-
-
Save macchina/23305d9bbc2db2fa89e0c19962728575 to your computer and use it in GitHub Desktop.
Controls PWM/VPW level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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