It is that time again! SparkFun Electronics will be closed Friday, January 13th for our annual inventory day. Please keep in mind that any orders placed after 2PM (Mountain Time) on Thursday, January 12th will not ship or be prepared for local pickup until we open for normal operations on Monday, January 16th. In addition, tours will resume on Friday, January 20th. Thank you for your patience!


Member Since: March 23, 2014

Country: United States

  • Well, turns out the baud rate somehow slipped to 4800, and the transmit pit is pin 4 of J1, not pin 2 or 3, as the documentation for the USART example from ATMEL states. Works OK! Fred

  • Hi, tried to hook up the LCD kit to an ATMEL Xmega A3Bu board, using the USART example; compiled and programmed no problem. Can’t get the LCD to display what I tell it to. Using USARTC0, and the yellow wire to either Pin2 or 3 of J1.

    // USART options.
    static usart_rs232_options_t USART_SERIAL_OPTIONS = {
        .baudrate = USART_SERIAL_EXAMPLE_BAUDRATE,  //9600
        .charlength = USART_SERIAL_CHAR_LENGTH, //8
        .paritytype = USART_SERIAL_PARITY,  //None
        .stopbits = USART_SERIAL_STOP_BIT //1
    // Initialize usart driver in RS232 mode
    // initialize the display
    usart_putchar(USART_SERIAL_EXAMPLE, 0x80 );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x0 );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x80 );
    usart_putchar(USART_SERIAL_EXAMPLE, 0xff );
    usart_putchar(USART_SERIAL_EXAMPLE, 0xfe );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x0c );
    usart_putchar(USART_SERIAL_EXAMPLE, 0xfe );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x0d );
    usart_putchar(USART_SERIAL_EXAMPLE, 0xfe );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x80 );
    usart_putchar(USART_SERIAL_EXAMPLE, 0x0 );
    while (1)
      usart_putchar(USART_SERIAL_EXAMPLE, 'a');

    Thanks in advancce,Fred

No public wish lists :(