Using 9600,8,n,2 on Arduino ?


I need to control a HP 34401A bench multimeter via RS-232 from my Arduino.

The baudrate, parity etc. is adjustable on the instrument, but 2 stop bits is not adjustable.

How do i make my Arduino do 2 stop bits ?!


// Per.

Maybe it's enough to enable 2 stop bits after calling Serial.begin():

UCSR0C |= 0b00001000;  // Force 2 stop bits