Hi,
- this code silently crashes Panda II (SDK Version 1.0.14 ) but not the emulator:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
namespace myprog
{
public class Program
{
private static InterruptPort _Port;
private static NativeEventHandler _Interrupt;
public static void Main()
{
_Interrupt = new NativeEventHandler(InterruptHandler);
_Port = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di43, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeBoth);
//_Port.OnInterrupt += _Interrupt;
_Port.EnableInterrupt();
while (true)
{
Thread.Sleep(5000);
}
}
private static void InterruptHandler(uint Port, uint State, DateTime time)
{
}
}
}
the program simply exits after EnableInterrupt() .
i know thats a bad idea to enable interrupt without ISR, but i guess it should be possible to add/remove
delegates at all times.
- uart question
is it possible to use uarts as digital input samplers?
i mean to scan a bitstream by an uart “as is” at a specified baudrate (without taking start/stop/parity bits into account)
and to fetch received bytes.
it would be nice to reverse this operation.
thanks for help