I'm in the process of hooking up a serial device via the RX/TX pins on my duemilanove/328. The device communicates at 7 bit, even parity, 1 stop bit, 300 baud. Web searching and 328 manual reading has given me the following setup code:
Serial.begin(300);
UCSR0C = (2<<UPM00)|(0<<USBS0)|(2<<UCSZ00)|(0<<UCPOL0); // parity, stop, size, clk
Also, I only have the unmarked device as is - no brand, model etc (plus some protocol info). Other than connecting Rx/TX, I'm guessing all I need is the DB9 ground pin. The device is powered via serial. Does anyone have any advice to share?
- tinker