From wrda@hp850.mbari.org Mon Nov 4 14:26 PST 1991 Received: by hp850.mbari.org (15.11/15.6) id AA11614; Mon, 4 Nov 91 14:26:52 pst From: Dave Wright Return-Path: Subject: no subject (file transmission) To: hebo@hp850.mbari.org (Bob Herlien) Date: Mon, 4 Nov 91 14:26:51 PST X-Mailer: ELM [version 2.2 PL0] Status: RO OASIS Programers Reference rev. 3 911104 _______________________________________________________________________________ Revision history 3 911104 Reassigned relays and UARTs, added pressure coefficients. 2 911025 Revised serial parameters for instruments, various corrections. 1 910924 Added A/D coefficients and serial parameters. 0 910920 Original document. _______________________________________________________________________________ Resource memory map (excluding CPU) Decode PAL version "OASIS 00" map 0 $0000 Start of it all! | $0200 Relay control port A $0201 Relay control port B $0202 Memory bank select port $0203 Resource control port | $0410 UART A base address (82C52) $0420 UART B base address (82C52) $0430 PIA A base address (MC146823) $0440 PIA B base address (MC146823) | $0600 Offcard bus start | $07FF Offcard bus end | | $2000 External EPROM start | | $7FFF External EPROM end | $8000 External RAM start | $DFFF External RAM end | $FFFF End of it all! _______________________________________________________________________________ Port bit assignments: Relay A $0200 7 6 5 4 3 2 1 0 open close open close open close open close relay 3 relay 2 relay 1 relay 0 _______________________________________________________________________________ Relay B $0201 7 6 5 4 3 2 1 0 open close open close open close open close relay 7 relay 6 relay 5 relay 4 Action for both open and close bits high is undefined, both low no change. _______________________________________________________________________________ Bank select port $0202 7 6 | 5 4 3 2 1 0 Memory map select | Memory bank select 0-15 for 128K devices _______________________________________________________________________________ Resource control port $0203, positive logic 7 UART B TBRE interrupt enable 6 UART A TBRE interrupt enable 5 UART clock enable 4 8 volt regulator disable 3 RS-485 transmitter enable 2 RS-232 converter disable 1 CPU serial mode RS-485 / *RS-232 0 unassigned _______________________________________________________________________________ UART modem control register Bit 1 of the MCR of the 82C52's controls the serial mode; low for 0-5V levels, high for RS-232 levels. They call this the DTR bit. _______________________________________________________________________________ SPI port, synthesised from CPU port P1 $000F 7 Slave select 2, uncomitted. 6 Slave select 1, uncomitted. 5 Slave select 0, real time clock. 4 PWM 2 3 PWM 1 2 MISO 1 MOSI 0 SCLK _______________________________________________________________________________ Interrupt sources: UART A transmit buffer empty JP21,1 UART A data ready JP21,2 UART A interrupt JP21,3 UART B transmit buffer empty JP21,4 UART B data ready JP21,5 UART B interrupt JP21,6 External bus interrupt request JP15,1 PIA or realtime clock interrupt JP15,2 Low battery voltage detect JP15,3 Interrupt receivers: NMI input pin JP17,33 EXTINT pin JP17,31 HSI.0 pin JP17,15 Jumper as appropriate. _______________________________________________________________________________ APPLICATION SPECIFICS Relay assignments: # Input Output Serial mode 0 CPU RS-232 serial Console connector 9600 N 8 1 1 UART A RS-232 serial CTD 9600 E 7 1 2 UART A RS-232 serial ATLAS 1200 N 8 1 3 UART A RS-232 serial ADCP 9600 N 8 1 4 UART B RS-232 serial Spectroradiometer 9600 N 8 1 5 UART B RS-232 serial Acoustic modem / Spare 9600 N 8 1 6 UART B RS-232 serial GPS 9600 N 8 1 7 CPU RS-232 serial Packet TNC 1200 N 8 1 _______________________________________________________________________________ Instrument power control via PIA A, port C, active high. Bit Device 7 Packet TNC and transceiver 6 GPS 5 Unassigned 4 Unassigned 3 Navigation lite 2 Acoustic modem 1 ADCP 0 CTD Port B bit 0 is the active high strobe (5uS. min) to write to the power control latch. _______________________________________________________________________________ Instrument "wake-up" Spectroradiometer Pulse bit 1 of port B of PIA A high for 50mS. ATLAS Take bit 2 of port B of PIA A high to enable serial communication, low to return to sleep. CTD Transmit until prompt "S>" appears. ADCP Transmit for 100mS. minimum. _______________________________________________________________________________ Analog channel assignments Units = (N+a)*b # Function Units Coef. a Coef. b 7 Unassigned 6 Unassigned 5 Can pressure PSIA -150.0 +0.035 4 Battery current Amps -516.5 -0.005 3 Battery voltage Volts 0.0 +0.0146 2 Can temperature Deg. C -225.28 +0.0976 1 PAR sensor 2 uE 0.0 +2.754 0 PAR sensor 1 uE 0.0 +2.754 _______________________________________________________________________________