My MBED run a program that controls external circuit boards via PWM & DigitalOut Signals... The problem I'm having is that two of the Digital Out pins (19 & 20) trigger an action on a slave board for a brief moment when the MBED starts up. Without getting into detail this triggers a fault in the overall system.
What I want is be able to declare the Digital Out pins and ensure they do not power up at all unless the program asks them to... In other words, set them low right away.
Here's what is going on...
I declare the pins in the header...
DigitalOut dUS(p19);
DigitalOut dDS(p20);
.... do other declarations .....
int main(){
... Very first thing I set them to zero when the program starts
dUS = 0;
dDS = 0;
........
The problem is that from the time I declare the pins to the time I set them to zero, They produce a slight power output. But it's enough to trigger the slave board and cause the fault...
Any Ideas?
Thank You
Tim
-
My MBED run a program that controls external circuit boards via PWM & DigitalOut Signals... The problem I'm having is that two of the Digital Out pins (19 & 20) trigger an action on a slave board for a brief moment when the MBED starts up. Without getting into detail this triggers a fault in the overall system.
What I want is be able to declare the Digital Out pins and ensure they do not power up at all unless the program asks them to... In other words, set them low right away.
Here's what is going on...
I declare the pins in the header...
DigitalOut dUS(p19); DigitalOut dDS(p20);
.... do other declarations .....
int main(){
... Very first thing I set them to zero when the program starts
dUS = 0; dDS = 0;
........
The problem is that from the time I declare the pins to the time I set them to zero, They produce a slight power output. But it's enough to trigger the slave board and cause the fault...
Any Ideas?
Thank You
Tim
-