Slim-Link® Web Server-Controller
June 2001
Micro-Controller incorporates Web-Enabled, Real-time Operating System
DESCRIPTION The Slim-Link family of Web Server-Controller products provides the ideal core technology for Internet enabled instruments and control systems. The Slim-Link Web Server Controllers are based on a 40 MHz AMD186ES microcontroller and feature MicroRTOS, a web enabled, real-time operating system developed spedifically for control system applications. MicroRTOS is embedded into each Slim-Link Web Server-Controller product with no additional cost or licensing fees. MicroRTOS MicroRTOS was created to simplify the process of designing a web enabled instrument or control system. This is accomplished by integrating a Preemptive Real-time Kernel, thin Web Server, and TCP/IP Stack into the fully-functioning operating system. The designer can then concentrate on the design of his application rather than integrating source codes from disparate applications. Three editions of MicroRTOS are available to support your application; the Basic edition, PPP Client Edition with Point-to-Point protocol for dial out applciations and the PPP Server Editon with Point-to-Point protocol for in bound dial-up applications. Models Six models of the Slim-Link® Web Server-Controller are currently offered. Each model is described below. AWC86: Features the Basic Edition of MicroRTOS and 34 Digital I/O Lines AWC86A: Features the Basic Edition of MicroRTOS with both Analog and Digital I/O Lines AWC86C: Features the PPP Client Edition of MicroRTOS and 34 Digital I/O Lines AWC86AC: Features the PPP Client Edition of MicroRTOS with both Analog and Digital I/O Lines AWC86S: Features the PPP Server Edition of MicroRTOS and 34 Digital I/O Lines AWC86AS: Features the PPP Server Edition of MicroRTOS with both Analog and Digital I/O Lines
CONTROLLER FEATURES * Fully integrated microcontroller based on a 40 MHz AM186 Processor. * 34 I/O function pins software selectable and configurable; - Two serial ports (RS232-TTL) - Eight 12-bit analog inputs; Two 12-bit analog outputs - Digital I/O, Timers, IRQs * 512KByte Flash memory for user application code, Web page layouts and control data; * 512KByte SRAM for run time code and data buffering * Development kits available MicroRTOS™ OPERATING SYSTEM FEATURES * * * * Multi-User, Multi-Task, Real-time Operation Preemptive real-time kernel for multi-tasking applications TCP/IP Stack supported by Ethernet datalink/physical layer Multi-user console tasks provides a user development and application platform
SOFTWARE DESIGN TOOLS
* Compatible with Borland Turbo C++ versions 3.0, 3.1, 4.5 and 4.52 and Microsoft Visual C++ Versions 1.0 to 1.52.
PACKAGING FEATURES * Small size: 2.75" L x 1.38" W x 0.42” H * Sturdy, encapsulated construction seals circuits from harsh environment; * Industrial temperature range available (-40C to +85C)
Advanced Web Communication
(1)
Slim-Link® Server
Slim-Link® Server Functional Block Diagram
Serial Port 1 Serial Port 0
AM186ES-40 CPU
Flash Memory 512KB
SRAM 512KB
10Base-T Ethernet
RJ45 to LAN
System Bus
Analog/Digital I/O’s Timers, IRQ’s
Slim-Link® Server Feature Table
FEATURE
CPU Flash RAM Network I/F Programmable I/O Dedicated Digital Inputs Analog Inputs Analog Outputs Real-Time Clock MicroRTOS 2.0 TCP/IP Stack PPP Client PPP Server Web Server Telnet Server
AWC86
AM186-ES 512 KBytes 512 KBytes 10BASE-T 26 8 N/A
AWC86C
AM186-ES 512 KBytes 512 KBytes 10BASE-T 26 8 N/A
AWC86
AM186-ES 512 KBytes 512 KBytes 10BASE-T 26 8 N/A
AWC86A
AM186-ES 512 KBytes 512 KBytes 10BASE-T 22 8 2 Yes
AWC86AC AWC86AS
AM186-ES 512 KBytes 512 KBytes 10BASE-T 22 8 2 Yes AM186-ES 512 KBytes 512 KBytes 10BASE-T 22 8 2 Yes
Basic Edition Client Edition Server Edition Basic Edition Client Edition Server Edition Yes No No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes No No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes
Advanced Web Communication
(2)
Slim-Link® Server
Slim-Link® Server Mechanical Specifications
INCHES
PIN A B C D E F G H J MIN 2.740 0.420 1.370 1.190 2.490 0.125 0.080 0.115 0.090 MAX 2.760 0.430 1.390 1.210 2.510 0.200 0.100 0..135 0.110
METRIC(MM)
MIN 69.60 10.67 34.80 30.23 63.25 3.18 2.03 2.92 2.29 MAX 70.10 10.92 35.31 30.73 63.75 5.08 2.54 3.43 2.79
A B H J E C F H
G
D
G
AWC86 and AWC86A Pin Configurations
AWC86
TD+ TDRD+ RDO1 O2 O3 O4 52 O 51 O 50 O 49 O 48 O NSTAT NXMT N/C N/C DIO0(TXDA) DIO1(RXDA) DIO2(/RTSB) DIO3(/CTSB) DIO4(TXDB) DIO5(RXDB) DIO6 DIO7 DIO8(INT2) DIO9(INT4) NMI INT1 INT3 CLKOUT RESETOUT /RESET GND O6 O7 O8 O9 O 10 O 11 O 12 O 13 O 14 O 15 O 16 O 17 O 18 O 19 O 20 O 21 O 22 O 23 O 24 O 25 O 26 47 O 46 O 45 O 44 O 43 O 42 O 41 O 40 O 39 O 38 O 37 O 36 O 35 O 34 O 33 O 32 O 31 O 30 O 29 O 28 O 27 O VCC DIO21(TIN1) DIO20(TOUT) DIO19(DT/R) DIO18 DIO17 DIO16(TOUT0) DIO15(TIN0) DIO14(INT5) DIO13(INT6) DIO12 DIO11 DIO10 DIO25 DIO24 DIO23 DIO22 DIN7 DIN6 DIN5 DIN4 DIN3 DIN2 DIN1 DIN0 GND NSTAT NXMT N/C N/C DIO0(TXDA) DIO1(RXDA) DIO2(/RTSB) DIO3(/CTSB) DIO4(TXDB) DIO5(RXDB) DIO6 DIO7 DIO8(INT2) DIO9(INT4) NMI INT1 INT3 Vref V.BAT /RESET DGND O6 O7 O8 O9 O 10 O 11 O 12 O 13 O 14 O 15 O 16 O 17 O 18 O 19 O 20 O 21 O 22 O 23 O 24 O 25 O 26 TD+ TDRD+ RDO1 O2 O3 O4
AWC86A
52 O VCC 51 O DIO21(TIN1) 50 O DIO20(TOUT1) 49 O DIO19(DT/R) 48 O DIO18 47 O DIO17 46 O DIO16(TOUT0) 45 O DIO15(TIN0) 44 O DIO14(INT5) 43 O DIO13(INT6) 42 O DIO12 41 O DIO11 40 O DIO10 39 O D/A1 38 O D/A0 37 O MUXOUT 36 O ADCIN 35 O AIN7 34 O AIN6 33 O AIN5 32 O AIN4 31 O AIN3 30 O AIN2 29 O AIN1 28 O AIN0 27 O AGND
Advanced Web Communication
(3)
Slim-Link® Server
Slim-Link® Server Pin Descriptions Pin
1 2 3 4 5 6 NSTAT
Signal
TD+ TDRD+ RD-
Model
All All All All All All
Description
TD+ is the positive lead of the 10Base-T transmit pair. The transmit pair presents an impedance of 100 ohms. TD- is the negative lead of the 10Base-T transmit pair. The transmit pair presents an impedance of 100 ohms. RD+ is the positive lead of the 10Base-T receive pair. The receive pair presents an impedance of 100 ohms. RD- is the negative lead of the 10Base-T receive pair. The receive pair presents an impedance of 100 ohms. No Pin NSTAT is an active low output which indicates the status of the LAN connection to the Slim-Link® Server. A low indicates the LAN connection is active. The NSTAT output can sink up to 12 milliamps to drive an LED indicator. NXMT is an active low output. It goes low to indicate that the Slim-Link ® Server is transmitting data onto the Local Area Network. The function of this signal can be altered in the Ethernet Controller’s ISA Controller Status Register 7. The NXMT output can sink up to 12 milliamps to drive an LED indicator. No Connection; reserved for future use. No Connection; reserved for future use. This pin provides access to Programmable Input/Output 27 from the AMD186 controller. This I/O line can also be used as the Transmit Data input for Serial Port A. Hardware Flow Control is not available on Serial Port A. This pin provides access to Programmable Input/Output 28 from the AMD186 controller. This I/O line can also be used as the Received Data output for Serial Port A. Hardware Flow Control is not available on Serial Port A. This pin provides access to Programmable Input/Output 20 from the AMD186 controller. This I/O line can also be used as the Request to Send output for Serial Port B. Request to Send is used for hardware flow control. The SlimLink® Server deactivates Request to Send to stop the flow of data from the peripheral equipment. This pin provides access to Programmable Input/Output 21 from the AMD186 controller. This I/O line can also be used as the Clear to Send input for Serial Port B. Clear to Send is used for hardware flow control. When Clear to Send is inactive, the Slim-Link® Server will not transmit data to the peripheral equipment. This pin provides access to Programmable Input/Output 22 from the AMD186 controller. This I/O line can also be used as the Transmit Data input for Serial Port B. This pin provides access to Programmable Input/Output number 23 from the AMD186 controller. This I/O line can also be used as the Transmit Data input for Serial Port B.
7
NXMT
All
8 9 10
N/C N/C DIO0(TXDA)
All All All
11
DIO1(RXDA)
All
12
DIO2(/RTSB)
All
13
DIIO3(/CTSB)
All
14
DIO4(TXDB)
All
15
DIO5(RXDB)
All
Advanced Web Communication
(4)
Slim-Link® Server
Slim-Link® Server Pin Descriptions (continued) Pin
16 17 18
Signal
DIO6 DIO7 DIO8(INT2)
Model
All All All
Description
This pin provides access to Programmable Input/Output 24 from the AMD186 controller. This pin provides access to Programmable Input/Output 25 from the AMD186 controller. This pin provides access to Programmable Input/Output 31 from the AMD186 controller. It also provides the input for Interrupt Request 2 to the Slim-Link® Server. This pin provides access to Programmable Input/Output 30 from the AMD186 controller. It also provides the input for Interrupt Request 4 to the Slim-Link® Server. This input provides access to the non-maskable interrupt to the microcontroller. This is the highest priority interrupt available on the Slim-Link® Server INT1 provides the input for Interrupt Request 1 to the to the microcontroller. INT3 provides the input for Interrupt Request 3 to the to the microcontroller. This output provides the clock signal for the rest of the embedded control system in the AWC86. Depending upon the value set in the System Configuration Register of the AMD186 controller CLKOUT can be at 40 MHz, at the PowerSave frequency, or may be tri-stated. The Power-Save frequency is programmable from 1/2 (20 MHz) to 1/128 (312.5 KHz) of the system clock This input provides the reference voltage for the Slim-Link® Server analog inputs. VREF should not exceed VCC by more than 50 millivolts. This output provides an active high reset pulse for the complete embedded control system. The duration of the reset pulse is typically 13 milliseconds. The reset pulse is sent each time power is applied to the AWC86 or the /RESET signal is driven low. This input the battery backup voltage for the AWC86A Real-Time Clock. A minimum of two volts must be maintained on VCC1 to maintain the Real-Time Clock. This input allows an the Slim-Link® Server to be reset from an external source. Reset must be held low for a minimum of one millisecond to initiate a Slim-Link Server reset. DGND provides the reference ground for the Slim-Link® Server’s Digital I/O signals. This signal provides the reference ground for the AWC86 I/O signals. This signal provides the reference ground for the AWC86A Analog I/O signals.
19
DIO9(INT4)
All
20 21 22 23
NMI INT1 INT3 CLKOUT
All All All AWC86
VREF 24 RESETOUT
AWC86A AWC86
V.BAT
AWC86A
25
/RESET
ALL
26 27
DGND GND AGND
ALL AWC86 AWC86A
Advanced Web Communication
(5)
Slim-Link® Server
Slim-Link® Server Pin Descriptions (continued) Pin
28
Signal
DIN0
Model
AWC86
Description
The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 0. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN0 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 1. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN1 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the ABD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 2. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN2 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 3. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN3 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 4. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN4 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 5. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN5 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 6. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller.
AIN0
AWC86A
29
DIN1
AWC86
AIN1
AWC86A
30
DIN2
AWC86
AIN2
AWC86A
31
DIN3
AWC86
AIN3
AWC86A
32
DIN4
AWC86
AIN4
AWC86A
33
DIN5
AWC86
AIN5
AWC86A
34
DIN6
AWC86
Advanced Web Communication
(6)
Slim-Link® Server
Slim-Link® Server Pin Descriptions (continued) Pin Signal Model Description
34 AIN6 AWC86A AIN6 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. The AWC86 buffers this digital data input and passes it to the AMD186 Address and Data Bus bit 7. The buffer for this input is controlled by Programmable Input/Output 2 from the AMD186 controller. AIN7 provides one of 8 analog input channels to the AWC86A. The integral Analog to Digital Convertor creates a serial digital representation and sends it to Programmable Input/Output 26 of the AMD186 controller. This pin provides access to Programmable Input/Output 29 from the AMD186 controller. ADCIN provides the input to the Analog to Digital Convertor. This input is normally tied to the MUXOUT line. This pin provides access to Programmable Input/Output 26 from the AMD186 controller. MUXOUT is the output of the eight to one multiplexor which serves the eight Analog Input lines on the AWC86A. This output is normally tied to ADCIN. This pin provides access to Programmable Input/Output 15 from the AMD186 controller. This pin provides one of the two analog outputs (VoutA) from the Digital to Analog Convertor Output integrated into the AWC86A. The digital data is supplied by Programmable Input/Output 26 from the AMD186 controller. This pin provides access to Programmable Input/Output 3 from the AMD186 controller. This pin provides one of the two analog outputs (VoutB) from the Digital to Analog Convertor Output integrated into the AWC86A. The digital data is supplied by Programmable Input/Output 26 from the AMD186 controller This pin provides access to Programmable Input/Output 17 from the AMD186 controller. This pin provides access to Programmable Input/Output 16 from the AMD186 controller. This pin provides access to Programmable Input/Output 14 from the AMD186 controller. This pin provides access to Programmable Input/Output 13 from the AMD186 controller. It also provides the input for Interrupt Request 6 to the Slim-Link® Server. This pin provides access to Programmable Input/Output 12 from the AMD186 controller. It also provides the input for Interrupt Request 5.
35
DIN7
AWC86
AIN7
AWC86A
36
DIO22 ADCIN
AWC86 AWC86A AWC86 AWC86A AWC86 AWC86A
37
DIO23 MUXOUT
38
DIO24 DA0
39
DIO25 DA1
AWC86 AWC86A
40 41 42 43
DIO10 DIO11 DIO12 DIO13(INT6)
ALL ALL ALL ALL
44
DIO14(INT5)
ALL
Advanced Web Communication
(7)
Slim-Link® Server
Slim-Link® Server Pin Descriptions (continued) Pin Signal Model Description
45 46 47 48 49 DIO15(TIN0) DIO16(TOUT0) DIO17 DIO18 DIO19(DT/R) ALL ALL ALL ALL ALL This pin provides access to Programmable Input/Output 11 from the AMD186 controller. It also provides the input for Timer 0. This pin provides access to Programmable Input/Output 10 from the AMD186 controller. It also provides the output for Timer 0. This pin provides access to Programmable Input/Output 6 from the AMD186 controller. This pin provides access to Programmable Input/Output 5 from the AMD186 controller. This pin provides access to Programmable Input/Output 4 from the AMD186 controller. As DT/R, this controls the data flow through an external data-bus transceiver. When DT/R is high, the AMD186 transmits data; the AMD186 receives data when DT/R is low. This pin provides access to Programmable Input/Output 1 from the AMD186 controller. It also provides the output for Timer 1. This pin provides access to Programmable Input/Output 0 from the AMD186 controller. It also provides the input for Timer 1. Plus 5 Volt Power for the Slim-Link® Server
50 51 52
DIO20(TOUT1) DIO21(TIN1) VCC
ALL ALL ALL
Slim-Link® Server Absolute Maximum Ratings
VCC DC Input Voltage Storage Temperature Range Operating Temperature Range Lead Temperature During Soldering 5.5 Volts -0.5 to +5.5 Volts -20C to +100C 0C to 70C (-40C to +85C Available) 260 C for 2 seconds maximum
Slim-Link® Server Power Supply Characteristics
Symbol VCC ICC V.bat* I.bat* Vref Parameter Supply Voltage Supply Current Battery Voltage for Real-Time Clock Battery Current Draw A/D Reference Voltage 1.500 2.0 Min 4.75 Typ 5.0 250 3.0 0.2 4.096 5.5 0.3 5.000 Max 5.25 Units Volts milliamps Volts microamps Volts
* External Battery Backup for Real-Time Clock
Advanced Web Communication
(8)
Slim-Link® Server
Slim-Link® Server I/O Characteristics
Digital I/O Signals
Signal Programmable I/O Lines1, 2 Mode INPUT OUTPUT Digital Input Interrupt Lines Reset NXMT NSTAT
1
Maximum Voltage Low 0.8 Volts 0.45 Volts 0.8 Volts 0.8 Volts 0.8 Volts 0.8 Volts 0.8 Volts
Minimum Voltage High 2.0 Volts 2.4 Volts 2.0 Volts 2.0 Volts 2.4 Volts 2.4 Volts 2.4 Volts
INPUT OUTPUT INPUT INPUT OUTPUT
DIO22, DIO23, DIO24, and DIO25 are not provided on the AWC86. On the AWC86A these signals are used to control analog inputs and outputs. DIO8, DIO9, DIO13, DIO14, include a 10K pull down resistor.
2
Analog I/O Signals (AWC86A only)
Signal Analog Inputs Analog Outputs Mode INPUT OUTPUT Maximum Voltage -0.3 Volts 0.0 Volts Minimum Voltage VCC+ .3 Volts 4.096 Volts
Network Interface Signals
Signal TD+ TDRD+ Description Ethernet 10Base-T Transmit Data Positive Ethernet 10Base-T Transmit Data Negative Ethernet 10Base-T Receive Data Positive Impedance for Line Pair 100 Ohms Transmit Pair 100 Ohms Transmit Pair 100 Ohms Receive Pair Maximum Loop Length 100 Meters 100 Meters 100 Meters
Advanced Web Communication
(9)
Slim-Link® Server
Slim-Link® Server Local Area Network Connection
The Slim-Link® Server integrates a 10Base-T connection. An AMD AM79C961A Ethernet Controller is linked to the AMD186 main controller to handle the local area network interface. The AM79C961 provides both the Ethernet Control functions and 10Base-T transceiver facilities. The integrated AM79C961A supports an IEEE 802.3 or ANSI 8802-3 compliant 10Base-T network connection. The ethernet controller handles all data framing, addressing and error detection tasks, and manages collision handling and avoidance. The AM79C961A operates in Bus Master mode permitting it to directly address all memory locations. The fixed Ethernet Physical address is stored in an on-board EEPROM with other configuration data.
Slim-Link® Server Serial Ports
The Slim-Link® Server includes a pair of serial ports for local communications. These ports come directly from the AM186 controller. Serial Port B supports hardware flow control lines as well as transmit and received data. Serial Port A supports only transmit and received data. Serial Port A Serial Port A corresponds to Serial Port 1 of the AM186 micro-controller. Serial Port A includes only the TXD (Transmit Data) and RXD (Received Data) signals. These signals are active low. Serial Port A does not support Hardware Flow Control. In-band flow control should be used instead. When using in-band flow control, predefined XON and XOFF characters serve as flow control signals from the controller and peripheral. The equipment places an XOFF character in the data stream when it can no longer accept data. An XON character is sent when data traffic can again be accepted. Serial Port A Signal TXDA RXDA AM186 Signal PIO27 PIO28 Serial Port B Serial Port B corresponds to Serial Port 0 of the AM186 micro-controller. Serial Port B includes hardware flow control lines RTS (Request to Send) and CTS (Clear to Send) as well as TXD (Transmit Data) and RXD (Received Data). All signals are active low. The hardware flow control lines regulate the flow of data between the Slim-Link® Server and its serial peripheral. When both devices can receive data the RTS and CTS lines remain active. The Slim-Link® Server should keep RTS active as long as it can accept data from the peripheral equipment. It should drop RTS to signal the peripheral equipment that it cannot accept data on RXD. The peripheral equipment will likewise manipulate CTS to indicate when it is unable to accept data on TXD. Serial Port B Signal TXDB RXDB RTSB CTSB AM186 Signal PIO22 PIO23 PIO20 PIO21
Advanced Web Communication
(10)
Slim-Link® Server
AWC86A Analog Outputs
The AWC86A includes two Analog Output pins. These outputs are supported by a 12-bit internal digital to analog convertor within the Slim-Link Server. Three of the AM186 Programmable Input/Output lines are used to support this function. Digital to Analog Convertor The Digital to Analog Convertor converts 24-bit serial data bytes into two analog output signals. The serial data is transmitted synchronously from the AM186 controller to the Digital to Analog Convertor. The first 12 bits define the level at DA0; the remaining 12 bits define the level at DA1. The maximum output voltage on either analog output is 4.095 volts, the Least Significant Bit equals 1 millivolt. The three signals which control the integral Digital to Analog Convertor are PIO3, PIO26 and PIO29. Serial data is presented to the digital to analog convertor on PIO26. The serial data clock is presented by PIO3. PIO3 controls the flow of data within the Digital to Analog Convertor. PIO3 low permits the serial data to be clocked into the input shift register. When PIO3 is high data is transferred from the shift register to the DAC Registers and updates the DA0 AND DA1 outputs.
AWC86A Analog Input Lines
The Slim-Link® Server is available with 8 Analog Input pins, AWC86A only. These inputs feed into a common 12-bit Analog to Digital Convertor, ADC. Three of the Programmable Input/Output lines from the AMD186 support these analog inputs. Analog to Digital Convertor, ADC An integral Analog to Digital Convertor converts the analog inputs to a serial digital data stream. The maximum sampling rate of the ADC is 16.8 KHz. The ADC provides 12-bit resolution; the least significant bit equals .00122 volts. The AWC86A multiplexes all eight analog inputs into a single ADC under the control of the AMD186 controller. With Programmable Input/Output 2 high the AMD186 controller sends the 4-bit multiplexor address on Programmable Input/Output 26. When Programmable Input/Output 2 is low, serial data flows from the ADC to the AMD186 controller on Programmable Input/Output 26. The synchronizing clock for the data is provided by the AMD186 on Programmable Input/Output 29. Analog Channel Selection As mentioned above, a 4-bit word is issued by the AMD186 controller to select the analog channel. The logic table below shows how each channel is addressed. Selected Channel All Off Ch 0 Ch 1 Ch 2 Ch 3 Ch 4 Ch 5 Ch 6 Ch 7 EN (bit 3) 0 1 1 1 1 1 1 1 1 D2 (bit 2) x 0 0 0 0 1 1 1 1 D1 (bit 1) x 0 0 1 1 0 0 1 1 D0 (bit 0) x 0 1 0 1 0 1 0 1
Advanced Web Communication
(11)
Slim-Link® Server
AWC86A Real-Time Clock
The AWC86A version of the Slim-Link ® S erver incorporates a Real-Time Clock. The Real-Time Clock tracks month, date, year, day, hours, minutes and seconds. Applying a battery voltage to Pin 24 permits the RealTime Clock to maintain the time when power is shut down to the AWC86A. The Real-Time Clock interfaces to the AM186 controller through Programmable Input/Output lines 15, 26, and 29. PIO15 controls the Real-Time Clock Reset. Reset must be high during serial communications and should be held low otherwise. PIO26 provides the serial data path to the Real-Time Clock. PIO29 provides the serial clock which synchronizes the data exchange with the AM186. Data sent to the Real-Time Clock is read on the Trailing edge of the serial clock; data is sent from the Real-Time Clock on the failing edge of the serial clock. Clock frequency should be no greater than 2 MHz. The Real-Time Clock stores Clock/Calendar data in seven registers. Other registers store control information and access a thirty byte RAM. Data can be read or written from the Real-Time Clock one register at a time or multiple registers may be addressed in a single burst. Command Byte: A command byte precedes each data transfer in the RealTime Clock. The bit mapping of the 8-bit command byte is shown below. Bit 7 - Most Significant Bit, Always 1 Bit 6 - 0 - Clock/Calendar Data 1 - RAM Data Bits 1-5 - Register Address Bit 0 - 0 - Write to Real-Time Clock 1 - Read from Real-Time Clock Clock/Calendar Registers: Seven registers store the clock and calendar information for the Real-Time Clock. Each of these registers is described below. Seconds: Register Address 00000 This register stores the second count in BCD form. The Clock Halt Flag is stored in bit seven. When this flag is set the clock’s oscillator is stopped. Minutes: Register Address 00001 This register stores the minute count in BCD form. Hours: Register Address 00010 This register stores the hour count in BCD form. Bit seven selects whether a 12-hour or 24-hour clock will be used. A 1 selects a 12-hour clock. When a 12-hour clock is used bit 5 stores AM/PM status. Date: Register Address 00011 This register stores the Date in BCD form. Month: Register Address 00100 This register stores the month in BCD form. Day: Register Address 00101 This register stores the day in BCD form. Year: Register Address 00110 This register stores the year in BCD form. Write Protect Register: Register address 00111 provides write protection for the Clock/Calendar Registers. New values cannot be written into these registers if bit seven of the Write Protect Register is set. Trickle Charge Register: The AWC86A can charge the battery used to backup the Real-Time Clock. The Trickle Charge Register, address 0100, controls the function. The bit-mapping of this register is shown below. The remaining bits set the maximum charging current as shown below. Bit 0 0 0 0 1 1 1 1 1 1 1 0 0 0 2 0 1 1 0 1 1 3 1 0 1 1 0 1 Max. Charge Current* 2.2 milliamps 1.1 milliamps 0.55 milliamps 1.8 milliamps 0.9 milliamps 0.45 milliamps
* All register settings not shown are invalid. Clock Burst Register: The Clock Burst Register, address 01111, allows the seven Clock/Calendar Registers and the Write Protect Register to be addressed with a single, continuous data string. RAM Burst Register: The RAM Burst Register, address 11111, allows all thirty of the RAM registers to be addressed with a single, continuous data string.
Advanced Web Communication
(12)
Slim-Link® Server
Slim-Link® Server Interactive Command Modes
The Slim-Link® Server includes three Interactive command modes: AWE86MON Monitor and MicroRTOS™ Real-Time Operating System are included in the Slim-Link Server module. The MicroRTOS™ Debug Utility is available as a User Command. The AWE86Mon is an enhanced version of the AMD 186 Monitor for the AM186ES-40 Microcontroller. MicroRTOS™ is Advanced Web Communication’s proprietary multi-user real-time operating system. The MicroRTOS™ Debug Utility permits designers to manipulate MicroRTOS™ features for applications development. If the Debug Utility is loaded into Flash memory, it can be accessed with the #Debug command. The table below shows how the developer moves between these three command modes.
Command Modes Flow Chart
Shutdown Y
Power On
Enter Monitor at AWE86MON Prompt
l1 g
Enter MicroRTOS™ at console_a/admin Prompt
Enter Debug at #Debug Web_Controller Prompt
Q
Advanced Web Communication
(13)
Slim-Link® Server
AWE86MON Monitor Commands
The Slim-Link® Server includes a 186 micro-controller monitor utility in firmware. This monitor program permits the developer to manipulate memory contents, execute and debug application programs through either of the Slim-Link® Server’s serial ports. Control is provided through the commands listed below. These commands must be issued in tenbit character format (8 data bits, no parity). The Slim-Link® Server will auto baud at data rates from 300 to 115,200 bits per second when an “a” is received in the first 3 seconds after power is applied. Command B C D E F G H I I J L M N O P Format B[Addr] C [Range, Addr] D [Start Addr, End Addr] E [Addr, List} F [Range, List] G [Addr] H I I[Word] J Ln M [(Start Addr, End Addr), New Addr] N[Argument List] O [Word] P [Parameter, Value] Description Set Break Point at listed address Compare contents of listed memory Range with the contents beginning at the listed Address. Display contents of the specified range of Memory Locations. Load data from list into memory beginning at the Memory Address shown. Fills locations in the listed Memory range with the listed values. Activate program with the start address shown Help, display AWE86MON monitor commands List System Information Input word from serial port Automatically determine new baud rate Load file n Move data in memory range to new location beginning with New Memory Address List all .exe arguments Output Word to serial port Load Value into selected Parameter. Parameters include baud rate setting, cpu speed to Monitor, automatically run selected file, monitor port, and protect flash memory. Display Register value Search for the Listed data within the range of Addresses given. Step through the execution of the program beginning at the selected Address or Word. Write hex file Name into Flash Memory Erase selected Sector of Flash memory Upgrade Boot Monitor, Replace the Monitor in Flash Memory, or Lock the Monitor into RAM.
R S T W X Z
R [Register Name] S[(Start Addr, End Addr), List] T [address, word] W [Name] X [Sector] Z
Advanced Web Communication
(14)
Slim-Link® Server
Slim-Link® Server Multi-User, Multi-Task Real-Time Operating System
MicroRTOS™ Version 2.0 Diagram
The Slim-Link® Server operates with MicroRTOS™, Multi-User, Multi-Task Real-Time Operating System. This operating system permits the Slim-Link Server to support multiple users and to run multiple tasks simultaneously in real-time. Multiple users can be connected to either serial port or over the ethernet connection to the HTTP server. MicroRTOS™ includes a preemptive real-time kernel to permit simultaneous support of multiple tasks. Up to 64 tasks can be managed. The tasks are juggled based on their assigned priority level. MicroRTOS™ handles network communications through the TCP/IP stack and Ethernet link. Both Ethernet’s datalink and physical layers are contained within the Slim-Link® Server module. The TCP/IP stack includes the Transport Control Protocol, Internet Protocol, User Datagram Protocol, Internet Control Message Protocol, and Address Resolution Protocol. In the future additional protocols will be added to the TCP/IP stack. Descriptions of the operating system commands appear on the following page. Only the first 3 letters of each command need to be entered and the commands are not case sensitive. Each command is terminated by striking the “Enter” key.
Advanced Web Communication
(15)
Slim-Link® Server
MicroRTOS™ COMMANDS
Command ? Adduser ARP Buffer Description Causes the Slim-Link® Server to list the operating system commands Allows the Root user to create a new user account Causes the Slim-Link® Server to list the last 10 IP and Ethernet addresses Checks the data bufer usage and permits selective clearing of the data buffer. This command can only be executed by the Root user. Deluser DEL Allows the Root user to delete an existing user account Dir DIR Causes the Slim-Link® Server to list all of the files in both SRAM and Flash memory. It also shows the total amount of memory used for these files. Erase ERA[file] Marks the listed file as erased although the file remains resident in Flash Memory until the memory sector is erased. This command can only be executed by the Root user. Exit EXI Causes the Slim-Link® Server to exit operating system and return to the XE186 Monitor. Host HOS Causes the Slim-Link® Server to list the latest IP host sites visited Level LEV Allows the Root user to check command security levels and make alterations as required. Login LOG Allows a user to log into the system Password PAS Allows the user to change their password. A Root user may change any users password. Ping PIN [IP Address] Causes the Slim-Link® Server to send out a test call to the listed IP Address and report on the successful response. PPP PPP In the PPP Client Edition this command causes the Slim-Link® Server to display the loaded ISP parameters. Reboot REB Allows the Root user to initialize a system reboot. Resume RES[priority] Allows the Root user to resume a suspended task. SetIP SET Allows the user to read, and if desired change, the Slim-Link® Server’s IP configuration. Shutdown SHU Initiate a shutdown of MicroRTOS. This command can only be executed by a Root user from Console_A. Status STA Causes the Slim-Link® Server to report on the status of the operating system, HTTP Server, and Serial Ports. Stop STO[priority] Allows the Root user to Suspend the the listed task. Task TAS Causes the Slim-Link® Server to list the tasks currently in memory. The list includes the assigned priority and size of each task. Telnet Tel[on/off] Allows the Root User to select or deselect the Telnet Server Function. Time TIM Causes the Slim-Link® Server to report the date and time stored in the on board real-time clock and permits the user to set a new date and time. This command is only supported by the AWC86A module. User USE Displays the user list and allows the Root user to change user priority levels. Version VER Displays the MicroRTOS Version level Web WEB[ON/OFF/Status] Controls the Web Server status of the Slim-Link® Server. This command can only be executed by a Root user Striking the TAB key causes the Slim-Link® Server to re-execute the last operating system command. Format ? ADD ARP BUF
Advanced Web Communication
(16)
Slim-Link® Server
Slim-Link® Server Debug Utility Commands
A Debug utility can be loaded in the Slim-Link Server’s Flash memory. This Debug program permits the developer to exercise Flash Memory, the Real-Time Clock, Analog to Digital Convertor, and Digital to Analog Convertor through either of the Slim-Link® Server’s serial ports. The file debug.cmd must be loaded into the MicroRTOS system subdirectory in the Slim-Link Server’s Flash memory. The Debug Utility provides the commands listed below. These commands must be issued in ten-bit character format (8 data bits, no parity) at 38,400 bits per second. Command A/D Format A/D Description Read the values on each of the 8-Channels of the Analog to Digital Convertor. This command is available only on the AWC86A. Compare listed Memory Locations Display contents of memory in the selected range Convert Digital Inputs to Analog Value. This command is available only on the AWC86A. Enter new values beginning with selected memory address. Fill Memory Range with Listed values Help! List Monitor Commands Input Word Move data in memory range to new location beginning with New Memory Address Output Word Quit MicroRTOS™ Debug utility and Return to MicroRTOS™ Search range of addresses for listed value
C D D/A E F H I M O Q S
C [Start Addr, End Addr] D [Start Addr, End Addr] D/A E [Start Addr, List new values] F [(Start Addr, End Addr), List new values] H I[Word] M [(Start Addr, End Addr), New Addr] O[Word] Q S [(Start Addr, End Addr), List Value]
Advanced Web Communication
(17)
Slim-Link® Server
Slim-Link® Server HTTP Server
The Slim-Link® Server includes an HTTP Server to support user web pages. The Slim-Link® HTTP Server is compatible with all currently popular Web Browsers including Internet Explorer and Netscape. The Slim-Link ® HTTP server can dynamically create Web pages using the Common Gateway Interface(CGI) to show system status or process data. A sample web page is included in the Slim-Link® Server embedded firmware. Developers can modify the firmware to quickly develop a Web Page to suit their application.
Slim-Link® Server TCP/IP Stack
The Slim-Link® Server includes an embedded TCP/IP Stack to support Internet Communications. This stack is illustrated below using the OSI architechure model. TCP/IP includes four clearly defined layers; Application, Transport, Network, and Data Link. The presentation and session layers have been bypassed by TCP/IP.
Layer 7 4 3 2 1
Definition Application Transport Network Data Link Physical
Embedded in Slim-Link® Server Web Server / Telnet Server / PPP / SMTP / SNMP TCP / UDP IP / ICMP ARP / Ethernet / PPP 10Base-T
Protocol
TCP UDP IP
Definition
Transport Control Protocol User Datagram Protocol Internet Protocol
Description
The Transport Control Protocol provides the means to insure that internet communications are reliable. The User Datagram Protocol facilitates the communication from one machine to another. The Internet Protocol performs three functions in internet communications: It defines the format of all data. It performs routing of the data through the network. I defines how hosts an routers should process the data packets. The Internet Control Message Protocol allows routers on the internet to report errors and unexpected occurrences. The Address Resolution Protocol increases internet efficiency by binding together machine IP addresses. Point ot Point Protocol permits the transport of datagrams over a point to point link such a analog modem connection. 10Base-T Ethernet provides a 10 Mbps communications bus over a twisted wire pair.
ICMP ARP PPP 10Base-T
Internet Control Message Protocol Address Resolution Protocol Point to Point Protocol IEEE 802.3
Advanced Web Communication
(18)
Slim-Link® Server
Terms of Sale
Devices sold by the Advanced Web Communication Division of Xecom are covered by the warranty provisions appearing in its Terms of Sale only. Advanced Web Communication™ makes no warranty, express, statutory, implied, or by description regarding the information set forth herein, or regarding the freedom of the described devices from patent infringement. Advanced Web Communication™ makes no warranty of merchantability or fitness for any purposes. Advanced Web Communication™ reserves the right to discontinue production and change specifications and prices at any time and without notice. This product is intended for use in normal commercial applications. Applications requiring extended temperature range, unusual environmental requirements, or high reliability applications, such as military, medical life-support or life-sustaining equipment, are specifically not recommended without additional processing and authorization by Advanced Web Communication for such application. Advanced Web Communication assumes no responsibility for the use of any circuitry other than circuitry embodied in an Advanced Web Communication product. No other circuits, patents, or licenses are implied.
Life Support Policy
Advanced Web Communication’s products are not authorized for use as Critical Components in Life Support Devices or Systems. Life Support Devices or Systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform, when properly used in accordance with instructions provided in the labeling, can be reasonably expected to result in significant injury to the user. A Critical Component is any component of a life support device or system whose failure to perform can be reasonably expected to cause failure of the life support device or system, or to affect its safety or effectiveness.
Copyright, Advanced Web Communication™ © 2001 While Advanced Web Communication™ has made every effort to ensure that the information presented here is accurate, Advanced Web Communication™ will not be liable for any damages arising from errors or omission of fact. Advanced Web Communication™ reserves the right to modify specifications and/or prices without notice. Product mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.
Advanced Web Communication Division of Xecom Inc. 374 Turquoise Street, Milpitas, CA. 95035 Ph: 408-945-6640 Fax: 408-942-1346 Email: info@xecom.com Web Address: www.xecom.com
Advanced Web Communication
(19)
Slim-Link® Server