Combining Pins
#1
Posted 13 September 2011 - 06:54 PM
#2
Posted 13 September 2011 - 07:20 PM
Unfortunately, the current version of .NET Micro Framework does not expose any class to access group of pins or the I/O port directly. You'd need to use for example Corey Kosak's SimpleNGen-enabled custom firmware, or implement it using native interop. The Netduino microcontroller has two 32-bit general purpose I/O ports, but only partially broken out (*) - there are two separate groups of 4 consecutive pins available (PWM0 - PWM3 and Analog In 0 - Analog In 3), so you'd need some bit manipulation anyway.But, what if you want to treat a block of pins as a single unit? I believe the ATMegas call this a PORT.
(*) To be compatible with Arduino
- Rage9532 likes this
#3
Posted 13 September 2011 - 08:18 PM
Welcome to the community!
Unfortunately, the current version of .NET Micro Framework does not expose any class to access group of pins or the I/O port directly. You'd need to use for example Corey Kosak's SimpleNGen-enabled custom firmware, or implement it using native interop. The Netduino microcontroller has two 32-bit general purpose I/O ports, but only partially broken out (*) - there are two separate groups of 4 consecutive pins available (PWM0 - PWM3 and Analog In 0 - Analog In 3), so you'd need some bit manipulation anyway.
(*) To be compatible with Arduino
I've taught myself a lot in the last couple of weeks, but I haven't gotten that far, yet.
Thanks!
#4
Posted 14 September 2011 - 12:30 AM
I wonder if this could be ported into the Netduino firmware? They also have an outputCompare class that looks pretty useful.
http://www.ghielectr...tion/Index.html
Oh well...
#5
Posted 14 September 2011 - 06:08 AM
Yes, it could be ported. I made Register class some time ago, which can be used for direct I/O port access too.I wonder if this could be ported into the Netduino firmware?
#6
Posted 14 September 2011 - 06:57 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users