Main Site Documentation

Do i need to use OutputCompare for this?


#1

Guys,

i need to toggle a pin in the following way:

00 01 00 00 01 00 01 01 01 01 00 01 0

Where
0 = 400uS high and 956uS low
1 = 1100uS high and 356uS low

Is this a job for OutputCompare? If so, can someone explain me how


#2

Only OutputCompare and only GHI can make this happen on NETMF :slight_smile:

Put these numbers in an array and pass them on to output compare object, that is all you have to do.

You can look at our existing driver code to see how we simulate UART using output compare
See this http://www.fezzer.com/project/48/serial-lcd-driver/

PS: This is the first time I use FEZer for support and I think it is very exciting. Good job GHI :slight_smile:


#3

You might look at the servo driver, it should explain it pretty well in code for you.