Netduino home hardware projects downloads community

Jump to content


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
  • 6876 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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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