I have built a board on the basis of “FEZ Cobra Mainboard”.
I have tested all GPIO Pins, I find the signal of IO5 is very weak. the test code is as follow:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
namespace Outputporttest
{
public class Program
{
static OutputPort led1 = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.IO19, true);
static OutputPort led2 = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.IO5, true);
static OutputPort led3 = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.IO7, true);
static OutputPort led4 = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.IO45, true);
public static void Main()
{
int i = 0;
while (true)
{
if (i == 0)
{
led1.Write(false);
led2.Write(false);
led3.Write(false);
led4.Write(false);
Thread.Sleep(50);
i = 1;
}
else if (i == 1)
{
led1.Write(true);
led2.Write(true);
led3.Write(true);
led4.Write(true);
Thread.Sleep(50);
i = 0;
}
}
}
}
}
I have checked the signal of these 4 pins with oscilloscope.
IO19, IO7 and IO45 work well, but the signal of IO5 is very weak.
Is it Hardware problem or software problem?