ttl serial port - Netduino Mini - Netduino Forums
   
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

ttl serial port


  • Please log in to reply
3 replies to this topic

#1 skywalker

skywalker

    New Member

  • Members
  • Pip
  • 4 posts

Posted 10 December 2010 - 07:14 PM

I got the chip running using rs232 port for download. I would like to use the usart for talking to a serial display at the same time. Can this be done? I tried some netduino code. "s1=new(serialports(com1)); " but got an error.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 December 2010 - 04:39 AM

I got the chip running using rs232 port for download. I would like to use the usart for talking to a serial display at the same time.
Can this be done? I tried some netduino code. "s1=new(serialports(com1)); " but got an error.


Hi skywalker,

Welcome to the Netduino community.

You can use the 3.3V TTL UART on pins 11 and 12 to communicate with a serial display (as long as the serial display uses 3.3V/5V signals). The port on pins 11 and 12 is COM1.

As far as your code, it should look something like "SerialPort s1 = new SerialPort("COM1", 115200...)". Can you post a snippet of your code?

Chris

#3 skywalker

skywalker

    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 December 2010 - 03:10 PM

I apologize for stupidty. I am new to this. I must be missing a reference. The project automaticaly added using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoMini; namespace NetduinoMiniApplication1 { public class Program { public static void Main() { // write your code here SerialPort s1 = new SerialPort("COM1", 115200); } } } I still get an error"missing a reference". When I look at the Microsoft.spot.hardware.system.io.ports. I dont see SerialPort, although there is a serial class listed.

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 December 2010 - 05:44 PM

I must be missing a reference. The project automaticaly added


Hi skywalker,

Be sure to add Microsoft.SPOT.Hardware.SerialPort.dll as a reference to your project.

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 © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.