Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

COM port pin assignments, NP2

serial ports pin assignments Netduino Plus 2

Best Answer CW2, 11 September 2013 - 05:37 PM

The USART numbers on Tech Specs page do not relate directly to the microcontroller USARTs, they should be probably listed as COMs instead.

COM  | Pins     | Microcontroller | Tech Specs-----+----------+-----------------+-----------COM1 |  D0, D1  | USART6          | UART 1COM2 |  D2, D3  | USART2          | UART 2COM3 |  D7, D8  | UART4           | UART 3COM4 | SDA, SCL | USART1          | UART 4
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 w5uxh

w5uxh

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationLas Cruces, NM

Posted 11 September 2013 - 02:18 PM

Can anyone point me to documentation that identifies the mapping between device names like COM1 and COM2 etc. and the I/O pins of the Netduino Plus 2?

 

I can see in the schematic that D2/D3 are related to the chip USART2, and D7/D8 are related to the chip USART4, but I would guess there must be some specific documentation somewhere that tells me which pins are defined for COM1 and COM2?

 

In the Tech Specs, I also see the mapping between internal USARTs but it does not seem to agree with the schematic.  The Tech Specs say D2/D3 is UART2 and D7/D8 is UART3 (not UART4).  Perhaps I am getting confused looking back and forth.  But in some sample code I have found it appears I need to use COM1 type names.  I could use the scope and try to write code to wiggle pins for COM1 or COM2 but I hope there is some helpful documentation available for such things.

 

I have tried to search the forum and used general google searches but have not found this type of documentation so far.

 

Perhaps there are header files that provide a guide to such things?  I am new to the .NET environment so I am sure there are many fundamental pointers I still need to learn about.

 

Thanks.

 



#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 11 September 2013 - 05:37 PM   Best Answer

The USART numbers on Tech Specs page do not relate directly to the microcontroller USARTs, they should be probably listed as COMs instead.
COM  | Pins     | Microcontroller | Tech Specs-----+----------+-----------------+-----------COM1 |  D0, D1  | USART6          | UART 1COM2 |  D2, D3  | USART2          | UART 2COM3 |  D7, D8  | UART4           | UART 3COM4 | SDA, SCL | USART1          | UART 4


#3 w5uxh

w5uxh

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationLas Cruces, NM

Posted 11 September 2013 - 05:54 PM

Thanks for the quick response.  I marked this as answered because it does answer the specific question about mapping from COM ports to I/O pins.  I still wonder if there is a set of documentation for things like this, that relate software to hardware.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.