Wednesday September 8, 2010
Hello,
I am confused by the pin assignments for serial input.
Based on the silk-screening on my Maple Rev3 (summer 2010) I thought the three serial ports used the following pins on Maple board:
Serial1: TX1 (pin 07) RX1 (pin 08)
Serial2: TX2 (pin 01) RX2 (pin 00)
Serial3: TX3 (pin 29) RX3 (pin 30)
This information is the same as file: usart.html
However, the information appears to be different in file: \hardware\leaflabs\cores\maple\HardwareSerial.cpp
#define USART1_TX_PORT GPIOA_BASE
#define USART1_TX_PIN 9
#define USART1_RX_PORT GPIOA_BASE
#define USART1_RX_PIN 10#define USART2_TX_PORT GPIOA_BASE
#define USART2_TX_PIN 2
#define USART2_RX_PORT GPIOA_BASE
#define USART2_RX_PIN 3#define USART3_TX_PORT GPIOB_BASE
#define USART3_TX_PIN 10
#define USART3_RX_PORT GPIOB_BASE
#define USART3_RX_PIN 11
The code in HardwareSerial.cpp seems to suggest the pins are 9, 10, 2, 3, 10 (again), and 11.
I am using Windows XP Professional SP3 and Maple IDE 0.0.6.
Thanks!
Stephen from NYC