[sdiy] (OT) Help with uart
Rainer Buchty
buchty at cs.tum.edu
Mon Feb 17 12:20:59 CET 2003
> Does anyone have experience using a SCC2692 DUART??
No, but a 2681 which is quite similar, IIRC. Here's how it works for the
UART#1 of the 2681 DUART:
First, reset the thing: 0x40 to BASE+2 (reset error status), 0x50 to
BASE+2 (reset break change irq), 0x20 to BASE+2 (reset receiver), 0x02 to
BASE+2 (disable receiver), 0x30 to BASE+2 (reset transmitter), 0x08 to
BASE+2 (disable transmitter).
Then reset the MR pointer (0x10 to BASE+2), apply 8n1 by writing 0x13
to BASE+0 and 0x07 to BASE+0 and set the proper timing based on the used
inport line (port 4, 16x mode in my case -> 0xee) by writing the desired
value into BASE+2. Finally, enable rx by writing 0x01 to BASE+2.
Hope that helps,
Rainer
--
Dr. Rainer Buchty, LRR, Technical University of Munich @ Garching
Phone: +49 (89) 289-18477, Fax +49 (89) 289-17662, Room 01.06.061
More information about the Synth-diy
mailing list