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!.
SW serial
Started by
dcypher
, Jan 07 2012 05:57 PM
3 replies to this topic
#1
Posted 07 January 2012 - 05:57 PM
#2
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
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
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