Sierra Wireless Writing an embedded application loader Manual do Utilizador Página 65

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 102
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 64
GHI Electronics,LLC Embedded Master User Manual
Hardware and Software Library
UART0 (COM1)
UART1 (COM2) This port includes hardware handshaking pins (CTS/RTS)
UART2 (COM3)
UART3 (COM4) This port includes IrDA capabilities.
Also, the user is able to have many more COM ports using USB serial chipsets. For
example, there are many USB <--> Serial cables available and these can be
connected directly to Embedded Master. Check Supported Devices Section.
Example
// create two bytes of data
byte [ ]data = new byte[2];
data[0] = 0x30;
data[1] = 0x55;
SerialPort port = new SerialPort("COM2", 115200, Parity.None, 8, StopBits.One);
port.ReadTimeout = Timeout.Infinite;
port.Open();
// send data
port.Write(data, 0, 2);
Hardware Handshaking on COM2 is supported through C#.
IrDA capabilities is done through direct register access. The user needs to check LPC2478
user manual for details.
Example
Enabling handshaking on UART1 (COM2)
port.Handshake = Handshake.RequestToSend;
port.Open();
Example
Setting Baudrate to 921600
Rev. 2.06 TFT Page 65 of 102 www.ghielectronics.com
Vista de página 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 101 102

Comentários a estes Manuais

Sem comentários