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

SW serial


  • Please log in to reply
3 replies to this topic

#1 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 07 January 2012 - 05:57 PM

Hi Everyone, This might be a newb question. I'm looking to add some shields to my netduino. By looking at arduino examples it seems that you can define software serial ports on custom pins on the arduino interface. On netduino i only see serial port examples where people have attached stuff to pin 0 and 1. Is it possible to define a new serial port on eg. pin 7 and 8? and how do you do it. BTW Netduino is awsome!!!. I've spend 12 hours with mine, and i've got thermal printer and GPRS module up running. Gotta love it!.

#2 Bonzo

Bonzo

    Member

  • Members
  • PipPip
  • 12 posts

Posted 07 January 2012 - 06:14 PM

As far as I know, the Arduino achieves this by "bit-banging" I/O pins. (Google it if you don't know it) It should be possible using the Netduino as well, but I think you'd have to settle for low baudrates and small amounts of data. Your milage may wary... When that's said, the Netduino already have two UARTs; Pin 1+2 and 3+4. These will work with "any" baudrate and data amount. If you need communication with more than two devices at once, you might want to see if you can use SPI instead of the UART.

#3 dcypher

dcypher

    Member

  • Members
  • PipPip
  • 17 posts

Posted 08 January 2012 - 08:40 PM

When that's said, the Netduino already have two UARTs; Pin 1+2 and 3+4.


Thanks
Does UART2 interfere with usb debugging? Can I debug code over usb while using both UARTS?

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 09 January 2012 - 03:48 AM

Thanks
Does UART2 interfere with usb debugging? Can I debug code over usb while using both UARTS?


You can use both UARTs and debug over USB at the same time. They do not overlap in any way.

Chris




1 user(s) are reading this topic

0 members, 1 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.