Home
Description
Contents
1. 6020 technical data Technical specifications CPU ALi M6117 386SX Embedded Microprocessor Bus clock 25 MHz 40 MHz BIOS AT compatible with industrial extensions DRAM 2 DRAM soldered on card Floppy drive Floppy drive support via the LPT 1 parallel port or external adapter Hard drive Hard drive BI OS supported using external hard drive controller which allows extended IDE drives larger than 528 MB Solid state disk 0 Supports a 1024 K B flash Solid state disk 2 Supports a 128 KB SRAM ROM DOS DOS 6 22 compatible Serial I O COM1 and COM2 are 16C550 compatible Parallel port LPT1 is PC compatible with multifunctional capability B 1 6020 technical data 6000 Series user s manual Note Battery backup On board battery to backup real time clock and SRAM 5502 Watchdog timer Default time out is 1 6 seconds typical software enabled and strobed Disabled on powerup and reset Controls are through built in enhanced INT 17h function calls Bus mastering Bus mastering is not supported Power requirements 5V 0 25V 1 0 Amp maximum Full 40MHz operation 670mA typical Suspend 245mA typical Environmental specifications 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz Use of a heat sink may be required to achieve the high end of the tem perature range 55 to 90 C nonoperating RH 596to 9596 noncondensing Size 4
2. int 17h Hardware reset The PC Microcontroller has a button which allows you to reset the system without turning off the power This provides a more complete reset than the lt CTRL gt lt ALT gt lt DEL gt method The RESET command also accomplishes the same thing as the reset button WARNING When using COMI as the console lt gt ALT lt gt only resets the host system Use the RESET command to issue a hardware reset Reset via optically isolated input The PC Microcontroller provides an optically isolated remote input dedicated for generating a master reset to the system This input is located at the AU X I O connector and can also be accessed on the break out board See the AUX 1 O chapter for more information about the opto isolated input on the breakout board and for an illustration of its recommended timing usage Watchdog timer reset and remote reset 6000 Series user s manual 16 4 6000 Series user s manual Serial EEPROM Chapter17 Serial EEPROM Description Up to 768 words of user definable data can be saved in the serial EEPROM Theserial EEPROM does not require battery backup to maintain the data when the system power is off The serial EEPROM is easily accessible via software interrupts by most programming languages The real time calendar dock provides the user with 512 bytes of user defined CMOS RAM This RAM re
3. TableD 3 6040 interrupt map Interrupt Description IRQO System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 serial port IRQ4 COM1 serial port IRQ5 LPT1 IRQ6 Floppy disk controller avail able and connected to BIRQ6 or FDC IRQ7 Avail able and connected to BIRQ7 IRQ8 RTC alarm IRQ9 U ser configurable connected to OPTO B IRQ10 Available and connected to BIRQ3 IRQ11 BIRQ4 on 6010 6040 6050 CTC on 6020 COM4 on 6030 IRQ12 PC 104 connector on 6010 CTC on 6020 COM3 on 6030 A D m 6040 unavailable on 6050 IRQ13 Floating point unit IRQ14 Available and connected to BIRQ5 HDC BI RQ5 on 6010 IRQ15 Power management interrupt TableD 4 6040 memory map Address Description 00000H 9F F FFH System memory 640 KB base RAM AO0000H BF F FFH Off card memory usually reserved for vi deo memor y CO0000H C7F Off card memary usually reserved far video BIOS Shadow enable disable option in SETUP C8000H CF F FFH Off card memory Shadow enable disable option in SETUP DOOOOH DFF FFH Off card memory Shadow enable disable option in SETUP EO0000H E 7F FFH 32 BIOS extension area Shadow always enabled E8000H EF F FFH 32 KB SSD memory paging window Shadow always disabled in this region F OOOOH FFF 64 KB BIOS area Shadow always enabled 10000H F FF FFH 16 MB addressable extended memory D 6 6000 Series user s manual 6040 technical data
4. active low Note The DB connectors are the 3M 3414 series connector or T homas and Betts 608 3430 A wiremount male connector can be used to connect a VTC10 IBM cable B 9 6020 technical data 6000 Series user s manual TableB 13 6020 COM1 J 3 and COM2 J 4 pinout Table B 14 Table B 15 Pin COM1 COM2 1 DCD DCD 2 DSR DSR 3 RxD RxD 4 RTS RTS 5 TxD TxD 6 CTS CTS 7 DTR DTR 8 RI RI 9 Gnd Gnd 10 5 Safe 5 VDC Safe active low 6020 power connector pinout 5 Pin Function 1 45 VDC 2 Gnd 6020 battery pinout J 6 Pin Function 1 Battery 2 Keyed 3 Gnd 4 Gnd 6000 Series user s manual 6020 technical data TableB 16 Micro PC bus A pinout Pin Description Signal Pin Description Signal Al CH CK 17 14 O A2 D7 I O A18 A13 O A3 D6 I O A19 A12 O A4 D5 I O A20 A11 O A5 D4 I O A21 A10 O A6 D3 I O A22 A9 O A7 D2 I O A23 A8 O A8 D1 I O A24 A7 O A9 D0 I O A25 A6 O A10 IO CH RDY l A26 A5 O A11 AEN O A27 A4 O A12 A19 O A28 A3 O A13 A18 O A29 A2 O A14 A17 O A30 A1 O A15 A16 O A31 A0 O A16 A15 O activelow 6020 technical data 6000 Series user s manual TableB 17 Micro PC bus B pinout Pin Description Signal Pin Description Signal B1 Gnd l B17 DACK 1 O B2 RESET O B18 DRQ1 B3 5V B19 DACK 0 O B4 IRQ9 l B20 CLOCK O B5 NC Not used B21 IRQ7
5. 3 5 Setup programs 6000 Series user s manual Press ENTER to SAVE the changes or Press ESC to EXIT without saving the changes Saving options Options saved Depending on the options you have selected the system may display the following message You must reset for these options to take effect If you entered SETUP with the hotkeys i e backspace and S keys the system will reboot automatically SETUP example The following example configures a system with no memory test 9600 baud and booting from C c Phoenix Tec OCTAGON SYSTI EMS CORPORATI 60xx SETUP hnologies UTILITY Vx x Ltd 1985 ON 1995 Press SPACE to CHANGE ENTER to ACCEPT ESC to EXIT Serial Console on COMI ENABLED COMI Console Baud Rate 9600 Power on memory test DISABLED Boot Sequence C ONLY Parallel LPT Port ENABLED Parallel Port Mode Bidirectional Printer Port Number of floppy drives Floppy drive 1 size Number of hard drives 3 5 1 44 MB Auto Drive Configuration ENABLED SETUP Entry via Hotkey ENABLED Power Management DISABLED Shadow Video BIOS Area DISABLED Shadow C8000h CFFFFh DISABLED Shadow D0000h D7FFFh DISABLED Shadow D8000h
6. 4 Atthe prompt PICO FA second drive 2 SSD2 other no drive enter 2 5 Atthe prompt po you wish to save this information now Y N enter Y 6 After saving this information reinstall the USESETUP jumper 7 Reset the system The system should boot from SSDO 4 4 6000 Series user s manual Serial ports Chapter 5 Serial ports Description Note Table 5 1 Each PC Microcontroller in the 6000 Series has two serial ports except for the 6030 which has 4 serial ports T hese serial ports are 16C550 compatible They can be used for interfacing to a printer terminal or other serial device These ports support 5 6 7 or 8 bit word lengths 1 1 5 or 2 stop bits and baud rates up to 115 2 KB The serial ports meet EC1000 level ESD protection specification with 8 KV of ESD protection Backdrive protection is also included 2 can be converted to optically isolated RS 422 485 with the network interface module NIM NIM mounts directly ontothe PC Microcontroller without the need of a cable or external power supply TheNetwork Interface Module NIM is not compatible with the 6010 PC Microcontroller Use a VTC 9F cable to connect the ports to external serial equipment The pinout of the connector allows you to plug the cable directly into a 9 pin PC serial connector refer to the product specific appendix for the connector pinout When interfacing the PC Microcontr
7. 60xx C N gt 2 16 6000 Series user s manual Quick start 4 On PC i e the remote disk drive PC execute REMSERV EXE by entering C N gt REMSERV C The following message is displayed PC 2 REMSERV v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Using COMI at 115K baud Accessing Drive Time out is 9 seconds Press Esc to Exit There may be a delay before exit occurs 5 At PC 1 access the remote disk drive by entering 60xx C N gt F 60xx G N gt CD F NMPCNPC 60xxNDEMO 6 Filesaretransferred tothe PC Microcontroller read write drives by usingthe DOS COPY or XCOPY commands Enter 60xx F NMPCN60xxNDEMO gt COPY DEMO EXE C 60xx F MPC 60xx DEMO gt DIR C 60xx F MPC 60xx DEMO gt C DEMO EXE The DEMO program displays a message on your PC In this case drive is the remote disk drive of PC 2 and drive C is the read write SSD flash disk drive of the PC Microcontroller Files are easily copied between the drives PC Microcontroller with a video card and one serial cable Hardware and software requirements m Desktop PC running REMSERV connected by a VTC 9F cable and a null modem adapter to COM 1 or 2 of the PC Microcontroller m APCMicrocontroller system including a keyboard a 5420 SVGA video card and VGA monitor running REMDISK from COM 1 1 Connect the equipment and load the appropriate software
8. DRQ2 22 IRQ6 B7 12V Not used B23 IRQ5 I mapped 1018014 B8 Reserved Not used B24 IRQ4 B9 12V Not used B25 IRQ3 mapped 10 Analog Not used B26 DACK 2 B11 MEMW O B27 T C B12 MEMR O B28 ALE O B13 IOW O B29 Aux 45V Not used B14 OR O B30 OSC O B15 DACK 3 O B31 Gnd B16 DRQ3 l active low 6000 Series user s manual 6030 technical data Appendix 6030 technical data Technical specifications CPU ALi M6117 386SX Embedded Microprocessor Bus clock 25 MHz 40 MHz BIOS AT compatible with industrial extensions DRAM 2 DRAM soldered on card Floppy drive Floppy drive support via the LPT1 parallel port or external adapter Hard drive Hard drive BIOS supported using external hard drive controller which allows extended IDE drives larger than 528 MB Solid state disk 0 Supports a 1024 KB flash Solid state disk 2 Supports a 128 KB SRAM ROM DOS DOS 6 22 compatible Serial I O COM 1 through are 16C550 compatible C 1 6030 technical data 6000 Series user s manual Note Parallel port LPT1 is PC compatible with multifunctional capability Battery backup On board battery to backup real time clock and SRAM 5502 Watchdog timer Default time out is 1 6 seconds typical software enabled and strobed Disabled on powerup and reset Controls are through built in enhanced INT17h function c
9. ured in a PMI file keyboard reset idle Y N Enables reset of IDLE timer if Keyboard video reset idle2Y N HDD reset idle Y N IRQ reset idle2Y N LPT reset idle2Y N COM reset idlezY N FDD reset idle Y N reset idle Y N access occurs Enables reset of IDLE timer if Video access occurs Enables reset of IDLE timer if Hard Disk Drive access occurs Enables reset of IDLE timer if IRQ access occurs Enables reset of IDLE timer if LPT access occurs Enables reset of IDLE timer if COM access occurs Enables reset of IDLE timer if Floppy Disk Drive access occurs Enables reset of IDLE timer if DRQ access occurs Interrupts in the system can also reset the DLE timer to prevent entry into reduced power modes These interrupts should be enabled to reset the IDLE timer if they indicate that the system is active The inter rupts to reset the IDLE timer are configured in a PMI file irqO reset idle Y N irql reset idle Y N irqnmi reset idle2Y N irq3 reset idle Y N irg4 reset idle Y N irq5 reset idle Y N irq6 reset idle Y N irq7 reset idle Y N irq8 reset idle Y N irq9 reset idle Y N irg10 reset idle reset idle irg12 reset idle irq13 reset idle irg14 reset idle irq15 reset idle 222433 Enables reset of IDLE clock if IRQO occurs Enables reset of IDLE clock if IRQ1 occurs Enables reset of IDLE clock if IRONMI occurs Enables reset of IDLE clock if IRQ3 occurs Enables rese
10. Host Receive Pair PC Microcontroller Host Remote Receive Pair Remote Transmit Pair PC Microcontroller PC Microcontroller PC Microcontroller Remote Remote Remote Refer to Octagon application notes AN 0047 AN 0048 and AN 0049 for additional information in setting up an RS 485 network Contact Octagon Systems Technical Support Customer Service or Octagon s web site at www octagonsystems com for this information RS 422 485 support functions This section provides definitions for the following INT 17h BIOS routine functions pertinent to RS 422 485 support functions m Initialization Send message m Receive message 5 7 Serial ports 6000 Series user s manual Get receiver status Get transmitter status Get ID Set ID Get incoming message buffer pointer Get outgoing message buffer pointer Set incoming message buffer pointer Set outgoing message buffer pointer Set roll call response Set state wish response Set internal state response Function 00 Initialization On entry AH OFAh RS 485 function signature AL 00h RS 485 sub function DX Offffh On exit AL status 0 gt 0k Not 0 gt Function 01 Send message On entry AH OFAh RS 485 function signature AL 01h RS 485 sub function DX Offffh ES BX Transmit buffer pointer On exit AL status 0 gt Not 0 gt error Function 02 Receive mes
11. On powerup all high current driver inputs are pulled LOW This forces all high current outputs OFF The user program must configure port B as outputs and then control the state of each bit of the port The outputs of port B areinverted A written logic 1 switches the current driver to ON and switches current to ground A written logic O opens the switch and the outputs are pulled high When ON the saturation voltages are incompatible with TTL logic levels and should not be used to drive other logic devices Considerations for high current outputs m Each of thehigh current outputs can sink 500 mA at 50V However the package dissipation will be exceeded if all outputs are used at the maximum rating The following conservative guidelines assume the number of outputs are on simultaneously The following derat ing is based upon an ambient temperature of 70 C 6 7 EZ 6000 Series user s manual Table6 7 6050 high current outputs of Outputs Max current per output 500 mA 410 mA 310 mA 260 mA 210 mA 190 mA 160 mA 150 mA ON OU BRWYN Since the thermal time constant of the package is very short the number of outputs that are on at any one time should include those that overlap even for a few milliseconds m Incandescent lamps have a cold current of 11 times that of their hot current It is recommended that lamps requiring more than 50 mA not be used m When inductive loads are
12. An Octagon two card stacking kit or a flexible backplane using 3M connectors and ribbon cable can be used to stack several cards together Hardware reset A hardware reset can be done by any of the following means Issuing the RESET software command using the watchdog functi on m Depressing the reset switch m Cycling power input from an optically isolated reset A hardware reset ensures complete reset of the system and all attached peripherals An expired watchdog timer cyde also causes a hardware reset to occur Watchdog timer for added safety The watchdog timer resets the system if the program stops unexpect edly The watchdog is enabled disabled and strobed under software control Thetime out is 1 6 seconds typical 6000 Series user s manual Overview SETUP information stored in EEPROM for high reliability The loss of SETUP data is serious in industrial applications In the PC Microcontroller SETUP data is stored in nonvolatile serial EEPROM eliminating the problem with battery or power failure with the exception of time and date 512 bytes of the serial EEPROM are reserved by the BIOS An additional 1536 bytes are available to the user A software driver is supplied for accessing the EEPROM Real time calendar clock with battery backup The PC Microcontroller has a built in AT style real time clock The real time clock is powered by an external AT style battery For additional backup an
13. Inline assembly code for Borland C 3 1 asm mov ax 0ef03n mov di 00ffh port A all outputs init data all 0 s mov bx 55ffh port B all outputs init data 55h mov cx 0000h port C all inputs mov int 17h Write EZ I O 2 Function efh Subfunction 04h Purpose To write a value to an EZ I O port 6 19 EZ 6000 Series user s manual Calling registers AH AL 04h DI Port A mask and data XXXXXXXXB XXXXXXXX XXXXXXXXB BX Port B mask and data XXXXXXXX XXXXXXXXB XXXXXXXX XXXXXXXXB CX Port C mask and data XXXXXXXxB XXXXXXXX Mask for port A 1 gt bit to be changed Data for port A Mask for port B 1 gt bit to be changed Data for port B Mask for port C 1 gt bit to be changed XxxxxxxxB Data for port C DX ffffh Return registers Carry flag cleared if successful Carry flag set if error AL Error code Comments This function is used to write to the second EZ I O i e the EZ I O that has the higher I O address when two EZ I O chips are present on a board Programming example Inline assembly code for asm mov ax 0ef04h mov di 00ffh port no Borland C 3 1 change mov bx 8000h port B bit 7 20 mov cx 0202h port C bit 1 1 mov dx O0ffffh int 17h Read EZ I O 2 Function efh Subfunction 05h Purpose read from an
14. Load the PMI file changes by induding the PMI file on the PMISETUP command line PMISETUP is located in the UTILS directory C gt PMISETUP TEST PMI Hardware reset the system for the PMISETUP options to take effect The system is now under power management and is ready for SUSPEND RESUME 18 4 6000 Series user s manual CPU power management 8 Oncethe system enters the SUSPEND mode specified devices are powered down Triggering the specified events will cause the system to resume Power management configuration The power management functions can be globally enabled or disabled in CMOS The 60xx SETUP EXE and PMISETUP EXE utilities provide an option for enabling or disabling power management Enabling power management Whichever utility SETUP or PMISETUP is configured and saved or loaded last that configuration is used for enabling or disabling power management n other words if the power management option is disabled in SETUP and then later a PMI file which shows pmi enable Y is loaded with PMISETUP the power management option in SETUP will now show power management as being enabled In 60xx SETUP the power management options can be enabled or disabled The fine tuning of the power management is done through a PMISETUP with a PMI file All supported options are described in the subsequent sections and are represented by the symbol For example pmi enable YES NO can either mean pmi ena
15. Size 4 5 in 4 9 in Mating connectors J 1 PC 104 interface PC 104 8 16 bit receptacle For 8 bit Samtec SQ 132 14 G D For 16 bit Samtec 4E SQ 120 14 G D J 2 AUX 1 0 port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 J 3and J 4 serial ports 10 pin shrouded header Receptacle AMP 746288 1 Strain relief AMP 499252 5 J 6 battery 4 pin in line connector Housing DuPont BERG 746288 1 Crimp to wire pins DuPont BERG 499252 5 J 7 IDE hard drive port 44 position 2 mm 2 header Receptacle AMP 111626 0 J 8 floppy port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 A 3 6010 technical data 6000 Series user s manual Component diagram FigureA 1 6010 component diagram Floppy drive 34 pin AUX 34 pin OOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOO 00000000000000000 0000000000000000000000 8 J yy BOOOOOOOOOOOOOOOOOOOOO IIIIIIIII J2 IDE hard drive 44 pin 105000000000000000000 tar ne PC 104 Jlooooooooooooooooooon 600000000000000000000000000090000 fli 00000 COMI 8 16 bit 00000000000000000000000000000000ls 00000 11 10 pin Battery gums E iii sas 0000 14 00090 4 1 0 1
16. 0 1 Input 2 Agnd ADC 1 3 Input 4 Agnd ADC 2 5 Input 6 Agnd ADC 3 7 Input 8 Agnd ADC 4 9 Input 10 Agnd ADC 5 11 Input 12 Agnd ADC 6 13 Input 14 Agnd ADC 7 15 Input 16 Agnd DAC 0 17 Output 18 Agnd DAC 1 19 Output 20 Agnd D 13 6040 technical data 6000 Series user s manual TableD 19 Micro PC bus A pinout Pin Description Signal Pin Description Signal Al CH CK l A17 A14 O A2 D7 I O A18 A13 D6 I O A19 A12 O A4 D5 I O A20 A11 O A5 D4 I O A21 A10 O A6 D3 I O A22 A9 O A7 D2 1 0 A23 A8 O A8 D1 1 0 A24 A7 O A9 D0 1 0 A25 A6 O A10 1 0 CH RDY l A26 A5 O A11 AEN O A27 A4 O A12 A19 O A28 A3 1 A18 O A29 A2 O A14 A17 O A30 A1 O A15 A16 O A31 A0 O A16 A15 O adivelow D 14 6000 Series user s manual 6040 technical data TableD 20 Micro PC bus B pinout Pin Description Signal Pin Description Signal B1 Gnd l B17 DACK 1 O B2 RESET B18 DRQ1 B3 5V l B19 DACK 0 O B4 IRQ9 l B20 CLOCK O B5 NC Not used B21 IRQ7 B6 DRQ2 22 IRQ6 7 12V Not used B23 IRQ5 I mapped toIRQ14 B8 Reserved Not used B24 IRQ4 I mapped toIRQ11 B9 12V Not used B25 IRQ3 mapped to IRQ10 B10 Analog Gnd Not used B26 DACK 2 l B11 MEMW O B27 T C B12 MEMR 26 ALE O B13 IOW O B29 Aux 45V Not used B14 OR O B30 OSC O B15 DACK 3 O B31 Gnd B16 DRQ3 adive low D 15 6040 technical d
17. 3 I En 1 i pn 2 niil 6000 Series user s manual 6040 technical data Maps TableD 1 6040 DMA map Channel Description Channel 0 Reserved far bus memory refresh Channel 1 Available reserved for ECP parallel port Channel 2 Floppy disk drive Channel 3 Available Channel 4 Slave Channel 5 Unavailable no connection provided Channel 6 Unavailable no connection provided Channel 7 Unavailable no connection provided TableD 2 60401 map Hex range Function 000H 0A 7H System I O functions OA8H OAFH General purpose status registers OBOH OFFH System I O functi ans 100H 13FH Off card 1 space 140H 147H Digital I O 1 EZ 1 0 selectable 148H 14F H D A converter data sd ectable 150H 157H D A converter DAC load 158H 15F H Analog to digtal converter 160H 207H Off card I O space 208H 20BH System control register 0 read write access 20CH 20FH System control register 1 read write access watchdog IOR strobe 210H 213H System contrd register 2 read only 214H 217H System contra register 3 read only watchdog strobe serial EEPROM read write 2F8H 2FFH COM2 378H 37BH Bidirectional parallel port LPT1 3F 8H 3FFH COM1 These I O spaces can be relocated to other ranges See the 6040 EZ I O base address selection tablein the EZ I O chapter D 5 6040 technical data 6000 Series user s manual
18. 45 VDC Safe 26 Gnd D 10 6000 Series user s manual 6040 technical data TableD 14 6040 AUX I O connector pinout J 2 Pin Function 9 IDC breakout cable 1 Opto common 1 2 OPT OB 2 3 Gnd 3 4 OPT OA 4 5 K eyboard data 5 6 K eyboard clock 6 7 Battery 7 8 Speaker 8 9 5 Vdc safe 9 Pin Function DB 25 IDC breakout cable 10 STB 1 11 AFD 14 12 DATAO 2 13 ERR 15 14 DATA1 3 15 INIT 16 16 DATA2 4 17 SLIN 17 18 DATA3 5 19 Gnd 18 20 DATAA 6 21 Gnd 19 22 DATA5 7 23 Gnd 20 24 DATA6 8 25 Gnd 21 26 DATA7 9 27 Gnd 22 28 ACK 10 29 Gnd 23 30 BUSY 11 31 Gnd 24 32 PE 12 33 Gnd 25 34 SLCT 13 active low Note The DB connectors are the 3M 3414 series connector or Thomas and Betts 608 3430 A wiremount male connector can be used to connect a VTC10 IBM cable 6040 technical data 6000 Series user s manual TableD 15 6040 COM 1 J 3 and COM2 J 4 pinout Table D 16 Table D 17 Pin COM1 COM2 1 DCD DCD 2 DSR DSR 3 RxD RxD 4 RTS RTS 5 TxD TxD 6 CTS CTS 7 DTR DTR 8 RI RI 9 Gnd Gnd 10 5 Safe 5 VDC Safe active low 6040 power connector pinout J 5 Pin Function 1 45 VDC 2 Gnd 6040 battery pinout J 6 Pin Function 1 Battery 2 Keyed 3 Gnd 4 Gnd 6000 Series user s manual 6040 technical data TableD 18 6040 analog 1 O pinout J 7 I O channel Pin Description ADC
19. 45V and ground on the opto rack 6 9 EZ 6000 Series user s manual Figure6 7 Opto rack hookup Microcontroller EZ port ribbon cable BODSODSDSDSSDSST MPB opto rack Figure6 8 Optional EZ 1 opto rack configuration EZ port CMA 26 ribbon cable T3 3 HW 6 Beossooeceoeeoseq o MPB Opto Rack Usethe following table to determine the corresponding opto channel for a particular port 6 10 6000 Series user s manual EZ Table6 8 EZI O opto rack interface MPB opto rack EZ I O port Connector pin Opto module position Port C 0 bit 0 13 1 bit 1 16 2 bit 2 15 3 08 bit 3 17 4 bit 4 14 5 bit 5 11 6 bit 6 12 7 bit 7 9 Opto module position Port A 8 bit 0 19 9 bit 1 21 10 bit 2 23 11 MPB 16 bit 3 25 12 bit 4 24 13 bit 5 22 14 bit 6 20 15 bit 7 18 Opto module position Port B 16 bit 0 10 17 bit 1 8 18 bit 2 4 19 MPB 24 bit 3 6 20 bit 4 1 21 bit 5 3 22 bit 6 5 23 bit 7 7 Note Port B on the 6050 can only be used with output opto modules Also the output is inverted fromthe input Consider these factors when using and programming this port Keypad and display interface Through the EZ I O port you may connect a keypad and display board KAD to your PC Microcontroller One end of the CMA 26 cable plugs into the EZ I O connector on
20. 7 4 6000 Series user s manual AUX I O Table 7 1 Connect an F CA 12 cable from the printer port on the breakout board to the floppy drive See the Breakout board product sheet for an LPT1 to floppy drive cable pinout Connect an external power cable to the floppy drive Power on the PC Microcontroller and make certain that the LPT1 port isin floppy disk mode The LPT1 port mode is configured in SETUP AUX 1 connected to a standard 3 5 floppy disk drive AUX I O port DB 341DC 34 pin connector connector female female Function floppy port Function 1 OPTOA B NC NC 2 OPTOB NC NC 3 Pwr Gnd NC NC 4 OPTOA NC NC 5 Keyboard Data NC NC 6 Keyboard Clock NC NC 7 Battery NC NC 8 Speak er NC NC 9 4 5VDC Safe NC NC 10 STB 12 DSO 11 AFD N C DenSel 12 Data0 8 I ndex 13 Err 32 HDSel 14 Datal 26 TrkO 15 Init 18 Dir 16 Data2 28 WP 17 SLIN 20 Step 18 Data3 30 RData 19 Gnd 29 Gnd 20 Data4 34 DskChg 21 Gnd 31 Gnd 22 Data5 N C Msen0 23 Gnd 17 Gnd 24 Data6 16 Mtr0 25 Gnd 19 Msen1 26 Data7 N C Msen1 27 Gnd 27 Gnd 28 Adk 14 DS1 29 Gnd 33 Gnd 30 Busy 10 Mtr1 31 Gnd 21 Gnd 32 PE 22 WData 33 Gnd 23 Gnd 34 SLCT 24 WGate active low Note The AU X I O and flcppy drive connectors are 3M 3414 series connectors or Thomas and Betts 609 3430 7 5 AUX 6000 Series user s manual Note The connectors are the D891xx series connectors T
21. DFFFFh DISABLED Press ENTER to SAVE the changes or Press ESC to EXIT without saving the changes Options Saved You must reset for these options to take effect 60xx gt Note Executing SETUP D will change all setup parameters to default values Note Power management should be disabled when using CAMBASIC 6000 Series user s manual Setup programs SETSSD Note Note Note SETSSD allows the user to set or change the PICO FA drive SSD order PICO FA drives are simulated hard drives They can exist before or after any IDE drives and can appear in any order By setting the order the SSDs may be accessed as C D etc For example m Toset 5500 first 5502 second enter the following command 60xx gt SETSSD SSDO SSD2 If there are other hard drives on the system add the before option to place the order of the SSDs before the hard drives or add the after option to place the SSDs after the hard drives For example SSDO as thefirst drive 5502 as the second drive and an IDE drive as the third drive enter the following command 60xx C N gt SETSSD SSDO SSD2 before B TosetthelDE drive as first in order SSDO as second enter the following command C N gt SETSSD SSDO after In the last example the IDE drive is 5502 is D and 5500 15 Other drive letter designations may be added by device drivers such as VDISK SYS which arein the CONFIG SYS f
22. EZ I O port Callingregisters AH efh AL 05h DX ffffh other bits unchanged other bits unchanged Return registers Carry flag cleared if successful AL Port A data AH Port B data BL Port C data Carry flag set if error AL Error code 6 20 6000 Series user s manual EZ W O Comments This function is used to read from the second E Z I O i e the EZ I O that has the higher I O address when two EZ I O chips are present on a board Programming example Inline assembly code for unsigned char aData asm mov mov mov mov mov mov ax 0ef05h dx Offffh 17h a b Data al Data Data bl Borland C 3 1 cData 6 21 EZ 6000 Series user s manual 6 22 6000 Series user s manual AUX Chapter 7 AUX Description The AUX I O port is a 34 pin connector at J 2 which incorporates the parallel printer speaker and keyboard ports two optically isolated inter rupts and the AT battery connection An alphanumeric display matrix keypad or floppy drive also interface through this port These features are easily accessed through the use of the breakout board or through the construction of a breakout cable See the product specific appendix for the AUX I O connector pinout Breakout board BOB The breakout board BOB is designed for use with all 6000 Series PC Microcontrollers
23. FF are you there gt FFACC gt message start character FF intended listener is ID FF command code roll call CC checksum uchar F F A 0xff message end character Remote replies Dear 00 FF is here have no special request gt 00ZF F 00A6 message start character 00 intended listener is ID 00 host Row command code Z reply to roll call FF myIlD O0 00 status no special request A6 checksum uchar 0 0 2 F F 0 0 0 6 message end character Example 2 The following is a description of how ID can be assigned to a new remote node Host sends Dear FF are you there gt FFACC gt message start character intended listener is ID FF A command code roll call CC checksum uchar F F A 0xff message end character Remote replies Dear 00 FF is here have no special request gt 00ZF 00 6 gt message start character 00 intended listener is ID 00 host Z command code Z reply to roll call FF my ID 00 00 status no special request checksum uchar 0 0 Z F F 0 0 0xA6 message end character Host sends Dear FF your new ID shall be 05 33 checksum uchar F F C 0 5 40xff 0x33 message end character gt FF C0533 gt message start character FF intended listener is ID FF C comman
24. High current outputs Model 6050 dedicates 8 lines as high current outputs capable of driving 100 mA loads rated up to 50V External interrupt and reset are optically isolated for safety One opto isolated input causes a master reset and the other causes the system to generate an IRQ9 Both inputs accept voltages from 4 5 to 6 VDC This could be used for an emergency stop power failure system synchronization or a similar function Drivers are provided in CAM BASIC and C 1 5 Overview 6000 Series user s manual Interrupts used to the maximum Real time operation often requires many interrupts for high speed response to events Five of the AT interrupts are connected tothe ISA bus in addition to the four interrupts used on the card This provides the best use of the interrupts for demanding applications System expansion is flexible The PC Microcontroller can expand via an 8 bit ISA unterminated backplane with the Octagon 5000 Series expansion cards Mounting There are several ways to mount a PC Microcontroller m Plugit directly into an Octagon Micro PC card cage Power is sup plied through the backplane W Usethe optional PC mounting bracket and plug it into any passive ISA backplane Power is supplied through the backplane W Panel mount it using the four mounting holes for stand alone opera tion A two position terminal connector is used to supply the 5V power W Stack it with other Micro PC cards
25. J 1 connector for the 6020 6040 and 6050 An additional EZ I O port is located at J 7 the 6020 Refer to the prod uct specific appendix for its associated jumper setting Each EZ I O connector is configured below Table6 2 21 0 connector J 1 6020 6040 6050 and J 7 6020 only Pin Function Pin Function Pin Function Port A Port B Port C 19 bit 0 10 bit 0 13 bit 0 21 bit 1 8 bit 1 16 bit 1 23 bit 2 4 bit 2 15 bit 2 25 bit 3 6 bit 3 17 bit 3 24 bit 4 1 bit 4 14 bit 4 22 bit 5 3 bit 5 11 bit 5 20 bit 6 5 bit 6 12 bit 6 18 bit 7 7 bit 7 9 bit 7 2 45 VDC Safe 26 Gnd Port B can only be configured as output on the 6050 The output level is inverted frominput Thisis duetothe inverted output high current driver used on the 6050 Consider these factors when using and programming this port Model 6020 Each EZ I O port has 24 I O lines available which makes a total of 48 lines The 241 0 lines are divided into three groups of 8 with 10K resistors that can be connected to ground or 45V Each of the 48 lines 6 2 6000 Series user s manual EZ can be individually programmed as 5V input or 5V output Each line can sink or source 15 mA 6020 Pulling the I O lines high or low umper block W3 pulls ports A B and C of EZ I O 1 high or low J umper block W4 pulls ports A B and C of EZ I O 2 high or low For the location of W3 and WA refer to the component diagram in the 6020 technical data appendi
26. Jumper settings TableD 5 6040 jumper settings W1 W2 and W4 Table D 6 J umper position Pins Description S 1 2 USESETUP p W1 3 4 BIOS extension enable N W1 5 6 Network mode 7 8 Turbo mode A W2 7 8F IO RGE SEL A B W1 9 10 IO RGE SEL B B W2 9 10 BIOS device W2 1 3 EZ I O port C pull up W2 3 5 EZI O port C pull down W2 2 A EZ I O port A pull up W2 4 6 EZI O port A pull down W4 1 2 EZ I O port B pull up W4 1 3 EZI O port B pull down default pins jumpered 6040 EZ 1 O base address selection IA W1 9 10 IB W2 9 10 I O address J 1 not jumper ed not jumper ed 320H jumpered not jumpered 120H not jumper ed jumpered 340H jumpered jumpered 140H default pins jumpered D 7 6040 technical data 6000 Series user s manual TableD 7 6040 pull down pull up EZ 1 W2 and W4 Configuration Description W2 2 AF lines in Port A are pulled to 45V through 10K Ohm W2 4 6 All lines in Port A are pulled to Gnd through 10K Ohm W4 1 2F lines in Port B are pulled to 45V through 10K Ohm W41 3 All lines in Port B are pulled to Gnd through 10K Ohm W2 1 3 All lines in Port C are pulled to 45V through 10K Ohm W2 3 5 All lines in Port C are pulled to Gnd through 10K Ohm default pins jumper ed TableD 8 6040 digital to analog output range select W3 Output range Channel A Channel B OV t
27. Quick start 4 Filesaretransferred to the PC Microcontroller s read write drives by using the DOS COPY and XCOPY commands From the PC Microcon troller system enter 60xx gt COPY F MPC 60xx DEMO EXE 60xx C N gt DIR C 60 gt C DEMO EXE The DEMO program displays message the PC Microcontroller monitor In this case drive is the remote PC disk drive and C is the read write SSD flash drive on the PC Microcontroller Files are easily copied between the drives 5 When finished on the PC Microcontroller system execute 60xx C N gt REMDISK U This unloads REMDISK from the PC Microcontroller 6 the desktop PC press lt ESC gt to exit REMSERV 2 19 Quick start 6000 Series user s manual 2 20 6000 Series user s manual Setup programs Chapter 3 Setup programs This chapter discusses running the SETU P configuration program the SETSSD program andthe PMISETUP program on the PC Microcontroller m SETUP Configures devices set up by the BIOS such as serial ports floppy drives etc SETSSD Configures PICO FA device order PMISETUP Configures power management options at a more detailed level than SETUP SETUP SETUP can be entered in one of two ways m Running SETUP COM m Pressing the backspace key followed by the S key during BIOS POST sequence this occurs between the memory test and bootup Also by r
28. SD6 5V LA22 1RQ10 4 SD5 IRQ2 9 LA21 IRQ11 5 504 5 LA20 IRQ12 6 SD3 DRQ2 LA19 IRQ15 7 SD2 NC 12V LA18 IRQ14 8 SD1 0 WS LA17 DACK 0 9 SDO NC 412VDC MEMR DRQO 10 OCHRDY Key MEMW 5 11 AEN SMEMW SD8 DRQ5 12 SA19 SMEMR SD9 DACK 6 13 SA18 IOW SD10 DRQ6 14 SA17 IOR SD11 DACK 7 15 SA16 3 SD12 DRQ7 16 SA15 DRQ3 SD13 5V 17 SA14 DACK 1 SD14 Master 18 SA13 DRQ1 SD15 Gnd 19 SA12 Refresh Key Gnd 20 SA11 BUSCLK 21 SA10 IRQ7 22 SA9 1806 23 SA8 IRQ5 24 SA7 IRQ4 25 SA6 IRQ3 26 SA5 DACK 2 27 5 4 TC 28 SA3 BALE 29 SA2 45V Safe 30 SA1 14MHz 31 SA0 Gnd 32 Gnd Gnd adive low wait state A 9 6010 technical data 6000 Series user s manual TableA 9 6010 AUX I O connector pinout J 2 Pin Function DB 9 IDC breakout cable 1 Opto common 1 2 OPT OB 2 3 Gnd 3 4 OPT OA 4 5 Keyboard data 5 6 Keyboard clock 6 7 Battery 7 8 Speaker 8 9 5 Vdc safe 9 Pin Function DB 25 IDC breakout cable 10 STB 1 11 AF D 14 12 DATAO 2 13 ERR 15 14 DATA1 3 15 INIT 16 16 DATA2 4 17 SLIN 17 18 DATA3 5 19 Gnd 18 20 DATAA 6 21 Gnd 19 22 DATA5 7 23 Gnd 20 24 DATA6 8 25 Gnd 21 26 DATA7 9 27 Gnd 22 28 ACK 10 29 Gnd 23 30 BUSY 11 31 Gnd 24 32 PE 12 33 Gnd 25 34 SLCT 13 active low Note The DB connectors are the 3M 3414 seri
29. and makes no representations that the circuits are free from patent infringement Octagon makes no representation or warranty that such applications will be suitable for the use specified without further testing or modification Octagon Systems Corporation general policy does not recommend the use of its products in life support applications where the failure or malfunction of a component may directly threaten life or injury It is a Condition of Sale that the user of Octagon products in life support applications assumes all the risk of such use and indemnifies Octagon against all damage Technical Support 303 426 4521 Telephone 303 430 1500 FAX 303 426 8126 Web site www octagonsystems com 6000 Series user s manual Notice to user IMPORTANT Please read the following section before installing your product Octagon s products are designed to behigh in performance while consuming very little power In order to maintain this advantage CMOS circuitry is used CMOS chips havespecific needs and somespecial requirements that theuser must beaware of Read thefollowingtohelp avoid damageto your card from the use of CMOS chips Using CMOS circuitry in industrial control Industrial computers originally used LSTTL circuits Because many PC components are used in laptop computers manufacturers are exclu sively using CMOS technology Both TTL and CMOS have failure mechanisms but they are different Described b
30. any serial port COM 1 through on your PC If your PC 25 pin serial connector attach a 9 25 pin adapter to your null modem adapter then insert the matching end of the 9 25 pin adapter into the serial port See Figure 2 3 2 3 Quick start 6000 Series user s manual Figure2 3 Serial communications setup COM1 PC Microcontroller vie cave COM Port Null Modem DB 25 Adapter Connector wor ML COM DB 9 Connectors Desktop PG Null Modem Adapter OR DB 9 to DB 25 Adapter Desktop PC Note Refer tothe PC SmartLINK manual for more information on using a desktop PC COM port other than COM 1 Y ou are now ready to transfer files between your PC and the PC Micro controller Continue with the section Establishing communications with thePC Microcontroller in this chapter Panel mounting or stacking the PC Microcontroller To panel mount or stack the PC Microcontroller you will need the following equipment or equivalent PC Microcontroller 5V power supply VTC 9F cable Null modem adapter PC Microcontroller ROM DOS and utility disk PC SmartLINK with manual Your PC 5252MB stacking kit required for stacking only P N 3590 Refer to the Miscellaneous appendix if you are making your own serial cable or using other non Octagon components 2 4 6000 Series user s manual Quick start If you are panel mounting the P
31. certain that the LPT1 port is in standard or bidirectional mode The LPT1 port mode is configured in SETUP Refer to the Keypad and display board product sheet for the KAD key pad interface pinout at J 4 7 8 6000 Series user s manual Analog Chapter 8 Analog Note Analogl O is only available on the 6040 PC Microcontroller Description The 6040 has eight input channels and two analog output channels all with 12 bits of resolution It can read and write data at 100 000 samples per second The range of each input channel is independently software selectable for z10V V Oto 10V or Oto 5V An adjustment potentiometer is pro vided to adjust the selected input voltage range by 4596 The input multiplexer is fault protected to 16 5V input resistance is 10M Q The output ranges are individually jumperable for 5 0 to 10V or 0 to 5V Both the analog input and analog output lines are located at J 7 WARNING The analog output channels come up in an undefined state until they are configured in your software Critical systems should be disabled until the analog output channels are initialized to a known state 8 1 Analog I O 6000 Series user s manual Analog l O interface Tointerface analog 1 devices to J 7 of the 6040 use an STB 20 termi nal board and a CMA 20 cable Seethe following diagram Figure8 1 Interfacing analog 1 O devices to the 6
32. conserve power Later when the hard disk is restored by a triggering event such as a keystroke the access SMI is disabled and the timer is restarted 18 2 6000 Series user s manual CPU power management System power management At the system level power management is very similar to the device level management with a few exceptions Cooperative management is supported allowing an APM driver such as POWER EXE to control the actual power statetransitions This is done by identifying power man agement events and reporting them to the APM driver via a polling mechanism Power state transitions then occur at the request of the APM driver The IDLE timer can be reset by numerous sources including device accesses and interrupts Note that it is possible for the IDLE timer configuration to be of shorter duration than the devicetimers This means that the system can be deemed I DLE even though some of the devices are still active When this occurs the device power states are set according to their configuration in CMOS Notethat the APM interface prevents the system from entering SUSPEND mode directly These modes are entered but that occurs through the APM interface INT 15h at the request of the APM driver SUSPEND mode is the lowest power state that the system can attain while still powered The system enters the SUSPEND state when the RESUME switch is turned off All controllable devices are powered down and th
33. for much higher speed transfers than Octagon s previous standard printer interface The data lines can sink up to 24 mA The printer port signals are routed through the PC Microcontroller s AUX I O port when using the breakout board Keypad and LCD VF display support for low cost operator interface For embedded applications a keypad and display KAD board and software are available to interface with an alphanumeric display and matrix keypad The parallel port on the KAD can interface with a 16 key matrix keypad and a 2 or 4 line LCD or vacuum florescent display in applications where an inexpensive operator interface is needed The microcontroller cards are supplied with the software which provides keypad scanning and display operation The keypad and display board has sockets for the display and keypad DISPLAY and KEYPAD commands in CAMBASIC and drivers in C support these devices Industrial is EZ Several PC Microcontrollers feature the Octagon EZ 1 0 digital 1 chip EZI O supplies 241 0 lines which can be individually programmed as 5V input or 5V output Each line can sink or source 15 mA The241 O lines are divided into three groups of 8 with 10 K resistors that can be connected to ground or 45V The EZ I O port can drive the MPB series opto isolation module racks directly controlling input and loads to 240V and CAMBASIC has several commands to support the EZ I O port when working on bit BCD byte or word bases
34. in progress or failure 2Eh search for video ROM in progress 30h screen believed operable 13 2 6000 Series user s manual PC 104 expansion 14 PC 104 expansion Note ThePC 104 connector is not available on all cards Description This connector allows you to interface to one or two 104 form factor modules including hard disks A D converters digital 1 0 serial ports etc The PC Microcontroller supports 8 and 16 bit 5V modules These modules can be stacked on top of the PC Microcontroller to form a highly integrated control system Refer to the 6010 technical data appendix for the PC 104 connector pinout Figure 14 1 Typical PC 104 module stack Standoff PC 104 module ay Standoff T PC 104 connector J1 PC Microcontroller WARNING the required mounting hardware When installing any PC 104 module avoid excessively flexing the PC Microcontroller board Mate pins correctly and use 14 1 PC 104 expansion 6000 Series user s manual 14 2 6000 Series user s manual Counter timer controller Chapter15 Counter timer controller Note The counter timer controller is only available on the 6020 PC Microcontroller Description The 6020 has an 82C54 counter timer controller CTC to provide peri odic interrupts to the CPU for time related I O events such as data logging Two time ba
35. is configured by the firmware the IDLE timer monitors specific activities and enters the halt state after periods of inactivity These activities are monitored constantly to determine if power management is suitable If the specific events do not occur the DLE timer will eventually expire which places the system into the SU SPEND state where devices can be optionally powered down At the same time the CPU isin the HALT state to conserve power While the CPU isin the HALT state specific events can be monitored to RESUME the system to full power CPU power management 6000 Series user s manual In a stand alone environment no APM software active the firmware works in conjunction with the hardware doze timer and monitoring functions to identify periods when certain devices or the entire system areinactive Individual timers are supported for specific devices includ ingthe hard disk Whenever this device is not accessed for a specified period it is powered down to reduce system power consumption When ever none of the monitored system devices has been accessed for a specified period of time the performance of the system is reduced or the CPU is halted altogether to further reduce power consumption In a cooperative environment devices are still controlled by the firm ware but the CPU is never halted without the consent of the APM software Rather the firmware notifies the software when a timer has expired or some oth
36. mim mi umm T 1501 o gt mmi nm Ili 16 IITIII R3 6 i 1 HH HHH SUT aaa ami m mmm N mm T om OCTAGON SYSTEMS BIOS c Octagon Systems ROM DOS Dotolight RN7 nin U3 PLCC q n A J nin nnus un Lo i mu 6000 Series user s manual 6010 technical data Maps TableA 1 6010 DMA map Channel Description Channel 0 Reserved far bus memory refresh Channel 1 Available reserved for ECP parallel port Channel 2 Floppy disk drive Channel 3 Available Channel 4 Slave Channel 5 Available Channel 6 Available Channel 7 Available TableA 2 60101 map Hex range Function 000H 0A 7H System 1 functi ans General purpose status registers OBOH OFFH System I O functi ans 100H 207H Off card I O space 208H 20BH System control register 0 read write access no SEEP CLK 20CH 20FH System control register 1 read write access watchdog OR strobe no SEEP CLK 210H 213H System control register 0 RO SEEP CLK 214 217 System contrd register 1 watchdog OR strobe serial EEPROM re
37. network commands Table5 3 Definitions list for Octagon RS 485 network commands From host From remote Call Are you there Reply to Call gt zzA gt 002 xx my ID State Wish What I D do you want gt zzB Assign ID Your new ID is xx 2zzCnn Report State Report i nternal state gt zzD yy status 00 gt dd ng fine no request 01 gt ask for ID request 02 gt tell me to disconnect 03 gt ask for internal state Reply to State Wish 200Yxxzz xx my existing ID zz new ID want to be Reply to Assign ID gt 00Xxxzz xx my existing ID zz my new ID Reply to Report State 200Wxxyy xxmy ID yy user defined state response gt start character zz intended listener s ID field checksum field end message character Checksum field The checksum field of Octagon s command set is computed by adding the ID field to the original Optomux type checksum Note that by providing the checksum in this way Optomux type equipment treats Octagon s add on commands as invalid messages while Octagon s equip ment gains a unique set of commands 5 11 Serial ports 6000 Series user s manual Examples Full C code examples are included in the EXAMPLES directory on the PC Microcontroller utility disk The following examples are for concept only Example 1 Thefollowing is a description of how Roll Call is implemented Host sends Dear n
38. on a 128 byte boundary If the file size does not fall exactly on the boundary XMODEM automatically rounds the file size up to the next 128 byte boundary with padding characters For example a file with a size of 10 000 bytes will be rounded up to 10 112 bytes transferred and written with the new file size In most cases this is not a concern but in some instances the XMODEM padding causes problems The pad ding problems become apparent when an application program is expect ing a specific file size or is expecting characters other than the padding characters to be at the end of the file The following information on downloading files between the PC Micro controller and your PC uses the example program DEMO EXE This file is on the PC Microcontroller utility disk in the DEMO directory Downloading files to the PC Microcontroller using TRANSFER EXE The following procedures assume you are using PC SmartLINK and that it is included in your directory path For other communication programs refer to their instructions on sending a file from your PC toa target system Refer tothe Softwareutilities chapter for specific infor mation on using TRANSFER EXE Hardware and software requirements W Desktop PC running PC SmartLINK connected by a VTC 9F cable and a null modem adapter to COM 1 of the PC Microcontroller m Microcontroller running TRANSFER EXE out of COM 1 2 11 Quick start 600
39. one shot Mode 2 Rate generator Mode3 Square wave generator Mode 4 Software triggered strobe Mode 5 Hardware triggered strobe O O F FF O O Binary coded decimal BCD bit The binary coded decimal enable bit is used to set the counter into BCD or binary counter decimal modes Binary counter modes BCD Description 0 Binary counter 16 bits 1 Binary Coded Decimal BCD Counter 4 decades Definition of CTC modes To begin counting several CTC modes require the GATE to toggle Modes 1 4 and 5 require control of the GATE The GATE address is always 0xA8 bit 4 The GATE of the 6020 counter 2 is always enabled therefore only M odes 0 2 and 3 are effective for counter 2 The GATEs for counter 0 and counter 1 aretied together and are either pulled high or enabled by CTC Gate Enable so all modes can be used for these counters Sincethe primary purpose of the 6020 CTC design is to 15 6 6000 Series user s manual Counter timer controller generate periodic interrupts modes 2 and 3 will be most effective The programming example 6020 CTC CPP demonstrates the use of modes 2 and 3 Mode 0 Terminal count Theterminal count mode is generally used to count external events Becausethe 6020 CTC is not accessed externally this mode will not be discussed Mode 1 Hardware retriggerable one shot To make this mode useful load a count into either counter 0 or counter 1 or
40. serial port e g COM1 TRANSFER EXE uses the XMODEM protocol as does PC SmartLINK Seethe note below on XMODEM In Windows 95 when the TRANSFER utility is used to download files set the idle time sensitivity of PC SmartLINK on your desktop PC to low for TRANSFER torun quickly change your settings follow the steps below Open Windows E xplorer Select SL EXE with the right mouse button Select the Properties menu item Select the Miscellaneous tab in the Properties window Move the Idle Sensitivity slide bar low Select the Apply button Exit the Properties window B REMDISK REMSERV utilities allow access to all of the files on a remote disk drive REMDISK EXE and REMSERV EXE are located on the PC Microcontroller BIOS drive and the PC Microcontroller utility disk Oncethese programs are executed single or multiple files can then be transferred to and from the PC Microcontroller using DOS COPY or XCOPY commands REMDISK REMSERV will not work with Windows 95 Use REMDISK REMSERV with ROM DOS MS DOS or on a network 2 10 6000 Series user s manual Quick start Note TRANSFER EXE REMDISK EXE and REMSERV EXE are located on the PC Microcontroller BIOS drive in the DOS directory and on the P C Microcontroller utility disk in the N DOS directory Refer to the Software utilities chapter for more information on these programs XMODEM only transfers files in which the file size is exactly
41. specified limits a power management system may improve the life and reliability of your system by reducing thermal stress tothe CPU Power management can be enabled in the PC Microcontroller SETUP program and fine tuned with the PMISETUP program DOS supplied advanced power management APM programs such as POWER EXE are also supported Seethe PC Microcontroller utility disk for a list of example programs located in the EXAMPLES directory For more information on using the SETUP utility refer to the Setup programs chapter For more information on using the PMISETUP utility seethe PMISETUP section later in this chapter Power management overview Power management is implemented via the software management interface SMI function and provides multiple levels of management The firmware is also capable of cooperative power management with an APM compatible driver or application such as POWER EXE Coopera tive power management allows power aware applications to control the power state of the system without depending on interrupts or device access to indicate that the CPU is actively executing application code At the hardware level the power management system cannot detect CPU activity except by monitoring bus activity such as interrupts or access to specific memory address ranges The hardware is capable of minimal levels of power management with out interacting with the firmware at all For example once the IDL E timer
42. the PC Microcontroller and the other plugs intothe KAD Refer tothe Keypad and display board KAD section in the AUX 1 O chapter of this manual or refer to the Keypad and display product sheet for more information 6 11 EZ 6000 Series user s manual Figure6 9 Keypad and display board hookup LCD display VF display or 4 4 ni 16 pin cable 14 pin 10 pin EZ port cable cD K A rS r 5 GND 3 ks S p ie 4 PEE 6000 Series PC Microcontroller 1 ooooooon oooon 66000 13 2 oe O 3 776 omo 1 oooooooooooon iz Orr 6 cra 0000000000000 1 o u2 lt n o AUX O w lol o 0000000000000000D G3 Bo amp 00000000000000000 Interfacing to switches and other devices Figure6 10 PC Microcontroller interfacing with an STB 26 The STB 26 terminal board provides a convenient way of interfacing switches or other digital I O devices to the EZ I O digital port 1 0 lines at the EZ I O connector can be connected to an STB 2
43. to Optomux type commands respond to Octagon commands and automatically perform network housekeeping functions 5 4 6000 Series user s manual Serial ports PC mode network mode Table 5 2 On powerup the BIOS extension reads the N position at W1 to deter mine which COM 2 mode to select COM2 mode sd ect N position at W1 Mode Description J umpered PC mode Use default configuration for COM 2 of 2400 baud 8 data bits 1 stop bit and no parity Nat jumpered Network mode Install IRQ3 vector Change default baud rate to 38 4 KB Read serial EEPROM bytes 120h 121h to determine if an ID has been previously establi shed If it has use the existing ID if not use FFh Discard messages addressed to other nodes Selectively respond to messages addressed to node Await INT 17H BIOS calls to collect messages CON as RS 232 I O COM2 is a standard RS 232 serial port default configured at port address 2F 8H The N position at W1 distinguishes the COM 2 mode on powerup PC mode N position at W1 jumpered default configures 2 as a standard RS 232 port COM as RS 422 485 The PC Microcontrollers feature a predefined easy to use software interface for using COM2 as an RS 422 485 port This software inter face supports Optomux type message passing as well as additional Octagon messages Up to 32 nodes are supported at a default baud rate of 38 4 KB This built in feat
44. to separate from the chip The force of the blow to the heatsink then causes the legs of the CPU chip to separate from the PCB This force damages both the CPU chip and the PCB Note Any physical damage to the CPU control card is not covered under warranty Notice to user PC 500 user s manual 6000 Series user s manual About this manual About this manual The 6000 Series user s manual provides information about installing and configuring your model in the 6000 Series of PC Microcontrollers This manual is divided into four sections B Section 1 Installation Chapter 1 Overview Chapter 2 Quick start Chapter 3 Setup programs Chapter 4 Save and run programs m Section 2 Hardware Chapter 5 Serial ports Chapter 6 EZ yO Chapter 7 AUX 1 0 Chapter 8 Analog I O Chapter 9 SSDs DRAM and battery backup Chapter 10 External drives Chapter 11 Video Chapter 12 IRQ routing and opto IRQs Chapter 13 LED signaling and beep codes Chapter 14 PC 104 expansion Chapter 15 Counter timer controller W Section 3 System management Chapter 16 Watchdog timer reset and remote reset Chapter 17 Serial EEPROM Chapter 18 CPU power management Chapter 19 Using PICO FA Chapter 20 CAMBASIC Chapter 21 Software utilities Chapter 22 Troubleshooting W Section 4 Appendices Appendix A 6010 technical data Appendix B 6020 technical data Appendix C 6030 technical data
45. used protection diodes or other schemes must be used Refer to Figure 6 4 Inductiveload protection circuitry Supply 14002 To High Current Output W Configuring outputs in parallel for higher driveis NOT recom mended and could result in damage since the outputs will not share current equally WARNING If external devices such as 24 VDC relays are driven the ground of the external 24V supply must be connected to J 1 pin 26 and NOT the power ground Failure to do so will produce aground loop within the PC Microcontroller and can cause erratic operation 6 8 6000 Series user s manual EZ Figure6 6 High current output hookup UNL2804 high current driver U15 EZ connector 10 24V supply 26 Equivalent circuit 6050 x Example external circuit Opto module rack interface You can interface digital I O lines to an 8 16 or 24 position opto module rack One end of the CMA 26 cable plugs into the EZ 1 0 con nector and the other plugs into an MPB 8 MPB 16 or MPB 24 opto rack Refer tothe MPB opto racks product sheet for more information You can also use a CMA 26 cable to connect the EZ I O port to an STB 26 terminal board and then tothe opto rack The STB 26 has two 26 pin connectors one of which connects to the EZ 1 0 port the other connects to the opto rack For either configuration run a separate power line to
46. video card and monitor to your PC Microcontroller system Use COM 1CON E XE toreturn tothe serial port for console operation Refer to the COM 1CON E XE support command in the Soft ware utilities appendix Use a VTC 9F cable to connect the ports to external serial equipment The pinout of the connector allows you to plug the cable directly into a 9 pin PC serial connector Using QuickBASIC to communicate via COM1 Several programming languages including QuickBASI C assume a video card is present and for system speed reasons write directly to the video hardware Assuming that a video card is present can be a problem since many control applications require video output The following discus sion is directed at QuickBASIC but the principles not accessing the print routines which access the video memory directly apply to many languages There are several ways to use COM 1 from QuickBASIC Systems with a video card Add a video card to the system and open dose COM 1 using the QuickBASI C OPEN CLOSE commands Systems without a video card WARNING The system will lock up if you use commands such as PRINT or PRINT USING Because QuickBASIC writes directly to video memory these commands are usually displayed on a monitor 5 2 6000 Series user s manual Serial ports Note Method 1 The system display will not appear over COM1 while the BIOS boots Run SETUP todisable the COM1 as console opti
47. with the breakout board BOB Except for the serial and industrial 1 0 lines all other 1 is terminated with a 34 pin IDC connector also called the AUX I O The AUX I O port eliminates cable clutter and the possibility of cables being plugged into the wrong sockets during maintenance The breakout board termi nates each function at the appropriate connector These functions indude the keyboard speaker printer floppy drive battery and opto isolated interrupts Speaker and keyboard The PC Microcontroller accepts a PS 2 style AT keyboard and provides speaker output through the breakout board BOB Parallel port is multifunctional The multifunctional parallel port can be used as a printer port or gen eral purposel O The parallel port can also interface with a floppy disk drive drive alphanumeric displays and matrix keypads or drive high current AC and DC loads using an opto rack and opto modules The multifunctional parallel port applications include m LPT1 for PC compatible printers 17 general purpose digital I O lines m 4 4 matrix keypad 4line alphanumeric display 6000 Series user s manual Overview 16 16 position opto module rack W Floppy disk drive The printer port is IEEE 1284A compliant unidirectional and bidirec tional EPP enhanced parallel port mode and ECP extended capabili ties port mode compatible The printer port features backdrive protec tion and allows
48. 0 57p 6 file s 26 437 bytes 489 472 bytes free Y ou are now ready to transfer files between your PC and the PC Microcontroller 2 9 Quick start 6000 Series user s manual Transferring files between the PC Microcontroller and your PC Note Note mw M Note Once you have established communications between your PC and the PC Microcontroller you can serially download files to any read write drive used by the PC Microcontroller You can then test and debug your application files You can also upload files from the PC Microcontroller to your desktop PC for editing and debugging When booting from the PC Microcontroller BIOS drive the default CONFIG SYS device drivers designate drive C as the BIOS drive 5500 drive D as the SRAM drive 5502 and drive E as the virtual drive All drives assigned can be accessed as read write drives and files can be serially transferred to and stored on any of these drives The virtual driveis optional when booting from SSDO floppy drive or hard drive If you do not need a virtual drive do not use VDISK SYS There are two methods to download files through the serial port to the PC Microcontroller m TheTRANSFER utility is used to download files one at a time to the PC Microcontroller using the XMODEM protocol TRANSFER EXE resides on the PC Microcontroller BIOS drive and on the PC Microcontroller utility disk and is used to send or receive files via the
49. 0 Series user s manual 1 Connect the equipment as per the following diagram Figure2 8 Downloading files using TRANSFER EXE PC SmartLINK PC Microcontroller VTC 9F TRANSFER EXE cable Desktop PC port Null modem BARE adapter ci FEF 2 desktop PC log into the directory which contains the file s you will download tothe PC Microcontroller for example C NMPCN60xxNDEMO 3 Start PC SmartLINK and power on the PC Microcontroller Note Note Execute the TRANSFER E XE program from the PC Microcontroller by entering 60xx C N gt TRANSFER E DEMO EXE In this case E isthe virtual drive assigned in CONFIG SYS Any PC Microcontroller read write drive could be substituted When sending a file enter the following 60xx C N gt TRANSFER S Thefollowing message is displayed from the PC Microcontroller Receiving E DEMO EXE Execute the following steps using PC SmartLINK a Press lt ALT gt lt D gt to enter the download screen the name of the file to transfer e g DEMO EXE if PC SmartLINK was not started in the DEMO directory as instructed in Step 2 then the entire path may have to be entered DE MO DE MO E XE 2 12 6000 Series user s manual Quick start Note begin the transfer do one of the following press ENTER default download START m tabtoSTART and press ENTER mouse click on the STAR
50. 00 SSDO contains the BIOS and ROM DOS 6 22 in flash ROM It reserves 128 KB for BIOS and 896 KB for a drive area 5500 is a DOS compat ible read write drive Your application programs can be saved to flash using the PICO FA driver which makes the flash memory a read write disk on your PC Microcontroller Saving your application programs onto the read write disk allows you to update them at least 100 000 times These devices are erased automatically during the programming process SSDO can be accessed directly as a read write DOS drive with the PICO FA driver in the BIOS extension Also it can be accessed directly as a read write DOS drive when the PICOFA SYS driver is loaded While this is convenient for product development the flash however has a limited number of writes allowed Therefore Octagon does not recom mend SSDO be used as a data logging device Refer to the Software utilities chapter for information on supported flash memory and a description of PICO FA SSD2 SSD2 contains 128 KB of SRAM SSD2 can be accessed directly as a read write DOS drive with the PICO FA BIOS extension SSD2 is generally used for data logging WARNING The on board battery is not intended to back up SSD2 Use an external AT style battery to back up SSD2 Failure to do so may result in lost data 9 1 SSDs DRAM and battery backup 6000 Series user s manual DRAM The PC Microcontrollers are shipped with 2 or 4 MB
51. 00 Series user s manual Jumper settings TableE 5 6050 jumper settings W1 and W2 Table E 6 Table E 7 J umper position Pins Description S W1 1 2 USESETUP x W1 3 4 BIOS extension enable N W1 5 6 Network mode p W1 7 8F Turbo mode A W2 7 8F IO RGE SEL A B W1 9 10 IO RGE SELB B W2 9 10 BIOS device W21 3 EZ I O port C pull down W2 3 5 EZ I O port C pull up W2 2 4 EZI O port A pull down W2 4 6 EZ I O port A pull up default pins jumpered 6050 EZ 1 O base address selection IA W2 7 8 IB W1 9 10 I O address J 1 not jumper ed not jumper ed 320H jumpered not jumpered 120H not jumper ed jumpered 340H jumpered jumpered 140H default pins jumpered 6050 pull down pull up EZ I O Configuration Description W2 2 4F W2 4 6 W2 1 3 W2 3 5 All lines in Port A are pulled to 45V through 10K Ohm All lines in Port A are pulled to Gnd through 10K Ohm All lines in Port C are pulled to 45V through 10K Ohm All lines in Port C are pulled to Gnd through 10K Ohm default pins jumper ed E 6 6000 Series user s manual 6050 technical data Connector jumper pinouts TableE 8 6050 BIOS and boot option jumper pinout W1 Pin Function 1 Gnd 2 USESETUP S 3 Gnd 4 BIOS extension enable X 5 Gnd 6 Network mode N 7 Turbo mode T 8 45V 9 Gnd 10 IORGESELB IB TableE 9 6050 BIOS a
52. 0000000000 9s f 250 3 500 3 750 Alphanumeric display Tointerface VF 2 x 20 a VF 4 20 or an LCD 4 x 40 alphanumeric display to the Microcontroller use the keypad and display board The program DI SPLAY E XE found on the PC Microcontroller utility disk provides an easy method to use the display Refer to the file DISPLAY DOC on the PC Microcontroller utility disk for information on initializing and using the display Installing an alphanumeric display To install an alphanumeric display Remove power from the PC Microcontroller If you are using a breakout board with the PC Microcontroller connect a CMA 26 cable from the EZ I O port on the PC Microcontroller to the EZ1 O port on the keypad and display board If you are not using a breakout board with the PC Microcontroller you may use either the EZ I O port or the AUX I O port use the EZ I O port follow the instructions described above To use the AUX I O port Tel AUX 6000 Series user s manual connect a CMA 34 cable from the AU X I O port on the P C Microcontroller to the AUX I O port on the keypad and display board 3 Supply 5V tothe keypad and display board Note Connect the selected display either VF 2 x 20 VF 4 x 20 or LCD 4 x 40 display to the appropriate connector on the keypad and display board Do not connec both VF and LCD displays to the keypad and display board simultan
53. 040 Analog port J7 CMA 20 ribbon cable 6040 Analog output device Configuring and programming the analog I O port Configuring and reading from analog input with CAMBASIC To configure the 6040 for analog input use CAMBASIC s CONFIG AIN command For more details regarding CONFIG AIN refer to your CAMBASIC user s manual Example An analog input program example using CAM BASIC s AIN command is provided below 10 CONFIG 0 0 Config A D channel 0 to 0 to 5V input range 20 CONFIG AIN 1 1 Config A D channel 1 to 5 to 5V input range 30 CONFIG 2 2 Config A D channel 2 to 0 to 10V input range 8 2 6000 Series user s manual Analog 40 CONFIG AIN 3 3 Config A D channel 3 to 10 to 10V input range 50 CONFIG 4 0 Config A D channel 4 to 0 to 5V input range 60 CONFIG 5 0 Config A D channel 5 to 0 to 5V input range 70 CONFIG 6 0 Config A D channel 6 to 0 to 5V input range 80 CONFIG 7 0 Config A D channel 7 to 0 to 5V input range 100 FOR X 0 TO 5 110 C X AIN 0 Assign analog input readings from channel 0 to array C 120 NEXT X Reading numbers less than zero Dothe following to read numbers less than zero 1 Subtract 65535 FFFF then 2 Apply the multiplier Configuring analog output Refer to Table 8 1 to configure for analog output on the 6040 PC Microc
54. 1 port on the breakout board tothe AUX I O port on the PC Microcontroller 3 Connect a PS 2 style keyboard to J 4 on the breakout board Power on the PC Microcontroller Refer to the Breakout board product sheet for the keyboard interface connector pinout at J 4 Speaker The speaker is interfaced via a 4 pin connector at J 2 on the breakout board An external speaker from 8 to 50 ohms can be used If an ampli fier speaker is used Speaker Data 5V and Gnd are supplied for the amplifier If only a speaker is used attach the speaker directly to Speaker Data and 45V Installing a speaker Toinstall a speaker Remove power from the PC Microcontroller Connect a CMA 34 cable from the breakout board AU X I O connector to the PC Microcontroller AU X 1 0 port 3 Connect a speaker to J 2 on the breakout board Power on the PC Microcontroller Refer to the Breakout board product sheet for the speaker interface pinout at J 2 Floppy disk drive The parallel port on the breakout board can be used as a floppy disk drive port Thefollowing section provides instructions for installing a floppy disk drive Table 7 1 provides the pinouts to wire the AUX I O connector to a floppy drive Installing a floppy disk drive Toinstall a floppy disk drive Remove power from the PC Microcontroller Connect a CMA 34 cable from the AUX 1 port on the breakout board to the AUX I O port on the PC Microcontroller
55. 14 6000 Series user s manual Quick start Exit PC SmartLINK by pressing lt ALT gt lt X gt 5 Execute REMDISK EXE on the PC by entering Note C gt REMDISK The following message is displayed on the PC Remote Disk v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Installed as Drive E COM B115 T10 REMDISK EXE is located in the DOS directory on the PC Microcon troller utility disk REMDISK assigns the remote drive as the last drive in the system In this case drive E was assigned Files aretransferred to the PC Microcontroller s read write drives by using the DOS COPY or XCOPY commands Enter C gt COPY C MPC 60xx DEMO EXE E C gt DIR E C gt E DEMO EXE The DEMO program displays a message on your PC In this case drive E is the remote read write SSD flash disk drive of the PC Microcontroller Files are easily copied between the drives When finished execute C N gt REMDISK U This unloads REMDISK from the desktop PC Restart PC SmartLINK and reset the PC Microcontroller PC Microcontroller with no video card two PCs and two serial cables Thefirst desktop PC is used as theterminal for the PC Microcontroller and the second desktop PC s hard drive is accessed as a remote drive containing the files to be downloaded to the PC Microcontroller Hardware and software requirements W Desktop PC running PC SmartLINK connected by a VTC 9F c
56. 1st 64K RAM chip or data line failure bit 0 11h 2 1 2 1st 64K RAM chip or data line failure bit 1 12h 2 1 3 1st 64K RAM chip or data line failure bit 2 13h 2 1 4 1st 64K RAM chip or data line failure bit 3 14h 2 2 1 1st 64K RAM chip or data line failure bit 4 15h 2 2 2 1st 64K RAM chip or data line failure bit 5 16h 2 2 3 1st 64K RAM chip or data line failure bit 6 17h 2 2 4 1st 64K RAM chip or data line failure bit 7 18h 2 3 1 1st 64K RAM chip or data line failure bit 8 19h 2 3 2 1st 64K RAM chip or data line failure bit 9 1Ah 2 3 3 1st 64K RAM chip or data line failure bit A 1Bh 2 3 4 1st 64K RAM chip or data line failure bit B 1Ch 2 4 1 15 64K RAM chip or data line failure bit C 1Dh 2 4 2 Ist 64K RAM chip or data line failure bit D 1Eh 2 4 3 15 64K RAM chip or data line failure bit E 1Fh 2 4 4 1st 64K RAM chip or data line failure bit F 20h 3 1 1 slave DMA register test in progress or failure 21h 3 1 2 master DMA register test in progress or failure 22h 3 1 3 master interrupt mask regi ster test in progress or failure 23h 3 1 4 slave interrupt mask register test i n progress or failure 25h interrupt vector loading in progress 27h 3 2 4 keyboard controller test in progress failure 28h CMOS power fail amp checksum checks in progress 29h CMOS config info validation in progress 2Bh 3 3 4 screen memory test in progress or failure 2Ch 3 4 1 screen initialization in progress or failure 2Dh 3 4 2 screen retrace tests
57. 22 IRQ6 B7 12V Not used B23 IRQ5 I mapped 1018014 B8 Reserved Not used B24 IRQ4 I mapped toIRQ11 B9 12V Not used B25 IRQ3 I mapped B10 Analog Gnd Not used B26 DACK 2 l B11 MEMW O B27 T C B12 MEMR 26 ALE O B13 IOW O B29 Aux 5V Not used B14 IOR O B30 OSC O B15 DACK 3 O B31 Gnd B16 DRQ3 l adive low E 12 6000 Series user s manual Miscellaneous AppendixF Miscellaneous The Miscellaneous chapter discusses Octagon s power supplies The Miscellaneous chapter also discusses how to build a custom communica tion cable and how to upload files from the PC Microcontroller For more information on these three areas refer to the Miscellaneous chapter in the 6000 Series user s manual F 1 Miscellaneous 6000 Series user s manual 6000 Series user s manual Accessories AppendixG Accessories The Accessories chapter lists product name description and part num bers to all cables terminal and interface boards L CD displays keypads opto racks and modules and miscellaneous parts that are relevant to the 6000 Series PC Microcontrollers To view this listing refer to the Accessories chapter in the 6000 Series user s manual G 1 Accessories 6000 Series user s manual 6000 Series user s manual Warranty Warranty Refer to the 6000 Series user s manual for a complete des
58. 3h 04h 05h Meaning Unknown error Function not implemented Defective serial EEPROM access EZ I O data out of range CTC data out of range Note Refer totheN CTC directory on the 6020 utility disk for programming examples CAMBASIC CAMBASIC can program the CTC with the INT 17H commands Refer to the CTC directory in the 6020 utility disk for CAMBASIC programming examples 15 10 6000 Series user s manual Watchdog timer reset and remote reset Chaptert6 Watchdog timer reset and remote reset Watchdog timer The watchdog timer is a fail safe against program crashes or processor lockups It times out every 1 6 seconds 1 6 sec typical 1 00 sec min 2 25 sec max unless it is disabled or strobed by the software The watchdog ti mer can be controlled through the enhanced INT 17H inter face which is a built in function on the PC Microcontroller Enhanced INT 17H function definitions This section provides definitions for the following functions Enable Watchdog Strobe Watchdog and Disable Watchdog Enable watchdog Function fdh Subfunction 01h Purpose To enable the watchdog Calling registers AH fdh AL Olh DX ffffh Return registers None Comments This function enables the watchdog Once the watchdog is enabled it has to be strobed at a period of not less than 1 6 seconds or until the watchdog is disabled Otherwise a system reset will occur Programming
59. 5 in 4 9 in Mating connectors 1 7 21 0 port 26 pin shrouded header Connector 746288 6 Strain relief AMP 499252 3 J 2 AUX I O port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 J 3andJ 4 serial ports 10 pin shrouded header Receptacle AMP 746288 1 Strain relief AMP 499252 5 J 6 battery 4 pin in line connector Housing DuPont BERG 746288 1 Crimp towire pins DuPont BERG 499252 5 B 2 6000 Series user s manual 6020 technical data Component diagram FigureB 1 6020 component diagram 1 26 pin Battery AUX I O 34 pin COM 10 pin 9900000000000 00000000000000000 0000000000006 EZ 2 92 mma 26 e a 0000000000000 ma njoooo 2 B gd m rm E P nuni mmm unn Eke CRA mr MERI 4 4 e T nu o P OBM Liscamne Lovet Proens 95 1995 H 01501 Phoenix PICO tm Flosh Array License Lobel 1995 1996 N001501 N lay numm os MIB Soma 1 wt w2 LLL RS eI IL mm E i xm mu nui mme o Tm IIIIUI IIIIIIIIIIII I II IW um GINIIIIII II IIIIII
60. 6 with a CMA 26 cable Parallel 1 devices are then connected to the screw terminals on the STB 26 Refer to the STB 26 produc sheet for more information EZ port Microcontroller ribbon cable 6 12 6000 Series user s manual EZ Configuring and programming the EZ I O ports Table 6 9 Note Table 6 10 On powerup and software or hardware reset all digital I O lines are reset as inputs Each digital I O connector has an Octagon EZ I O digital chip associated with it Each has three ports with eight parallel 1 lines bits per port The address of the port is determined by jumper settings as follows EZ I O base address selection 6020 IA IB J1 EZI O1 J7 EZI O2 CTC Gate address W2 7 8 Wi 9 10 address address address amp bit nat not 320H 328H 330H OxA8 bit 4 jumpered jumpered jumpered 120H 128H 130H OxA8 bit 4 jumpered not jumpered 340H 348H 350H OxA8 bit 4 jumpered jumpered jumpered 140H 148H 150H OxA8 bit 4 default pins jumpered Selecting a different EZ1 O address for the 6020 PC Microcontroller also selects a different 1 0 address for the CTC Counter Timer Controller For information on the CTC refer to the Description section in the Counter timer controller chapter EZ 1 O base address selection 6040 and 6050 IA W2 7 8 IB W1 9 10 1 O address J 1 not jumper ed not jumpered 320H jumpered no
61. A 0 bit to the corresponding line indicates an output A 1 bit indicates an input Each bit corresponds to the equivalent 1 line 6 12 EZ O port byte EZ 1 0 port byte EZ 1 0 port bit7 bit6 bit5 bit4 bit2 I O line x 7 x 6 x 5 x 4 x 3 x 2 x 1 x 0 For example writing 00011100 to port C base address 2 will configure port C I O lines 0 1 5 6 and 7 to be inputs and lines 2 3 and 4 to be outputs 6 14 6000 Series user s manual EZ OUT 142H 1 00011100 binary 1C hexadecimal Write a 3 tothe control register base register 3 This places thel O chip back into operati on mode OUT 143H 3 control register Writing and reading from EZ Writing to or reading from the desired EZ 1 0 port is accomplished with single program statements To write a bit pattern to the desired EZ 1 0 port OUT 142H FFH All bits of port C go high all input bits are unaffected read a bit pattern from the desired EZ 1 port PORTC INP 142H The byte read from port C is assigned to variable port C EZ I O output program examples Note Note To configure ports A B and C as all outputs issuethe command OUT 143H 2 Direction Mode OUT 140H FFH PortA OUT 141H Port B OUT 142H FFH PortC OUT 143H 3 Operation Mode With CAMBASIC you can also accomplish the same configuration and outputs with on
62. Appendix D 6040 technical data Appendix E 6050 technical data AppendixF Miscellaneous Appendix G Accessories About this manual 6000 Series user s manual 6000 Series user s manual Overview Chapter1 Overview Introduction The Octagon 6000 Series PC Microcontroller cards are intended for easy usage and high performance in embedded control applications The PC Microcontroller cards combine the best features of the PC archi tecture and microcontroller 1 Bringing PC software to the microcontroller world eliminates the need to maintain development systems for the different microcontroller chips The Octagon PC Microcontrollers operate in severe environments providing an extra margin of reliability in any application Although ROM DOS 6 22 is included you can download other operation systems into the flash drive If you prefer operating in a high level language CAMBASIC has been built in as a fast easy to use industrial control language Common features across the PC Microcontroller product line include m Suite of embedded software Datalight ROM DOS 6 22 in ROM Phoenix PICO FA flash file system CAMBASIC multitasking language RS 422 485 networking software up to 32 nodes Phoenix BIOS with industrial BIOS extensions Driver library Diagnostic software m 40 MHz 3865 processor 2 4 MB of on card DRAM Two solid state disks 1 MB flash SS
63. C 5 6030 technical data 6000 Series user s manual Jumper settings TableC 5 6030 settings W1 W2 J umper position Pins Description S W1 1 2 USESETUP x W1 3 4 BIOS extension enable N W1 5 6 Network mode W1 7 8 Turbo mode W2 7 8 IO RGE SEL A B W1 9 10 IO RGE SEL B B W2 9 10 BIOS device default pins jumpered Connector jumper pinouts TableC 6 6030 BIOS and boot option jumper pinout W1 Pin Function 1 Gnd 2 USESETUP S 3 Gnd 4 BIOS extension enable X 5 Gnd 6 Network mode N 7 Turbo mode T 8 5V 9 Gnd 10 IORGESELB IB C 6 6000 Series user s manual 6030 technical data TableC 7 6030 digital 1 O option jumper pinout W2 Pin Function T NC 2 NC 3 NC 4 NC 5 NC 6 NC 7 Gnd 8 IORGESELA IA 9 Gnd 10 BI OSDEV B TableC 8 J 3 COM2 J 4 J 1 and J 7 pinout Pin COM1 J 3 COM2 j 4 1 J 7 1 DCD DCD NC NC 2 DSR DSR NC NC 3 RxD RxD RxD RxD 4 RTS RTS RTS RTS 5 TxD TxD TxD TxD 6 CTS CTS CTS CTS 7 DTR DTR 1K Pull up 1K Pull up 8 RI RI NC NC 9 Gnd Gnd Gnd Gnd 10 5 Safe 45 VDC Safe 45 Safe 5 VDC Safe activelow C 7 6030 technical data 6000 Series user s manual TableC 9 6030 AUX 1 connector pinout J 2 Pin Function DB 9 IDC break
64. C Microcontroller a screw terminal connector is provided to supply the 5V power Refer to Figure 2 4 for an illustration of panel mounting the PC Microcontroller WARNING Miswiring the voltage at P2 of the PC Microcontroller or at the power connector of the 5252MB stacking kit reversing 5V and ground or applying a voltage greater than 45V will destroy the card and void the warranty Figure2 4 Pand mounting the PC Microcontroller Power connector Em Figure2 5 StackingthePC Microcontroller Power connector 5252MB stacking kit 1 To panel mount the PC Microcontroller use 4 40 standoffs and screws to secure the card The following diagram shows center to center mounting hole dimensions 2 5 Quick start 6000 Series user s manual Figure 2 6 Note Note To stack the PC Microcontroller refer to the 5252MB stacking kit prod uct sheet enclosed with the kit Then proceed with Step 2 in this section PC Microcontroller center to center hole dimensions A 4 90 in 124 46 mm B 0 20 in 5 08 mm 3 50 in 88 90 mm D 0 10 in at 45 2 PLCS 2 54 mm at 45 E 2 0 475 in 4 44 mm F 0 85 in 21 59 mm G 320 in 81 28 mm H 0 30 in 7 62 mm J 4 20 in 106 68 mm K 0 20 in 5 08 mm L 4 50 in 114 30 mm 475 in 12 07 mm 0 015 i
65. D with an integral programmer 128 SRAM SSD with battery backup Two serial ports with 8 KV ESD protection Multifunctional parallel port K eyboard and speaker ports Watchdog timer Real time calendar clock see note on page 1 7 Two opto isolated interrupt inputs System status LEDs Stand alone or ISA bus expansion 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz 10g shock 2g vibration 1 1 Overview 6000 Series user s manual m 5V operation Low power mode W Over voltage reverse voltage protection Unique features of each PC Microcontroller are listed in the following table Table 1 1 Features of the PC Microcontrollers Features 6010 6020 6030 6040 6050 COM ports 2 2 4 2 2 a ar Rea NO YES YES YES YES EZI O digital lines 48 24 24 LPT port 1 1 1 1 1 indudes parali port 6 ja High current drivers 8 Analog inputs 8 Analog outputs 2 PC 104 interface YES NO NO NO NO EIDE port YES NO NO NO NO Floppy port YES NO NO NO NO Counter timer NO YES NO NO NO controller Major features Suite of embedded software included in SSDO flash drive m Phoenix BIOS and Octagon industrial extensions The BIOS is shadowed for fast operation m Instant DOS system Datalight ROM DOS 6 22 loads to high memory on powerup allowing more lower memory for data sto
66. FH COMI 4 6000 Series user s manual 6050 technical data TableE 3 6050 interrupt map Interrupt Description IRQ0 System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 COM2 serial port IRQ4 COM 1 serial port IRQ5 LPT 1 with SETUP IRQ6 F yia controller avail able and connected to BIRQ6 Or IRQ7 Avail able and connected to BIRQ7 also selectabl e with SETUP as LPT1 interrupt IRQ8 RTC alarm IRQ9 U ser confi gurabl e connected to IRQ10 Avail able and connected to BIRQ3 IRQ11 Available and connected to BIRQ4 IRQ12 Unavailable IRQ13 Floating point unit IRQ1A Avail able and connected to BIRQ5 IRQ15 Power management interrupt TableE 4 6050 memory map Address Description 00000H 9F F FFH System memory 640 KB base RAM AO0000H BF F FFH Off card memory usually reserved for vi deo memor y CO0000H C7F Off card memary usually reserved far video BIOS Shadow enable disable option in SETUP C8000H CF F FFH Off card memory Shadow enable disable option in SETUP DOOOOH DFF FFH Off card memory Shadow enable disable option in SETUP EO0000H E 7F FFH 32 KB BIOS extension area Shadow always enabled E8000H EF F FFH 32 KB SSD memcry paging window Shadow always disabled in this region F0000H FFF FFH 64 KB BIOS area Shadow always enabled 10000H F FF FFH 16 MB addressable extended memory E 5 6050 technical data 60
67. Floppy drive 1 size 5 25 360KB 5 25 1 2 MB 3 5 720KB 3 5 1 44 drive 2 size 5 25 360KB 5 25 1 2 MB 3 5 720KB 3 5 1 44 MB Number of hard drives 1 2 6000 Series user s manual Setup programs Note Table 3 2 Note Note If you are using a 5800A or a 5815 with the PC Microcontroller set Number of hard drives to 0 on either the 5800A or 5815 or on the PC Microcontroller See the following table for details Hard drive setup No of drives in HDSETUP IRQ setting in No of drives in CPU 5800A 5815 HDSETUP SETUP lor2 IRQ14 0 0 N A lor 2 The PC Microcontroller does not support floppy drives on the 5800A without first making some modifications to the 5800A Call Technical Support for assistance Onboard IDE interface 6010 only Enabled Disabled The 6010 has an on board floppy controller and IDE controller If an external controller is desirable the on board controllers can be disabled through SETUP Auto Drive Configuration Enabled Disabled Drive 0 parameters Cylinders xxx Heads x Sectors xx Setup entry via hotkey Enabled Disabled Power management Enabled Disabled Time update after suspend Enabled Disabled Shadow C8000H CFFFFH Disabled Enabled Shadow D0000H D7FFFH Disabled Enabled Shadow D8000H DFFFFH Disabled Enabled
68. GH enables the counter If GATE input is LOW then counting is inhibited If GATE goes LOW while OUT is LOW OUT will go HIGH immediately The positive transition of GATE will reload the count value of N into the counter on the next CLOCK cyde The COUNT value will then be decremented on subsequent CLOCK cydes Because interrupts are typically positive edge triggered the interrupt will not be generated until OUT goes low and then high again CLOCK count 1 Mode 4 Software triggered strobe This mode can be useful when no external events are needed or provided to generate an interrupt by the CTC Once the count at counter 0 or counter 1 has been reached an interrupt will be generated This mode requires control of the GATE and therefore cannot be used for the counter 2 This mode is useful in order to generate a one CLOCK pulse width OUTPUT after a COUNT value of N has expired The OUT signal is HIGH after the control word is written After the COUNT value of N is written the value is loaded into the counter on the next CLOCK cycle The value is not decremented on this cycle The OUT signal remains HIGH until the counter reaches a 0 value OUT then cydes LOW for one CLOCK period OUT will then remain HIGH after this cycleuntil a COUNT valueis rewritten to the counter GATE input equal to 1 enables the counter GATE input equal to 0 inhibits the counter The GATE input does not effect the OUT signal in any other way Because interru
69. Gnd 11 45V F DD Gnd 28 WP 12 DS1 29 Gnd 13 Gnd 30 RData 14 DSO 31 Gnd 15 Gnd 32 HDSel 16 Mtr1 33 Gnd 17 Gnd 34 DskChg active low A 13 6010 technical data 6000 Series user s manual TableA 15 Micro PC bus A pinout Pin Description Signal Pin Description Signal Al CH CK l A17 A14 O A2 D7 I O A18 A13 D6 19 12 O A4 D5 1 0 A20 All O A5 D4 I O A21 A10 A6 D3 I O A22 A9 7 D2 I O A23 A8 O A8 D1 I O A24 A7 O A9 D0 I O A25 A6 O A10 1 0 CH RDY l A26 A5 O A11 AEN O A27 A4 O A12 A19 O A28 A3 1 A18 O A29 A2 O A14 A17 O A30 A1 O A15 A16 O A31 A0 O A16 A15 O activelow 6000 Series user s manual 6010 technical data TableA 16 Micro PC bus B pinout Pin Description Signal Pin Description Signal B1 Gnd l B17 DACK 1 O B2 RESET O B18 DRQ1 l B3 5V l B19 DACK 0 O B4 IRQ9 l B20 CLOCK O B5 NC Not used B21 IRQ7 DRQ2 l B22 IRQ6 7 12V Not used B23 IRQ5 I mapped toIRQ14 B8 Reserved Not used B24 IRQ4 B9 12V Not used B25 IRQ3 mapped to IRQ10 B10 Analog Gnd Not used B26 DACK 2 B11 MEMW O B27 T C B12 MEMR O B28 ALE O B13 IOW O B29 Aux 5V Not used B14 IOR O B30 OSC O B15 DACK 3 O B31 Gnd l B16 DRQ3 l active low A 15 6010 technical data 6000 Series user s manual 6000 Series user s manual 6020 technical data
70. I I 5 ul nmn ml o 5 nimm pe niil nu HE HH i m RN12 RN14 ca HHHHHHHHHHHHHHHHHHHHI 40 C to 85 OCTAGON SYSTEMS BIOS lt Octagon Systems ROM DOS lt Dotol ght cu i 5 eo c TUT 62 o 8 gt TT Lar ge n nt num _ OCTAGON SYSTEMS C 1997 1 3 6020 technical data 6000 Series user s manual Maps TableB 1 6020 DMA map Channel Description Channel 0 Reserved far bus memory refresh Channel 1 Available reserved for ECP parallel port Channel 2 Floppy disk drive Channel 3 Available Channel 4 Slave Channel 5 Unavailable no connecti an provided Channel 6 Unavailable no connecti an provided Channel 7 Unavailable no connecti an provided TableB 2 60201 0 map Hex range Function 000H 0A 7H OA8H OAFH 100H 207H 140H 147H 148H 14FH 150H 157H 208H 20BH 20CH 20FH 210H 213H 214H 217H 2 8 2 378H 37BH 3F8H 3FFH System I O functi ans General purpose status registers 0A8H bit 4 is the CTC gate control System I O functi a
71. IG DISPLAY CONFIG KEYPAD CONFIG PIO CONFIG TIMER COUNT CRE DEC DELAY DEV DINP DISPLAY DOSINT DOUT DPEEK DPOKE ERROR EXIT DO EXIT FOR INC HALT INDENT KEY PAD MAXVAL MEAN NET NLIST NLLIST ON COUNT ON ERR Autoruns a CAMBASIC program Returns the binary check code BCC Converts binary to 4 digit BCD Converts BCD to binary Returns the binary representation to string form Reads or writes specific bits at 1 0 addresses Clears display Clears software timer Selects drivers for specified A D Selects drivers for specified D A Configures COM port parameters Configures COM port Configures software counter Configures display Configures keypad Configures 82C55 parallel port Configures software timer Returns the count from software counter Returns the cyclic redundancy CRC of a memory block Fast decrement of a numeric variable Introduces delay to program flow Returns standard deviation of an array Inputs a 16 bit value to I O address Prints toa display Executes DOS software interrupt Writes to 16 bit value to 1 0 address Read a 16 bit value from memory Writes a 16 bit value to memory Returns error code or simulates run time error Exits DO loop unconditionally Exits FOR loop unconditionally Fast increment of variable Halts processor for lowest power mode Declares the network identification code Reads the keypad Returns maximum value of elements in an array Returns mean value of the e
72. IwIII nil umm w nui lt a mMM zz mui nul niil E nmi nil mmm mm J gt 9 Ri OI IIIIIIIIIIWAZIIIIIIIIIIIIIII RN12 mmm 015 Ai U6 PLCC IZIIIIIIIIIIIII III 9MIIIII Ji mum mano Q x m a l mimm mmm mmn E 3 6050 technical data 6000 Series user s manual Maps TableE 1 6050 DMA map TableE 2 60501 0 map Channel Description Channel 0 Reserved far bus memory refresh Channel 1 Available reserved for ECP parallel port Channel 2 Floppy disk drive Channel 3 Available Channel 4 Slave Channel 5 Unavailable no connecti an provided Channel 6 Unavailable no connecti an provided Channel 7 Unavailable no connecti an provided Hexrange Function 000H 0A7H System I O functions OA8H OAFH General purpose status registers OBOH OFFH System 1 0 functions 100H 207H Off card I O Space 208H 20BH System contrd register read write access no SEEP CLK 20CH 20FH System control register 1 read write access watchdog OR strobe no SEEP CLK 210H 213H System control register 0 RO SEEP CLK 214 217 System control register 1 RO watchdog strobe serial EEPROM read write 2F8H 2FFH COM2 320H 327H Digital I O A EZ selectable 378H 37BH Bidirectional parallel port LPT 1 3F8H 3F
73. K eyboard printer speaker optically isolated interrupt and reset and an optional AT battery are connected from the breakout board tothe PC Microcontroller through the 34 pin AUX I O header The AUX I O header provides a convenient and quick method of disconnecting these external devices from the PC Microcontroller during maintenance Note The AUX I O port supports either a printer an MPB 16PC opto rack a floppy drive or can interface to a keypad and alphanumeric display but not to all at the same time Figure7 1 BOB component and dimensions diagram 1 650 SPEAKER OOOOOOOOOOO0000000 i 1 400 4 99000000000000000 ih Soon A 9 Op AUX Qaoc goc di BATT oo m BATTERY alo 2 T 5 lo j3 USA o m C2 09 PRINTER P us e 114 16 250 4X156 amp Li D 9e bT S to O 2 NPTH Non plated through hole Note 1 These holes are used only for strapping the battery 7 1 AUX 6000 Series user s manual 7 2 Breakout board hookup diagram Speaker To PC Microcontroller AUX Port Keyboard BATTERY o8 DHODO OOgaOagagagagaadaadu mim
74. NOTICE The drivers and utilities for Octagon products previously provided on a CD are now in a self extracting zip file located at the Octagon Systems web site on the product specific page Download this file to a separate directory on your hard drive then double click on it to extract the files All references in this manual to files and directories on the CD now refer to files in the Utilities zip file OCTAGON SYSTEMS Embedded PCs For Extreme Environments 6000 Series User s Manual 4738 0906 Micro PC SmartLink CAMBASIC Octagon Systems Corporation the Octagon logo and the Micro PC logo are trademarks of Octagon Systems Corporation QuickBASIC is a registered trademark of Microsoft Corporation QNX is a regis tered trademark of QNX Software Systems Ltd ROM DOS is a trademark of Datalight Windows and Windows NT are trademarks of Microsoft Corporation PICO FA is a trademark of Phoenix Technologies Ltd Copyright 1997 1998 2006 Octagon Systems Corporation All rights reserved However any part of this document may be reproduced provided that Octagon Systems Corporation is cited as the source The contents of this manual and the specifications herein may change without notice The information contained in this manual is believed to be correct However Octagon assumes no responsibility for any of the circuits described herein conveys no license under any patent or other right
75. Note The DB connectors are the 3M 3414 series connector or T homas and Betts 608 3430 A wiremount male connector can be used to connect a VTC10 IBM cable E 9 6050 technical data 6000 Series user s manual TableE 12 6050 1 J 3 and COM2 J 4 pinout Table E 13 Table E 14 Pin COM1 COM2 1 DCD DCD 2 DSR DSR 3 RxD RxD 4 RTS RTS 5 TxD TxD 6 CTS CTS 7 DTR DTR 8 RI RI 9 Gnd Gnd 10 5 Safe 5 VDC Safe active low 6050 power connector pinout 5 Pin Function 1 45 VDC 2 Gnd 6050 battery pinout J 6 Pin Function 1 Battery 2 Keyed 3 Gnd 4 Gnd E 10 6000 Series user s manual 6050 technical data TableE 15 Micro PC bus A pinout Pin Description Signal Pin Description Signal Al CH CK 17 14 O A2 D7 I O A18 A13 O A3 D6 I O A19 A12 O A4 D5 I O A20 A11 O A5 D4 I O A21 A10 O A6 D3 I O A22 A9 O A7 D2 I O A23 A8 O A8 D1 I O A24 A7 O A9 D0 I O A25 A6 O A10 IO CH RDY l A26 A5 O A11 AEN O A27 A4 O A12 A19 O A28 A3 O A13 A18 O A29 A2 O A14 A17 O A30 A1 O A15 A16 O A31 A0 O A16 A15 O activelow 6050 technical data 6000 Series user s manual TableE 16 Micro PPC bus B pinout Pin Description Signal Pin Description Signal B1 Gnd B17 DACK 1 O B2 RESET B18 DRQ1 B3 5V l B19 DACK 0 O B4 IRQ9 l B20 CLOCK O B5 NC Not used B21 IRQ7 B6 DRQ2
76. PC Microcontroller you must execute the TRANSFER program from both the PC Microcontroller and your PC This procedure can be used to transfer files to any writeable drive including SSDO in your PC Microcontroller system Hardware and software requirements W Desktop PC running REMSERV connected by a VTC 9F cable and a null modem adapter to COM 1 or COM2 of the PC Microcontroller m APCMicrocontroller system a breakout board including a key board a 5420 SVGA video card and VGA monitor running REMDISK from COM 1 2 1 Connect the equipment as shown in the following figure Figure 11 1 Downloading files to a PC Microcontroller with a video card installed 5420 SVGA Card PC Null modem adapter 6000 Series user s manual Video 2 Note Execute the TRANSFER program from the PC Microcontroller to re ceive a file from your PC 60xx C gt TRANSFER COM1 R V lt drive gt filename ext lt drive gt is the virtual drive on the PC Microcontroller where the file 15 transferred filenameext is the name of the file on the PC Microcontroller which you receive from your PC IN enables R characters upon receiving a block and T upon transfer ring a block Execute the TRANSFE
77. PC Microcontroller becomes charged by the user and the static discharges to the back plane from the pin closest to the card connector If that pin happens to be an input pin even TTL inputs may be dam aged To avoid damaging your card and its components Ground yourself before handling the card m Disconnect power before removing or inserting the card WARNING Take care to correctly position the PC Microcontroller in the card cage The VCC and ground signals must match those on the backplane Figure 2 1 shows the relative positions of the PC Microcontroller as it is installed in the card cage Your PC Microcontroller can be installed in one of several ways m Plugging it directly into an 8 bit Micro PC card cage m Using the optional PC mounting bracket and plugging it into any 8 bit passive ISA backplane m Panel mounting it using the four mounting holes m Stacking it with other Micro PC cards 2 1 Quick start 6000 Series user s manual Note The product specific appendices provide component diagrams for the PC Microcontrollers in the 6000 Series Refer to them as needed Using a Micro PC card cage Toiinstall the PC Microcontroller in a Micro PC card cage you will need the following equipment or equivalent PC Microcontroller Micro PC card cage 5xxx Card Cage Power module 510x or 71xx Power Module VTC 9F Cable Null modem adapter PC Microcontroller ROM DOS and utili
78. R program from your PC to send a filetothe PC Microcontroller C TRANSFER COM1 S V lt drive gt lt path gt filename ext filenameext is the name of the file on the PC which you send to the P C Microcontroller Transfer will timeout if the program has not been started after approxi mately 40 seconds It displays the following message Failed to receive lt drive gt filename ext Deleting lt drive gt filename ext Also you may speed up the transfer using the Bnnnn switch to increase the baud rate for example B57600 Transferring files from the PC Microcontroller Note In order to transfer files from the PC Microcontroller to your PC you must execute the TRANSFER program from both the PC Microcontrol ler and your PC Connect the equi pment as shown in Figure 11 1 Execute the TRANSFER program from the PC Microcontroller to send a fileto your PC 60xx gt TRANSFER COM1 S V filename ext filenameext is the name of the file on the PC Microcontroller which you send to your PC N enables R characters on receiving a block and T on transferring a block Execute the TRANSFER program from your PC to receive a file from the PC Microcontroller C TRANSFER 1 R V filename ext filenameext is the name of the file on the PC which you receive from the PC Microcontroller Transfer will timeout if the program has not been started after approxi mately 40 seconds It displays the following
79. ROM read write 2E 2 COM4 2F8H 2FFH COM2 378H 37BH Bidirectional parallel port LPT 1 3E8H 3EFH COM3 3F8H 3FFH COM1 C4 6000 Series user s manual 6030 technical data TableC 3 6030interrupt map Interrupt Description IRQ0 System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 COM2 serial port IRQ4 COM 1 serial port IRQ5 LPT IRQ6 F pri controller available and connected to BIRQ6 Or IRQ7 Avail able and connected to BIRQ7 IRQ8 RTC alarm IRQ9 U ser confi connected to B IRQ10 Available and connected to BIRQ3 IRQ11 COM4 serial port IRQ12 COM3 serial port IRQ13 Floating point unit IRQ14 Available and connected to BIRQ5 IRQ15 Power management interrupt TableC 4 6030 memory map Address Description 00000H 9F F FFH System memory 640 KB base RAM AO0000H BFF FFH Off card memory usually reserved for video memory CO0000H C7F FFH Off card memary usually reserved for video BIOS Shadow enabl e disable option in SETUP C8000H CFF FFH Off card memory Shadow enabl e disable option in SETUP DOOOOH DFF FFH Off card memory Shadow enabl e disable option in SETUP EO0000H E 7F FFH 32KB BIOS extension area Shadow always enabled E8000H EFF FFH 32 SSD memory paging window Shadow always disabled in this region F0000H FFF FFH 64 KB BIOS are Shadow always enabled 10000H FFF FFH 16 MB addressable extended memory
80. Refer to the Counter timers section for details on each 1 0 location their functions Interrupts The outputs of CTC counters 0 and 1 are used to provide periodic inter rupts to the 6020 CPU The output of counter 0 is routed to 12 and the output of counter 1 is routed to IRQ11 Counter timers Note The CTC has three separate counter timers included in one package Three data registers are associated with the control register After powerup the state of the 82C54 is undefined because the mode and count value of all counters have not been defined The operation of each counter is determined after it is programmed Each counter must be programmed before it can be used Unused counters however do not need to be programmed Sincethe CTC mainly functions as an interrupt generating device it is important to disable interrupts prior to programming the CTC and then re enable the interrupts The following define each section of each counter timer CTC CLOCK Any negative transition on the CLOCK input will inputs decrement the numeric value of the count registers CTC GATE The GATE input when true allows the CLOCK inputs signal to decrement the value of the count CTC outputs Depending on the mode the OUT signal will either toggle or pulse when the count value reaches 0 Each of the above counter ti mer counters can operate in one of six different modes For more information on the different modes refer to the Co
81. T button in the download screen d When the file transfer is completed press lt ESC gt twice to return to the main PC SmartLINK screen TRANSFER EXE will time out if the program has not been started after approximately 40 seconds If the time out occurs the following message from the PC Microcontroller is displayed Failed to receive E DEMO EXE Deleting E DEMO EXE When the filetransfer is complete typethe following DOS command to view the E drive directory and confirm that your file has been trans ferred to the PC Microcontroller 60xx C gt DIR E The system will display the contents of drive E Volume in drive F is VDISK vX XX Directory of E DEMO EXE 27264 06 07 96 2251p 1 file s 27264 bytes To execute the program you have just downloaded type 60xx C gt E DEMO The DEMO program displays a message on your PC Downloading files to the PC Microcontroller using REMDISK REMSERV Note There are three methods of using REMDISK REMSERV with a PC Microcontroller m PC Microcontroller with no video card and one serial cable B PC Microcontroller with no video card two PCs and two serial cables B PC Microcontroller with a 5420 video card and one serial cable Refer to the Software utilities chapter for specific information on using REMDISK EXE and REMSERV EXE REMDISK REMSERV will not work with Windows 95 or on a network Use REMDISK REMSERV w
82. able and a null modem adapter to COM 1 of the PC Microcontroller W Desktop PC running REMSERV EXE connected by a VTC 9F cable and a null modem adapter to COM 2 of the PC Microcontroller m A PC Microcontroller running REMDISK EXE from COM 2 Connect the equipment and load the appropriate software on each system as per the following diagram 2 15 Quick start 6000 Series user s manual Figure2 10 Downloading filestothePC Microcontroller with no video card and two PCs PC Microcontroller 9 REMDISK EXE Desktop PC 1 COM2 oO m ooooooooooo0000 Bao gog 00000 VTC 9F cable REMSERV EXE Null modem adapter 2 On PC 1 the terminal start PC and power on the Microcontroller 3 Execute REMDISK EXE from 2 on the PC Microcontroller by enter ing 60 gt REMDISK COM2 Thefollowing message is displayed from the PC Microcontroller Remote Disk v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Installed as Drive F COM2 115 T10
83. ad condition Technical assistance Carefully recheck your system before calling Technical Support Run as many tests as possible the more information you can provide the easier it will be for the Technical Support staff to help you solve the problem For technical assistance call 303 426 4521 22 3 Troubleshooting 6000 Series user s manual 22 4 6000 Series user s manual 6010 technical data Appendix A 6010 technical data Technical specifications CPU ALi M6117 386SX Embedded Microprocessor Bus clock 25 MHz 40 MHz BIOS AT compatible with industrial extensions DRAM 4 DRAM soldered on card Floppy drive Floppy drive support the LPT 1 parallel port or external adapter The 6010 has an on board floppy drive interface at J 8 WARNING 8 and 2 34 pin IDC connectors may be mistaken for each other due to their physical similarities Do not connect the floppy disk drive into J 2 the AUX I O port or severe damage will occur to the floppy disk drive Be certain that you connect the floppy disk drive to the J 8 port OOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOO DOOOOOOOOOOOOOOOO DOOOOOOOOOOOOOOOO RESET Jg u J2 E Floppy disk drive port AUX I O port 6010 A 1 6010 technical data 6000 Series user s manual Hard drive Hard drive BIOS supported using external hard drive controller w
84. ad write 2E 8H 2E FH COM4 2F 8H 2FFH COM2 320H 327H Digital I O A EZ I O 328H 32F H Digital 1 O B EZ 1 0 or D A converter data 330H 337H CTC 82C54 or D A converter DAC load 338H 33FH Analog to digtal converter 378 37 Bidirectional parallel port LPT 1 3E8H 3EFH COM3 3F8H 3FFH COMI A 5 6010 technical data 6000 Series user s manual TableA 3 6010 interrupt map Interrupt Description IRQO System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 COM2 serial port IRQ4 COM 1 serial port IRQ5 LPTA IRQ6 Floppy disk controller available and connected to BIRQ6 or FDC IRQ7 Avail able and connected to BIRQ7 IRQ8 RTC alarm IRQ9 U ser confi gurabl e connected to B IRQ10 Available and connected to BIRQ3 IRQ11 BIRQ4 IRQ12 PC 104 cmnector IRQ13 Floating point unit IRQ14 Available and connected to HDC BIRQ5 IRQ15 Power management interrupt TableA 4 6010 memory map Address Description 00000H 9F F FFH System memory 640 KB base RAM AO0000H BFF FFH Off card memory usually reserved for video memory CO0000H C7F FFH Off card memary usually reserved for video BIOS Shadow enabl e disable option in SETUP C8000H CFF FFH Off card memory Shadow enabl e disable option in SETUP DOOOOH DFF FFH Off card memory Shadow enabl e disable option in SETUP E0000H E 7F FFH 32KB BIOS extension area Shadow always enabled E8000H EFF FFH 32 SSD memory pagi
85. al Table B 10 Table B 11 6020 BIOS and boot option jumper pinout W2 Pin Function 1 7 159 MHz CLK 2 CTC CLK2 3 NC 4 1 843 MHz CLK 5 CTC Gate Cmtrol 6 CTC Gates 0 and 1 7 Gnd 8 IORGESELA IA 9 Gnd 10 BIOSDEV B 6020 EZ I O 1 J 1 and EZ I O 2 J 7 connectors Pin Function Pin Function Pin Function Port A Port B Port C 19 bit 0 10 bit 0 13 bit 0 21 bit 1 8 bit 1 16 bit 1 23 bit 2 4 bit 2 15 bit 2 25 bit 3 6 bit 3 17 bit 3 24 bit 4 1 bit 4 14 bit 4 22 bit 5 3 bit 5 11 bit 5 20 bit 6 5 bit 6 12 bit 6 18 bit 7 7 bit 7 9 bit 7 2 45 VDC Safe 26 Gnd Port B can only be configured as output on the 6050 The output level is inverted frominput Thisis duetothe inverted output high current driver used on the 6050 Consider these factors when using and programming this port B 8 6000 Series user s manual 6020 technical data TableB 12 6020 AUX I O connector pinout 2 Pin Function DB 9 IDC breakout cable 1 Opto common 1 2 OPT OB 2 3 Gnd 3 4 OPT OA 4 5 K eyboard data 5 6 K eyboard clock 6 7 Battery 7 8 Speaker 8 9 5 Vdc safe 9 Pin Function DB 25 IDC breakout cable 10 STB 1 11 AF D 14 12 DATAO 2 13 ERR 15 14 DATA1 3 15 INIT 16 16 DATA2 4 17 SLIN 17 18 DATA3 5 19 Gnd 18 20 DATAA 6 21 Gnd 19 22 DATA5 7 23 Gnd 20 24 DATA6 8 25 Gnd 21 26 DATA7 9 27 Gnd 22 28 ACK 10 29 Gnd 23 30 BUSY 11 31 Gnd 24 32 PE 12 33 Gnd 25 34 SLCT 13
86. alls Bus mastering Bus mastering is not supported Power requirements 5V 30 25V 1 0 Amp maximum Full 40MHz operation 490mA typical Suspend 200mA typical Environmental specifications 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz Use of a heat sink may be required to achieve the high end of the temperature range 55 to 90 C nonoperating RH 5 to 95 noncondensing Size 4 5 in 4 9 in Mating connectors J1 J 3 J 4 andJ 7 serial ports 10 pin shrouded header Receptacle AMP 746288 1 Strain relief AMP 499252 5 J 2 AUX I O port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 J 6 battery 4 pin in line connector Housing DuPont BERG 746288 1 Crimp to wire pins DuPont BERG 499252 5 2 6000 Series user s manual 6030 technical data Component diagram FigureC 1 6030 component diagram COM4 10 pin COM3 10 pin AUX VO 34 pin COM1 10 pin 0555900999 L1 Battery m JN COM2 immi C z iv L3 ons mm mE Ir tw ooon Q 992 mmi ES 9 nnn rl0 F MHIIIII tum lt 7 B mun Cum 3 gm tae Pn _ HHHHHHI ig Ri 017 59 g 5 ys P
87. amaged if the right sequence of pins contacts as the card is pushed intothe socket This usually damages bus driver chips and they may become hot when the power is applied This is one of the most common failures of expansion cards m Terminated backplanes Some customers try to use Micro PC cards in backplanes that have resistor capacitor termination net works CMOS cards cannot be used with termination networks Generally the cards will function erratically or the bus drivers may fail dueto excessive output currents Excessive signal lead lengths Another source of failure that was identified years ago at Octagon was excessive lead lengths on digital inputs Long leads act as an antenna to pick up noise They can also ac as unterminated transmission lines When 5V is switch onto a line it creates a transient waveform Octagon has seen submicrosecond pulses of 8V or more The solution is to placea capacitor for example 0 1 UF across the switch contact This will also eliminate radio frequency and other high frequency pickup Avoiding damage to the heatsink CPU WARNING When handling any Octagon CPU card extreme care must be taken not to strike the heatsink against another object such as a table edge Also be careful not to drop the CPU card since this may cause damage to the heatsink CPU as well Epoxy adhesive bonds the heatsink to the CPU chip When the heatsink is struck the epoxy adhesive does not allow the heatsink
88. an easily add a 16 position keypad and either a 2 or 4 line display to the system The keypad and display boards connects to either the EZ I O port or the AUX I O port on the PC Microcontroller When the breakout board is used with the PC Microcontroller the AUX 1 0 port becomes unavailable to the keypad and display board H ence you must connect the keypad and display board to the PC Microcontroller s 21 0 port 7 6 6000 Series user s manual AUX Figure 7 4 The keypad and display board plugs into the EZ I O port on the PC Microcontroller using a CMA 26 cable Refer to the EZ I O chapter for interfacing to the EZ I O port The keypad and display board plugs into the AUX I O port on the PC Microcontroller using a CMA 34 cable Refer to the AUX 1 O chapter for interfacing to the AUX 1 0 port KAD component and dimensions diagram 1 650 1 400 0 250 4X156 NPTH K m 5 GND VF 6 4 5 97 ar J6 5 ooooooon oooon O 1 1 KO oooooooo 8 4 amp ome 5 EZVO 5 wi R Elo E 9 5 eme oooooooooooon z B LO Er Ao 0000000000000 9 lo UXTO el le w 9 oL 0000000000000000n 0000000
89. ata 6000 Series user s manual D 16 6000 Series user s manual 6050 technical data Appendix 6050 technical data Technical specifications CPU ALi M6117 386SX Embedded Microprocessor Bus clock 25 MHz 40 MHz BIOS AT compatible with industrial extensions DRAM 2 DRAM soldered on card Floppy drive Floppy drive support the LPT 1 parallel port or external adapter Hard drive Hard drive BI OS supported using external hard drive controller which allows extended IDE drives larger than 528 MB Solid state disk 0 Supports a 1024 K B flash Solid state disk 2 Supports a 128 KB SRAM ROM DOS DOS 6 22 compatible Serial I O COM1 and COM2 are 16C550 compatible Parallel port LPT1 is PC compatible with multifunctional capability E 1 6050 technical data 6000 Series user s manual Note Battery backup On board battery to backup real time clock and SRAM 5502 Watchdog timer Default timeout is 1 6 seconds typical software enabled and strobed Disabled on powerup and reset Controls are through built in enhanced INT 17h function calls Bus mastering Bus mastering is not supported Power requirements 5V 0 25V 1 0 Amp maximum Full 40 MHz operation 435mA typical Suspend 170mA typical Environmental specifications 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz Use of a heat sink may be required to achieve the
90. ble YES or pmi enable NO as the valid settings In abbreviated terms Y is also accepted for Y ES and N for NO In 60xx SETUP the following options are available Power management ENABLED DISABLED m Time updated after suspend ENABLED DISABLED In PMISETUP the following options are available pmi enable Y N Enables disables the power management m Time updated after suspend YES NO Enables or disables the time updated after suspend System timers The system timers define the delays associated with power state transi tions in the system In addition to full on only one managed system power mode is supported the SUSPEND mode It is possible to config ure the suspend delay timer so that when the timer expires the system will enter the SUSPEND mode There 1 also an individual timer for hard disk power management These timer settings are configured in the PMI file of the PMISETUP program as follows CPU power management 6000 Series user s manual suspend delay xx Sets delay time before system SUSPENDs xx 0 31 minutes hdd delay xx Sets delay time before hard drive suspends xx 0 31 minutes IDLE timer resets The IDLE timer monitors system activity to prevent the system from entering SUSPEND mode if bus activity indicates that the system is busy Access to these devices will also cause the system to RESUME from SUSPEND mode The bus activities that are monitored are config
91. both and then start the count by enabling the GATE Oncethe count has been reached an interrupt will be generated from the associ ated counter This mode requires control of the GATE and therefore cannot be used for the counter 2 pre scaler After the control word is written OUT goes HIGH A count value is written to the counter and the one shot is now armed Any positive transition of the GATE signal is latched and the next positive transition of the CLOCK signal enables the one shot The OUT signal will go LOW on the next negative CLOCK transition and remain LOW for N negative transitions of the CLOCK signal When the COUNT value N reaches a value 0 OUT will return HIGH The ONE SHOT is retriggerable and any positive transition on the GATE input will reload the ONE SHOT time which keeps OUT low for another N intervals of CLOCK transitions Mode 2 Rate generator The rate generator mode generates an output pulse at a periodic rate This mode is often used for counter 2 which is the pre scalar for counters 0 and 1 Sincethe GATE of counter 2 is always enabled counter 2 operates in this mode Once the count has been reached an output will be generated The OUT signal is set HIGH after the control word is written After the COUNT valueN is written the counter is loaded and begins to decre ment on CLOCK cycles When the COUNT value reaches 0 OUT will go LOW for one CLOCK period and then return HIGH TheN valueis automatically rel
92. card present will stop further serial console communication with the system after the system resets Once disabled you may re enable the serial console by running SETUP Torun SETUP choose one of the following methods B Removethe USESETUP jumper reboot and run SETUP B Install a video card monitor reboot and run SETUP This method disables the serial console m COMI Console Baud Rate 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 Power on memory test Enabled Disabled Y ou may want to disable the memory test to speed up the boot process Y ou may also press the space bar to cancel the memory test while in progress 3 3 Setup programs 6000 Series user s manual Note Boot Sequence Cr Only A Then C Serial Port A Enabled Disabled Serial Port B Enabled Disabled Paralle LPT Port Enabled Disabled Parallel Port Mode Bidirectional mode EPP mode ECP mode Floppy disk mode Standard Unidirectional mode Parallel Port Address 378h 278h 3BCh Standard mode is provided for compatibility only We recommend the use of bidirectional mode EPP and ECP modes are provided for equip ment that has the capability to operate at these modes for enhanced performance Number of floppy drives 2 x 0 I Onboard floppy controller 6010 only Enabled Disabled
93. count the OUTPUT will cycle every 1 100 of a second or 100Hz amp 64 is equal to 100 decimal If this valueis loaded into counter 0 and since the 100 Hz output of counter 2 is routed to counter 0 CLOCK the output generated from counter 0 will cycle once every second or 1 Hz The selected counter may then require the GATE to change states before counting begins How the OUTPUT appears Square Wave Strobe etc will depend on how the counter was configured Refer to the Control word definition section A programming example 6020 CTC CPP is induded on the 6020 utility disk which demonstrates the use of CTC counters 0 and 1 to generate periodic interrupts Control word definition The control word sets the counter ti mer to a specific mode of counting In addition to the various counting modes the setup in Table 15 2 should be considered 154 6000 Series user s manual Counter timer controller Table 15 2 Table 15 3 Control word setup D7 D6 D5 D4 D3 D2 D1 D0 SCI SCO RW1 RWO M2 M1 MO BCD Control word setup and descri pti on Setup Description D7 SC1 Select counter bit 1 D6 SCO Select counter bit 0 D5 RW1 Read write bit 1 D4 RWO Read write bit 0 03 M2 Mode bit 2 D2 M1 Mode bit 1 01 MO Mode bit 0 DO BCD Binary coded decimal enable bit Select counter bits Table 15 4 Note Bit SCO and bit SC1 select the correct counter for the control word Wh
94. cription on Octagon s service policy product repair returns governing law and limitations on warranty Warranty 6000 Series user s manual
95. ct a CMA 34 cable from the breakout board AU X O connector to the PC Microcontroller AU X 1 0 port 3 Connect a PCA 36 cable from J 5 on the breakout board to the printer 4 Power on the PC Microcontroller and make certain that the LPT 1 port is in standard or bidirectional mode The LPT 1 port mode is configured in SETUP Opto rack The Octagon MBP 16PC opto rack interfaces directly to the parallel printer port and can control high voltage high current G4 opto isolated modules Of the available 16 positions 8 can be either input or output 4 are dedicated as inputs and 4 are dedicated as outputs Refer tothe MPB 16PC opto modulerack product sheet for more information Installing an opto rack To install an MPB 16PC opto rack 1 Remove power from the PC Microcontroller 2 Connect a CMA 34 cable from the breakout board AU X 1 0 connector to the PC Microcontroller AU X 1 0 port 3 Connect a CMA 26 cable from J 5 on the breakout board to the MPB 16PC 4 Power on the PC Microcontroller and make certain that the L PT 1 port is in standard or bidirectional mode The LPT1 port mode is configured in SETUP Keyboard A PS 2 style keyboard can be used with the PC Microcontroller This interface is located at J 4 on the breakout board 7 3 AUX 6000 Series user s manual Installing a keyboard install a keyboard Remove power from the PC Microcontroller Connect a CMA 34 cable from the AUX
96. d code C assign ID 05 newlD 5 13 Serial ports 6000 Series user s manual Remote replies Dear 00 FF acknowledges my new ID to be 05 200XF F 05A9 message start character 00 intended listener is ID 00 host X command code X reply to assign ID FF FF myID 05 05 my new ID A9 checksum uchar 0 0 X F F 0 5 0xA9 message end character Example 3 The following is a description of how a remote of D 02 can notify the host of a state change 1 The application program sets internal state using INT 17h function Ofh The application program sets roll call reply status to 03 ask for Report Since a remote cannot initiate a communication it must wait until it is spoken to at this point Host sends Dear 02 are you there 202AA5 gt message start character 02 intended listener is 10 02 code A roll call A5 checksum uchar 0 2 A 0x02 0xA5 message end character Remote replies Dear 00 02 is here Ask for my internal state gt 00202031 gt message start character 00 intended listener is ID 00 host Z command code Z reply to roll call 02 02 myID 03 03 status Ask for a report of internal state 1F checksum uchar 0 0 7 0 2 0 3 1 message end character Host sends Dear 02 What is your internal state gt 02DA8 T message start charact
97. disk PC SmartLINK with manual Your PC Refer tothe Miscellaneous appendix if you are making your own serial cable or using other non Octagon components Toinstall the PC Microcontroller 1 Make sure power to the backplane is OFF 2 Insert the PC Microcontroller into a connector on the backplane see Figure 2 7 Take care to correctly position the card s edge with the connector of the backplane Figure 2 1 shows the relative positions of the PC Microcontroller card as it is installed into a backplane WARNING Incorrectly plugging the card into the backplane will destroy the card and void the warranty Figure2 7 Using a passivelSA backplane TREE Mounting bracket XT AT passive backplane 2 7 Quick start 6000 Series user s manual 3 Connect one end of a VT C 9F cable to the null modem adapter Connect the other end to COM1 on the PC Microcontroller Note You must use COM1 on the PC Microcontroller in order to establish a serial communications console I O link with your 4 f your PC has a 9 pin serial connector connect the null modem adapter to any serial port COM 1 through COM 4 on your PC If your PC hasa 25 pin serial connector attach a 9 25 pin adapter to your null modem adapter then insert the matching end of the 9 25 pin adapter into the serial port SeeFigure 2 3 Note Refer tothe PC SmartLINK manual for more information on using a desktop PC COM port oth
98. e CPU halts In the SUSPEND state event includ ing a timer tick will cause the CPU to resume from halt If the CPU determines that the only cause of resume was the I RQ event from the timer tick then the CPU halts again Otherwise the CPU resumes from the SU SPEND state The devices which are powered ON when the system RESU MEs are specified in CMOS loaded from the PMI file Devices which do not have associated access SMIs must be powered up In addition since the CPU was stopped the system ti me must be up dated If an APM driver is operating it has the responsibility of updat ing the time when notified to do so Otherwise the firmware will up date the DOS compatible system time if configured to do so For operat ing systems with DOS compatible system clocks this function should be disabled in CMOS Sincethe clock does not run in SUSPEND mode and the system is not restarted by IRQO to maintain the time of day the time must be reset when the system resumes The BIOS can read the actual time from the real time clock and restore the operating system s timer from that value Thetime update can be enabled or disabled using the SETUP program In SETUP the option initiating the SUSPEND RESUME with system activities is available CPU power management 6000 Series user s manual Initiating the SUSPEND RESUME option with system activities 1 Note Note In SETUP and in a PMI file enable power managemen
99. e of size 896K is installed in SSDO AMD 1MB flash Second drive of size 128K is installed in SSD2 128K SRAM RS 485 support BIOS extension vx xx Copyright c 1996 Octagon Systems Starting ROM DOS HIMEM v6 22 Revision x xx Copyright c 1989 1995 Datalight Inc VDISK v6 22 Revision x xx Copyright c 1989 1995 Datalight Inc Extended Memory Present VDISK v6 22 Revision x xx Copyright c 1989 1995 Datalight Inc Formatting 1024K XMS memory as drive E 60xx gt If you do not get the proper logon message m Check the PC SmartLINK serial parameters of your PC to make sure they are set correctly Parameters should be 9600 baud 8 data bits no parity and 1 stop bit m Make surea video is not installed in the card cage Make sure all jumpers are set to factory defaults If the system still does not respond refer to the Troubleshooting chapter Use the directory command to make sure your equipment and software are working properly Enter 60xx C N gt DIR A directory listing of ROM DOS files stored in the BIOS socket should appear Volume in drive C has no label Directory of C N AUTOEXEC BAT 43 09 12 96 2 03p COMMAND COM 26 321 04 17 95 6 22a CONFIG SYS 73 09 12 96 2 03p DOS DIR 02 24 97 10 57p UTILS DIR 02 24 97 0 57 CAMBASIC DIR 02 24 97
100. e statement Enter CONFIG EZIO amp 140 amp 0 amp FF amp 0 amp FF amp O amp FF Syntax The BASIC syntax is as follows CONFIG EZIO address dirA initA dirB initB dirc Parameters Parameters are defined as follows address specifies the base address of the Octagon E Z I O parallel 1 0 device in use m initA and initC specify the logic state of portA port B and port C respectively when this statement is executed The value range is to 255 and dirC are the directions of port A port B and port C respectively The value 0 of an individual bit specifies output and the value 1 specifies input Usually once the chip is configures with the CONFIG EZ IO statement thereis no reason to reconfigure this statement again 6 15 EZ 6000 Series user s manual Ports A B and C will now output all 1 s after issuing the following commands OUT 140H FFH port A OUT 141H FFH port B OUT 142H FFH port C or all O s after OUT 140H O port A OUT 141H O port B OUT 142H 0 port C Note Theoutputs of port B on model 6050 are inverted due to the ULN 2804 high current Darlington array EZ 1 0 input program examples To configure ports A and C as inputs and port B as outputs issue the following command OUT 143H 2 Direction M ode OUT 140H 0 OUT 141H FF OUT 142H 0 OUT 143H 3 Operation M ode T
101. eeDataPtr new unsigned int 10 Allocate storage asm mov mov mov mov les int 0f c02h bx 051 cx 10 dx Offffh di seeDataPtr 17h Inline assembly code for Borland C 3 1 Read starts at word 5 Read 10 words Write multiple words to the serial EEPROM Function Subfuncti on Purpose fch 03h To write multiple words to the on board serial EEPROM 17 3 Serial EEPROM 6000 Series user s manual Callingregisters fch AL 03h BX Word address zero based CX Word count DX ffffh 05 51 Source pointer Return registers Carry flag cleared if successful Carry flag set if error AL Error code Error Code Meaning ffh U nknown error Olh Function not implemented 02h Defective serial EEPROM 03h Illegal access Comments This function writes multiple words to the user area of the serial EEPROM Programming example Write 8 words starting at word 6 unsigned int far seeDataPtr new unsigned int 8 Allocate storage unsigned int far tmpPtr seeDataPtr for int i 0 i lt 8 i seeDataPtr i initialize data Inline assembly code for Borland C 3 1 asm push ds mov ax 0fc0O3h mov bx 06h Write starts at word 6 mov cx 8 Write 8 words mov dx 0ffffh lds si seeDataPtr int pop ds Return serial EEPROM size Function fch Subfunction 04h Purpose To obtain the s
102. elow are some of the failures which are common to all manufacturers of CMOS equipment However much of the information has been put in the context of the Micro Octagon has developed a reliable database of customer induced field failures The average MTBF of Micro PC cards exceeds 11 years yet there are failures Most failures have been identified as customer induced but there is a small percentage that cannot be identified As expected virtually all the failures occur when bringing up the first system On subsequent systems the failure rate drops dramatically Approximately 20 of the returned cards are problem free These cards typically have the wrong jumper settings or the customer has problems with the software This causes frustration for the cus tomer and incurs a testing charge from Octagon m Oftheremaining 8096 of the cards 9096 of these cards fail due to customer misuse and accident Customers often cannot pinpoint the cause of the misuse W Therefore 7296 of the returned cards are damaged through some type of misuse Of the remaining 896 Octagon is unable to deter mine the cause of the failure and repairs these cards at no charge if they are under warranty Notice to user PC 500 user s manual The most common failures on CPU cards are over voltage of the power supply static discharge and damage to the serial and parallel ports On expansion cards the most common failures are static d
103. emoving the USESETUP jumper from the S position at W1 you may force the setup to temporarily revert to the defaults shown in the following table which allows the user to reconfigure the setup The SETUP program defines the PC Microcontroller system param eters It is shipped with default configuration parameters stored in the serial EEPROM Changes are made by running the SETUP program The SETUP program is stored on the SSDO drive and on the PC Microcontroller utility disk 3 1 Setup programs 6000 Series user s manual Table3 1 6000 Series setup parameters and defaults SETUP parameters Description Default Serial consde for COM1 Spedfies that COM1 is to be Enabled used for consd e if video card is not present 1 console baud rate Spedfies communications rate 9600 between PC amp 60xx when no video card is in use Power on memory test Extensive memory testing Enabled performed on bootup Boot sequence Spedfies whether the floppy C Only drive will be ignored as a boot device Serial port A Spedfies COM1enable disable Enabled Serial port B Spedfies COM2 enable disable Enabled Parallel LPT port Spedfies LPT port Enabled enable di sable Parallel port mode Spedfi es mode to use with Bidirectional parallel port printer port Parallel port address Specifies LPT address 378h Number of floppy drives Spedfies number of floppy drives 0 attached Number of hard drives Spedfi es number of hard driv
104. en SCO and 5 1 select a specific counter the remaining bits of the control word apply tothat counter Select counter bits SCO and SC1 SC1 SCO Description 0 0 Select counter 0 0 1 Select counter 1 1 0 Select counter 2 1 1 Read back command For additional information on the read back command refer to the nte peripheral 82C54 data sheet or the NEC 71054 data sheet Read write bits During a control word write bit RW1 and RWO are used to determine the format for the data that is either read from or written to the counters Theinitial count must follow the count format specified by the RW bits Least significant byte only most significant byte only or least significant byte and then most significant byte are the formats that can be specified 15 5 Counter timer controller 6000 Series user s manual Table 15 5 Read write bits RW1 and RWO Note RW1 RWO Description 0 0 Counter latch command 0 1 Read and write least significant byte only 1 0 Read and write most significant byte only 1 1 Read and write least and then most signifi cant byte For additional information on the counter latch command refer tothe Intel peripheral 82C54 data sheet or the NEC 71054 data sheet Counter timer modes Table 15 6 Table 15 7 There are six different modes for the counter timers Counter ti mer modes M2 M1 MO Description Mode 0 Terminal count Mode 1 Hardware retriggerable
105. environ ment For instructions on downloading files using TRANSFER REMDISK REMSERV and PC SmartLINK seethe sections Transferring files between the PC Microcontroller and your PC and Downloading files from thePC Microcontroller in the Quick start chapter In addition the Softwareutilities chapter provides usage instructions for REMDISK REMSERV and TRANSFER Autoexecuting your application Note Note This section describes how to autoexecute your application Toautoexecute your application in SSDO use the SETSSD command to define your SSD as the boot device Since you need to define the order of SSDO as the first of the SSDs and before any IDE drives enter the following command 60xx C N gt SETSSD SSDO SSD2 before Reset the system SSDO is now drive C and your application should begin execution If the SETUP option Boot Sequence is set to A THEN C remove any floppy in drive A before resetting the system The SETSSD options are not used when U SESETUP S position at W1 is not jumpered 4 8 Save and run programs 6000 Series user s manual Overriding the autoexecution of your application 1 Remove the jumper from the S position at W1 USESETUP 2 Reset the system This will force the system to ignore all SETUP infor mation including the floppy hard drive and the SE TSSD information 3 Atthe prompt PICO FA first drive 0 SSD0 2 SSD2 other no drive enter O
106. eously Power on the PC Microcontroller and make certain that the LPT1 port is in standard or bidirectional mode The LPT1 port mode is configured in SETUP Refer to the Keypad and display board product sheet for the KAD VF display and the KAD LCD display interface pinouts at J 5 and J 3 spectively Keypad To interface a 4 x 4 matrix keypad to the PC Microcontroller use the keypad and display board The program DISPLAY EXE found on the PC Microcontroller utility disk provides an easy method to use the keypad Refer tothe file DISPLAY DOC on the utility disk for informa tion on initializing and using the keypad Installing a 4 x 4 keypad To install an alphanumeric display Remove power from the PC Microcontroller If you are using a breakout board with the PC Microcontroller connect a CMA 26 cable from the EZ I O port on the PC Microcontroller to the EZ I O port on the keypad and display board If you are not using a breakout board with the PC Microcontroller you may use either the EZ I O port or the AUX 1 0 port with the keypad and display board To usethe EZ I O port follow the instructions descri bed above To use the AUX I O port connect a CMA 34 cable from the AUX I O port on the PC Microcontroller to the AU X I O port on the keypad and display board 3 Supply 45V tothe keypad and display board Connect the keypad to the J 4 connector on the keypad and display board Power on the PC Microcontroller and make
107. er 02 intended listener is 10 02 D command code D Internal state query checksum uchar 0 2 D 0x02 0xA8 message end character 5 14 6000 Series user s manual Serial ports Remote replies Dear 00 02 internal state 47 gt 00W024784 T message start character 00 intended listener is ID 00 host W command code W reply to internal state query 47 47 lt my internal state 84 checksum uchar 0 0 W 0 2 4 7 0x84 02 02 myID message end character The application program interprets the message and then responds accordingly n this case state 47 would have been defined in the host application as a specific response from a Remote with a user defined meaning 6030 COM3 COM4 The 6030 PC Microcontroller has two additional serial ports COM3 uses IRQ12 at I O address 3E8H uses IRQ11 at 1 0 address 2E8H Both COM ports have 4 RS 232 signals available RxD TxD RTS and CTS DTR is pulled high Refer to the 6030 technical data appendix for pinout information 5 15 Serial ports 6000 Series user s manual 5 16 6000 Series user s manual EZ EZ Chapter 6 Note EZI O is available on the 6020 6040 and 6050 PC Microcontrollers Digital I O lines Several PC Microcontroller models feature the Octagon E Z 1 0 digital 1 0 chip Each EZ I O chip supplies 241 0 lines which can be ind
108. er port at I O address amp 378 This program returns inputs from the keypad in use 20 CONFIG KEYPADS amp 378 0 8 Keypad type 0 16 key port address amp 378 debounce 80ms 30 ON KEYPADS GOSUB getkey 40 idle 50 GOTO idle 100 getkey 110 A KEYPADS 0 Get key 120 POSITION 1 Get position of key 130 PRINT Key pressed is A Key position is POSITION 20 5 CAMBASIC 6000 Series user s manual 140 IF A 0 THEN ON KEYPAD GOSUB Disable key pad if the key pressed is 0 150 RETURN KEYPADS 20 6 6000 Series user s manual Software utilities Chapter 21 Software utilities Introduction The PC Microcontroller ROM DOS and utility disk comes with the utilities listed below Refer to the 6000 Series user s manual for a complete description of each of the software commands Support commands Support device drivers COM1CON EXE GETBIOS EXE GETIMG EXE I17HNDLR EXE 1 PGMBIOS EXE PGMIMG EXE PMISETUP EXE REMDISK EXE REMQUIT COM REMSERV EXE RESET COM SCONSOLE EXE SETSSD EXE SETUP COM TRANSFER EXE HIMEM SYS PICOFA SYS VDISK SYS Note Other utilities are included from ROM DOS and are not mentioned in this section Refer to your ROM DOS manual 21 1 Software utilities 6000 Series user s manual 21 2 6000 Series user s manual Troublesh
109. er event has occurred which should place the system in a reduced power mode The APM software polls the firmware for such events Once an event has occurred the software initiates the reduced power mode by acknowledging the event back to the firmware The firmware then initiates the reduced power mode The APM soft ware can inquire APM aware applications to ensure that the reduced power mode is acceptable Hardware controlled modes The IDLE timer is configured to reset by specific events which include the keyboard video hard disk line printer serial port floppy disk and selected IRQ or activities When these specific events do not occur the system enters the SUSPEND mode In this mode devices such as the hard disk floppy disk parallel port serial ports video super 1 0 and peripheral chip are powered down to conserve power In addition to powering down these specified devices the CPU then enters the halt state The hard disk parallel port video real time dock IN access DRQs memory access at E8000h EF FFFh and I O access at 3xxh are specified events that are configured to resume the system from the SUSPEND state Device power management The hard disk is power managed on an individual basis The firmware configures a hardware timer that is reset each time the device is ac cessed If there is no access to the hard disk the timer will eventually expire and the hard disk will then power down to
110. er than COM 1 Y ou are now ready to transfer files between your PC and the PC Micro controller Continue with the section Establishing communications with thePC Microcontroller in this chapter Establishing communications with the PC Microcontroller 1 Install PC SmartLINK or other communications software on your PC if you have not already done so Refer tothe PC SmartLINK manual for installation instructions 2 Copy the PC Microcontroller files from the supplied utility disk to a subdirectory on your PC hard drive MD C MPC XCOPY A S 3 Start PC SmartLINK You are now ready to establish communications between your PC and the PC Microcontroller 4 Power on the PC Microcontroller 5 A logon message similar to the one below will appear on your PC moni tor PhoenixBIOS TM A386 Version x xx Copyright C 1985 1992 Phoenix Technologies Ltd All Rights Reserved Octagon Systems Corp 40 MHz 60xx CPU Release vx xx mm dd yy Ali 386SX V8T processor detected operating at 40 MHz 640K Base Memory 1024K Extended INT 17h BIOS extension vx xx Copyright c 1995 97 Octagon Systems Corporation PICO Flash Array 2 8 6000 Series user s manual Quick start Copyright c 1996 Phoenix Technologies Ltd Resident Flash RFA OEM Layer Phoenix PICO Flash Array TM Copyright c 1996 Phoenix Technologies LTD Octagon Systems vx xx First driv
111. es 0 attached SETUP entry viahotkey Specifies lt backspace gt lt S gt Enabled hotkey enable disable Power management for Spec fies power management Enabled DOS enable disable Time update after suspend Spedfies to allow update of time Enabled after suspend mode Shadow video BIOS Spedfies video BIOS shadow Disabled enable disable Shadow C8000h CFFFFh Shadow enable disable Disabled Shadow D0000h D7F FFh Shadow enable di sable Disabled Shadow D8000h DFF FFh Shadow enable di sable Disabled 3 2 6000 Series user s manual Setup programs Running SETUP 1 Note Note Make sure you have established a serial communications console I O link between the PC Microcontroller and your PC Refer to the Quick start chapter for more information on establishing communications with your PC Microcontroller Enter 60xx C N gt SETUP You may also enter SE TUP after the memory test and before the sys tem has booted by pressing the backspace key followed by the S key The system will display the PC Microcontroller setup parameters and available options Select the option by pressing the space bar until the correct information appears then press ENTER Press lt ESC gt twice if you want to exit setup without saving your responses Options having an are default settings m Serial Console on COMI Enabled Disabled WARNING Disabling the serial console when there is no video
112. es connector or Thomas and Betts 608 3430 A wi remount male connector can be used to connect a VTC10 IBM cable 6000 Series user s manual 6010 technical data TableA 10 6010 1 J 3 and COM2 J 4 connector pinout Pin COM1 COM2 1 DCD DCD 2 DSR DSR 3 RxD RxD 4 RTS RTS 5 TxD TxD 6 CTS CTS 7 DTR DTR 8 RI RI 9 Gnd Gnd 10 5 Safe 5 VDC Safe adive low TableA 11 6010 power connector pinout J 5 Pin Function 1 45 VDC 2 Gnd TableA 12 6010 battery pinout J 6 Pin Function 1 Battery 2 Keyed 3 Gnd 4 Gnd 6010 technical data 6000 Series user s manual TableA 13 6010 hard drive connector pinout J 7 Pin Function Pin Function 1 HRST 23 HIOW 2 Gnd 24 Gnd 3 HD07 25 HI OR 4 HD08 26 Gnd 5 HD06 27 HDCHRDY 6 HD09 28 HDALE 7 HD05 29 NC 8 HD10 30 Gnd 9 HD04 31 IRQ14 10 HD11 32 HDCS16 11 HD03 33 HDA1 12 HD12 34 NC 13 HDO2 35 HDAO 14 HD13 36 HDA2 15 HD01 37 HDCSO 16 HD14 38 HDCS1 17 HDOO 39 HDACT 18 HD15 40 Gnd 19 Gnd 41 5V 20 Key 42 5V 21 NC 43 Gnd 22 Gnd 44 NC active low 6000 Series user s manual 6010 technical data TableA 14 6010 floppy drive connector pinout J 8 Pin Function Pin Function 1 Gnd 18 Dir 2 DenSel 19 Gnd 3 Key 20 Step 4 NC 21 Gnd 5 Gnd 22 WData 6 NC 23 Gnd 7 45V F DD Gnd 24 WGate 8 ndex 25 Gnd 9 45V FDD Gnd 26 Trk 10 Mtr 27
113. es in Port A are pulled to Gnd through 10K Ohm W2 1 3F All lines in Port C are pulled to 45V through 10K Ohm W2 3 5 All lines in Port C are pulled to Gnd through 10K Ohm default pins jumper ed Port B of model 6050 is dedicated as a high current output port and is not affected by the position of W2 6050 Organization of ports I O digital port has a total of 241 O lines connected to 1 The lines are configured intothree groups port A port B and port C each consisting of 8 bits Any of thelines at ports A or C can be configured individually as inputs or outputs Port B is dedicated as the high cur rent port and can only be configured as outputs Immediately after a reset each I O line on ports A and C becomes an input and port B drivers are off 6 6 6000 Series user s manual EZ Figure6 4 Location of EZ I O in the 6050 Note Base Base 1 UNL2804 high current outputs lt lt x IO Base 2 Base 3 Control 26 position connector Register EZ I O digital chip 6050 See Table 6 10 for the 6050 EZ 1 0 base address selection For the location of J 1 refer to the component diagram in the 6050 technical data appendix 6050 high current port Note The high current port is used as dedicated outputs to drive relays LEDs solenoids and similar devices The port includes eight I O lines at J 1 port B These outputs switch loads to ground
114. example Inline assembly code for Borland C 3 1 asm mov mov dx 0ffffh int 17h Watchdog timer reset and remote reset 6000 Series user s manual Strobe watchdog Function fdh Subfunction 02h Purpose To strobe the watchdog Callingregisters AH fdh AL 028 DX ffffh Return registers None Comments This function strobes the watchdog Once the watchdog is enabled it has to be strobed at a period of not less than 1 6 seconds or until the watchdog is disabled Otherwise a system reset will occur Programming example Inline assembly code for Borland C 3 1 asm mov ax 0fd02h mov dx 0ffffh int 17h The watchdog ti mer can also be strobed by reading address 20CH This may be faster than strobing the watchdog timer with an interrupts function call for example A INP 20Ch Disable watchdog Function fdh Subfunction 03h Purpose To disable the watchdog Calling registers AH fdh AL 03h DX ffffh Return registers None Comments This function disables the watchdog Once the watchdog is enabled it has to be strobed at a period of not less than 1 6 seconds or until the watchdog is disabled Otherwise a system reset will occur 16 2 6000 Series user s manual Watchdog timer reset and remote reset Programming example Inline assembly code for Borland C 3 1 asm mov ax 0fd03h mov
115. f card memory usually reserved for vi deo memory CO0000H C7F Off card memary usually reserved far video BIOS Shadow enable disable option in SETUP C8000H CF F FFH Off card memory Shadow enable disable option in SETUP DOOOOH DFF FFH Off card memory Shadow enable disable option in SETUP EO0000H E 7F FFH 32 KB BIOS extension area Shadow always enabled E8000H EF F FFH 32 KB SSD memory paging window Shadow always disabled in this region F OOOOH FFF 64 KB BIOS area Shadow always enabled 10000H F FF FFH 16 MB addressable extended memory B 5 6020 technical data 6000 Series user s manual Jumper settings TableB 5 6020 jumper settings W1 W2 J umper position Pins Description S W1 1 2 USESETUP x W1 3 4 BIOS extension enable N W1 5 6 Network mode pi W1 7 8 Turbo mode W2 7 8 IO RGE SEL A B W1 9 10 IO RGE SEL B B W2 9 10 BIOS device W2 1 2 Sets CTC CLK2 to 7 159 MHz W2 2 4 Sets CTC CLK2 to 1 843MHz W2 5 6 CTC Gate Contrd for gates 0 and 1 default pins jumper ed TableB 6 6020 EZ I base address selecti on Table B 7 IA IB J1 EZI O1 J7 EZI O2 CTC Gate address W2 7 8 W1 9 10 address address I O address amp bit nat not 320H 328H 330H OxA8 bit 4 jumpered jumpered jumpered 120H 128H 130H OxA8 bit 4 jumpered not jumpered 340H 348H 350H OxA8 bit 4 jumpered jumpered jum
116. failure mechanism has been induced There fore a failure will probably occur in the future For such cards Octagon highly recommends that these cards be replaced m Other over voltage symptoms n over voltage situations the programmable logic devices EPROMs and CPU chips usually fail in this order The failed device may be hot to the touch It is usually the case that only onelC will be overheated at a time m Power sequencing The major failure of I O chips is caused by the external application of input voltage while the Micro PC power is off If you apply 5V to the input of a TTL chip with the power off noth ing will happen Applying a 5V input to a CMOS card will causethe current to flow through the input and out the 5V power pin This current attempts to power up the card Most inputs are rated at 25 mA maximum When this is exceeded the chip may be damaged m Failure powerup Even when there is not enough current to destroy an input described above the chi p may be destroyed when the power to the is applied This is to the fact that the input current biases the so that it acts as a forward biased diode on powerup This type of failure 15 typical on serial interface chips 6000 Series user s manual Notice to user m Hot insertion Plugging cards into the card cage with the power will usually not cause a problem Octagon urges that you do not do this However the card may be d
117. following W Forunformatted or preformatted drives enter the following command PFORMAT Hn m wheren is the hard drive sequence number This number includes IDE drives and SSDs The optional parameter m specifies PICO FA is to write an master boot record This is required for unformatted drives that are not AMD Intel or Sharp flash memory W For preformatted drives enter the following command PFORMAT D m Making a drive bootable To make a drive bootable do one of the following m UseSYS EXE which calls ROM DOS SYS to make SSDO bootable ROM DOS SYS must be on the floppy boot disk m Boot from MS DOS operating system if you are using MS DOS Y ou must boot from a floppy or hard drive To add your application copy the files required for your application to the drive Note On occasion PICO FA does a garbage collection of the flash file sys tem You may see a performance degradation during this time Using PICO FA 6000 Series user s manual Making copies of SSDO s contents for other boards Note To copy an SSD for other PC Microcontroller boards you must make an image of the SSD by doing the following Enter GETIMG 500 filename Transfer filename to the new board Enter PGMIMG filename SSDO Flash memory should be the same size and type To program a new BIOS into SSDO issue the following command PGMBIOS filename SSDO To make your PICO FA drives before
118. ge buffer pointer On entry On exit AH 0 RS 485 function signature AL OBh RS 485 sub function DX Offffh ES BX incoming message buffer pointer AL status 0 gt Not gt error 5 9 Serial ports 6000 Series user s manual Function Oc Set outgoing message buffer pointer On entry On exit AH 0FAh RS 485 function signature AL 0Ch RS 485 sub function DX Offffh ES BX outgoing message buffer pointer AL status 0 gt gt error Function Od Set roll call response On entry On exit AH 0FAh RS 485 function signature AL 0Dh RS 485 sub function DX Offffh roll call response code See roll call reply message format AL status 0 gt Not gt error Function 0e Set state wish response On entry On exit AH 0FAh RS 485 function signature AL 0Eh RS 485 sub function DX Offffh BX state wish response code See state wish reply message format AL status 0 gt ok Not gt error Function 0f Set internal state response On entry On exit AH 0FAh RS 485 function signature AL 0Fh RS 485 sub function DX Offffh BX internal state response code See internal state reply message format AL status 0 gt 0k Not gt error 5 10 6000 Series user s manual Serial ports Octagon s command set This section provides definitions for the following Octagon RS 485
119. ge is adjusted at the factory and nor mally will not require adjustment If necessary this reference adjust ment can be readjusted to the factory setting or can also be offset to measure up to a 5 over range input If adjustment is required pro ceed with the following Attach a digital voltmeter between 1 and TP2 connecting the positive lead to TP 1 For standard factory adjustment adjust potentiometer R1 until a reading of 4 096V is attained For over range input adjustment adjust potentiometer R1 to the follow ing table Over rangeinput adjustment Over range Voltmeter reading 196 4 137V 2 4 178V 3 4 219V 4 4 260 590 4 301V Figure8 2 Analog input reference voltage potentiometer R1 analoginput reference voltage potentiometer RESET 2 1 ELULE p E oo ooo 8 7 Analog 6000 Series user s manual 8 8 6000 Series user s manual SSDs DRAM and battery backup Chapter 9 SSDs DRAM and battery backup Before you can save and boot your application from the PC Microcontrol ler this chapter describes how to configure the system for your particu lar application requirements The following topics are discussed m SSD0 SSD2 DRAM Real time clock Battery backup for SSD2 and real time calendar clock 55
120. gisters AH AL 00h BL Channel 2 timebase 0 gt longest possible 1 gt 1 100 100 Hz Not supported for 7 159 MHz clock rate 2 gt 1 1000 1K Hz 3 gt 1 10 000 10 KHz BH Channel 2 input clock frequency 0 21 843 MHz W2 2 4 jumpered 1 27 159 MHz W2 1 2 jumpered CL Channel 0 mode sel ect 0 gt square wave generator 1 gt rate generator CH Channel 1 mode select 0 gt square wave generator 1 gt rate generator SI Channel 0 count cOcnt channel 0 period timebase cOcount DI Channel 1 count c1cnt channel 1 period timebase clcount 15 9 Counter timer controller 6000 Series user s manual Return registers Comments Carry flag cleared if successful Carry flag set if error AL Error code This function shall be used to initialize CTC Programming example Inline assembly code for Borland C 3 1 To configure channel 0 to generate IRQ 12 interrupt every 1s To configure channel 1 to generate IRQ 11 interrupt every 10s asm mov ax 0ee00h bl 01h timebase 1 100 mov bh 00h 1 8432 MHz input clock frequency mov cl 00h channel 0 used as square wave generator mov ch 01h channel 1 used as rate generator mov Si 100 channel 0 period 1 100 100 1s mov di 1000 channel 1 period 1 100 1000 10s mov int 17h 8 Error code definition Error code ffh 01h 02h 0
121. hdog timer Default time out is 1 6 seconds typical software enabled and strobed Disabled on powerup and reset Controls are through built in enhanced INT17h function calls Bus mastering Bus mastering is not supported Power requirements 5V 0 25V 1 0 Amp maximum Full 40MHz operation 780mA operation Suspend 380mA typical Analog inputs Channels 8 single ended Resolution 12 bits Input voltage range 10V 47 5V to 10V or Oto 5V Input impedance 10M Ohms Input overvoltage protection 16 5V Throughput 100K samples per second Analog outputs Channels 2 independent Resolution 12 bits Output voltage range 5V Oto 10V or 0 to 5V Output current 5mA max Environmental specifications 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz Use of a heat sink may be required to achieve the high end of the tem perature range 55 to 90 C nonoperating RH 5 to 95 noncondensing Size 4 5 in 4 9 in D 2 6000 Series user s manual 6040 technical data Mating connectors J 1 EZ I O port 26 pin shrouded header Connector AMP 7746288 6 Strain relief AMP 499252 3 J 2 AUX I O port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 J 4 serial ports 10 pin shrouded header Receptacle AMP 46288 1 Strain relief AMP 499252 5 J 6 battery 4 pin in line connector Housing DuPont BERG 746288 1 Crimp to
122. he AUX I O connector is a 3M 3414 series connector or Thomas and Betts 608 3430 A wiremount male connector can be used to connect a VTC10 IBM cable AT battery The PC Microcontroller is shipped with an on board battery for backing the real time dock and the SRAM SSD2 There are three options for battery backup of the real time dock and SRAM 5502 for the PC Microcontrollers The PC Microcontrollers are shipped with an on board battery An external AT battery is added to the J 6 connector on the PC Microcontroller If an external AT battery is used then the on board battery can remain on board or be removed An AT style battery is added to the break out board BOB The on board battery can remain on board or be removed Installing an AT battery on the breakout board A 3 6V AT battery Octagon P N 3186 can be installed on the breakout board to provide backup for the real time clock and the SRAM SSD2 Toinstall the AT battery Remove power from the PC Microcontroller Position the AT battery on the breakout board so that the 4 position battery connector faces the same direction as J 3 on the breakout board Securethe battery with a tie wrap using the holes provided 3 Connect the 4 position battery connector onto J 3 4 Connect a CMA 34 cable between the breakout board AU X 1 0 connec tor and the PC Microcontroller AU X 1 port Power on the PC Microcontroller Keypad and display board KAD Note Y ou c
123. hich allows extended I DE drives larger than 528 MB The 6010 has on board hard drive interface at J 7 WARNING Failure to properly orient the hard drive cable may damage the 6010 hard drive and cable 97 9 00000000000000000 00000000000000000 00000000000000000 00000000000000000 RESET 0000000000000000000000 2 J7 Pin 1 J7 hard disk drive port 6010 Solid state disk 0 Supports a 1024 K B flash Solid state disk 2 Supports a 128 KB SRAM ROM DOS ROM DOS 6 22 compatible Serial I O COM1 and COM2 are 16C550 compatible Parallel port LPT1 16 PC compatible with multifunctional capability Battery backup On board battery to backup real time clock and SRAM SSD2 Watchdog timer Default time out is 1 6 seconds typical software enabled and strobed Disabled on powerup and reset Controls are through built in enhanced INT17h function calls A 2 6000 Series user s manual 6010 technical data Note Bus mastering Bus mastering is not supported Power requirements 5V 0 25V 1 0 Amp maximum Full 40MHz operation 480 typical Suspend 167mA typical Environmental specifications 40 to 85 C when operating at 25 MHz 0 to 60 C when operating at 40 MHz Use of a heat sink is required to achievethe high end of the temperature range 55 to 90 C nonoperating RH 596to 9596 noncondensing
124. high end of the tem perature range 55 to 90 C nonoperating RH 596to 9596 noncondensing Size 4 5 in 4 9 in Mating connectors J1EZI O port 26 pin shrouded header Connector AMP 37 46288 6 Strain relief AMP 499252 3 J 2 AUX I O port 34 pin shrouded header Receptacle AMP 746288 8 Strain relief AMP 499252 6 J 3andJ 4 serial ports 10 pin shrouded header Receptacle AMP 746288 1 Strain relief AMP 499252 5 J 6 battery 4 pin in line connector Housing DuPont BERG 746288 1 Crimp towire pins DuPont BERG 499252 5 E 2 6000 Series user s manual 6050 technical data Component diagram FigureE 1 6050 component diagram EZ 26 pin AUX I O 34 pin COM1 10 pin OOOOOOOOOOOOOOOOO L L2 Li ez m m LE I IN III 2 ie J x 0IIIIIIII IIU am cnm M nurul 381 Seso mi mom mill RN13 min p 1 III I III 5 I U21 lt m 9 numm or m 25 n rcd ni 1 159 5 a mi R4 R2 1 011 A IIIIIzUII0IIAIII IIIIIIIIIUIIIII 4 o mui III G I YIIOG I IIA IIIIIIII IIIIIIIIIIIIIIII
125. ial EEPROM Calling registers AH fch Return registers Comments AL Olh BX Word address zero based CX Data word to write DX ffffh Carry flag cleared if successful Carry flag set if error AL Error code Error Code Meaning ffh U nknown error 01h Function not implemented 02h Defective serial EEPROM 03h Illegal access EEPROM Programming example Write 0x1234 to word 3 This function writes a word to the user area of the serial unsigned int seeData 0x1234 Inline assembly code for Borland C 3 1 asm mov mov bx 03h Write word 3 mov cx seeData Get write data from c environment mov dx 0ffffh int 17h 17 2 6000 Series user s manual Serial EEPROM Read multiple words from the serial EEPROM Function Subfunction Purpose Calling registers Return registers Comments To read multiple words from the on board serial fch 02h EEPROM AH fch AL 02h BX Word address zero based CX Word count DX ffffh ES DI Destination pointer Carry flag cleared if successful AX Word read Carry flag set if error AL Error code Error Code ffh olh 02h 03h Meaning Unknown error Function not implemented Defective serial EEPROM I legal access This function reads multiple words from the user area of the serial EEPROM Programming example Read 10 words starting at word 5 unsigned int far s
126. igure6 2 Location of EZ I O in the 6020 Base A or Base 1 or Base 2 C or Ji 47 26 position connectors 3 Control Register EZI O digital I O chip 6020 See Table 6 9 for the 6020 EZ I O base address selection Model 6040 The 24 I O lines are divided into three groups of 8 with 10K resistors that can be connected to ground or 45V The 241 0 lines beindi vidually programmed as 5V input or 5V output Each line can sink or source 15 mA 6040 Pulling the I O lines high or low J umper block W2 pulls ports A and C high or low Likewise jumper block W4 pulls port B high or low The default pulls all of the I O lines high Note For the location of W2 and W4 refer to the component diagram in the 6040 technical data appendix 6 4 6000 Series user s manual EZ Table6 5 Pull up pull down EZ I O 6040 Configuration Description W2 2 AF All lines in Port A are pulled to 45V through 10K Ohm W2 4 6 All lines in Port A are pulled to Gnd through 10K Ohm W4 1 2 All lines in Port B are pulled to 45V through 10K Ohm W41 3 All lines in Port B are pulled to Gnd through 10K Ohm W2 1 3 All lines in Port C are pulled to 45V through 10K Ohm W2 3 5 All lines in Port C are pulled to Gnd through 10K Ohm default pins jumper ed 6040 Organization of ports The EZ I O digital port has a total of 241 O lines connected to J 1 The lines are configured intothree g
127. ile on the boot drive The boot drive is based upon the drive order set by the SETSSD com mand and by 5 boot sequence option If the boot sequence is set to A THEN C the system will look for a floppy disk in drive A If a diskette is not installed or a floppy is not defined the boot drive will be the first drive specified in the SETSSD command If the boot se quence is set to C ONLY the check for a disk is bypassed The SETSSD parameters may also be overwritten by removing the USESETUP jumper from the S position at W1 and resetting the system If the parameters specified at the PICO FA first second drive prompt are different from the previous SETSSD command and you answered to the Save prompt the SETSSD output will not be accurate Therefore we recommend that you answer Y es tothe save option to prevent confusion After you run SETSSD and the drive order has changed the new parameters will take effect after a reset The drive order affects the number entered at the PFORMAT Hn command 3 7 Setup programs 6000 Series user s manual PMISETUP PMISETUP allows the user to customize the power management fea tures of the PC Microcontroller Refer to the CPU power management chapter See alsothe Software utilities chapter for details 3 8 6000 Series user s manual Save and run programs Chapter4 Save and run programs Save and run your program
128. imimimimimimiumimimimimjimimimimj AUXVO nuu 2999 2000 Opto Isolated Remote Reset Opto Isolated IRQ9 MPB 16PC Opto Rack GGG eee g Beossoeoceoeeosed Opto isolated inputs Pin 2 of P1 on the breakout board is the opto isolated return pin com mon to both opto isolated A and B inputs Octagon recommends that these input sources have a common ground point established that is tied to pin 2 SeeFigure 7 3 for recommended timing usage Figure 7 3 Recommended timing usage 500 minimum OV Refer to the Breakout board product sheet for more information 7 2 6000 Series user s manual AUX Parallel printer port Theparallel printer interface supports standard unidirectional bidi rectional enhanced parallel port E PP extended capabilities port ECP and floppy drive modes The default I O address is 378H using interrupt IRQ5 A number of devices are supported including a PC compatible printer an opto rack with opto isolated digital O modules a multiline alphanumeric display a matrix keypad and a floppy drive This interface is located at J 5 on the breakout board See the Breakout board product sheet for the printer interface pinout at J 5 Installing a printer Toinstall a printer 1 Remove power from the PC Microcontroller 2 Conne
129. in Description Signal Pin Description Signal B1 Gnd 17 DACK 1 O B2 RESET O B18 DRQ1 B3 5V l B19 DACK 0 O B4 IRQ9 l B20 CLOCK O B5 NC Not used B21 IRQ7 DRQ2 l B22 IRQ6 7 12V Not used B23 IRQ5 I mapped 1018014 B8 Reserved Not used B24 IRQ4 B9 12V Not used B25 IRQ3 mapped 10 Analog Not used B26 DACK 2 B11 MEMW O B27 T C B12 MEMR O B28 ALE O B13 IOW O B29 Aux 45V Not used B14 OR O B30 OSC O B15 DACK 3 O B31 Gnd l B16 DRQ3 l active low C 10 6000 Series user s manual 6040 technical data AppendixD 6040 technical data Technical specifications CPU ALi M6117 386SX Embedded Microprocessor Bus clock 25 MHz 40 MHz BIOS AT compatible with industrial extensions DRAM 2 DRAM soldered on card Floppy drive Floppy drive support the LPT 1 parallel port or external adapter Hard drive Hard drive BI OS supported using external hard drive controller which allows extended IDE drives larger than 528 MB Solid state disk 0 Supports a 1024 K B flash Solid state disk 2 Supports a 128 KB SRAM ROM DOS DOS 6 22 compatible Serial I O COM1 and COM2 are 16C550 compatible Parallel port LPT1 is PC compatible with multifunctional capability D 1 6040 technical data 6000 Series user s manual Note Battery backup On board battery to backup real time clock and SRAM 5502 Watc
130. ischarge over voltage of inputs over current of outputs and misuse of the CMOS circuitry with regards to power supply sequencing In the case of the video cards the most common failure is to miswire the card to the flat panel display Miswiring can damage both the card and an expensive display m Multiple component failures The chance of a random compo nent failureis very rare since the average MTBF of an Octagon card is greater than 11 years In a 7 year study Octagon has never found a single case where multiple failures were not caused by misuse or accident It is very probable that multiple component failures indicate that they were user induced m Testing dead cards For a card that is completely nonfunc tional there is a simple test to determine accidental over voltage reverse voltage or other forced current situations Unplug the card from the bus and remove all cables Using an ordinary digital ohmmeter on the 2 000 ohm scale measure the resistance between power and ground Record this number Reverse the ohmmeter leads and measure the resistance again If the ratio of the resis tances is 2 1 or greater fault conditions most likely have occurred A common cause is miswiring the power supply improper power causes catastrophic failure f a card has had reverse polarity or high voltage applied replacing a failed compo nent is not an adequate fix Other components probably have been partially damaged or a
131. ith ROM DOS or MS DOS 2 13 Quick start 6000 Series user s manual Figure 2 9 PC Microcontroller with no video card and one serial cable Hardware and software requirements W Desktop PC running CN DOS REMDISK connected by a VTC 9F cable and a null modem adapter to COM 1 of the PC Microcontroller m Microcontroller running DOS REMSERV out of COM1 Connect the equipment and load appropriate software on each system as per the following diagram Downloading files to the PC Microcontroller with no video card using REMDISK REMSERV REMDISK EXE PC Microcontroller REMSERV EXE VTC 9F Desktop PC gt Q OOOOOOoOoOoOoOoOoOo0o00 ooog OOOOOOOOoOoOoOoOoOoOoOo EIE modem OUDOUBOUOUOUOUOGGUOUOA adapter 2 desktop PC start PC SmartLINK from the MPCY 60 DOS directory and power on the PC Microcontroller Execute REMSERV EXE on the PC Microcontroller Read write SSD flash drive C is the shared drive and 1 is the default port Enter 60xx C NDOS gt MREMSERV C Thefollowing message is displayed from the PC Microcontroller REMSERV v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Using COMI at 115K baud Accessing Drive Time out is 9 seconds Press Esc to Exit There may be a delay before exit occurs 2
132. ive and D is the read write SSD flash memory on the PC Microcontroller Files are easily copied between the drives When finished on the PC Microcontroller execute 60xx C N gt REMDISK U This unloads REMDISK from the PC Microcontroller On the desktop PC press lt ESC gt to exit REMSERV 6000 Series user s manual IRQ routing and opto IRQs Chapter 12 IRQ routing and opto IRQs Interrupt routing Table 12 1 The PC Microcontroller provides routing of several interrupts that originate from the 8 bit ISA bus to use additional AT interrupts This interrupt routing provides flexibility to the interrupt structure allowing the lower ordered XT bus interrupts to be connected to the unused higher ordered AT interrupts The 8 bit bus interrupts that are routed are B BusIRQ3toIRQ10O m BusIRQ4toIRQ11 m BusIRQ5toIRQ14 The dedicated on card interrupts are m IRQ3 COM2 B IRQ4 COM1 A remote reset m OPTO B IRQ9 6000 Series interrupt map Interrupt Description IRQ0 System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 COM2 serial port IRQ4 COM 1 serial port IRQ5 LPT1 IRQ6 Floppy disk controller avail able and connected to BIRQ6 or FDC IRQ7 Available and connected to BIRQ7 IRQ8 RTC alarm IRQ9 U ser confi gurabl e connected to I RQ1O Avail able and connected to BIRQ3 IRQ11 BIRQ4 on 6010 6040 6050 CTC on 6020 COM4 on 6030 IRQ12 PC 104 cmnector on 6010 CTC o
133. ividually programmed as 5V input or 5V output Each line can sink or source 15 mA EZ I O lines can be used to sense switch closures turn on lamps and LEDs and interface with other devices that have T TL input or output such as printers and scales The EZ I O port can drive the Octagon MPB series opto isolation module racks directly controlling AC and DC loads to 240V at CAMBASIC has several commands to support the EZ I O port when working on bit BCD byte or word bases Figure 6 1 shows typical EZ I O configurations Figure6 1 Typical EZ 1 O configurations EZ I O port Beossoececeensed 2 Microcontroller 26 Opis Rack ribbon cable EZ port PG J1 J2 Microcontroller CMA 26 STB 26 ribbon cable CMA 26 EZ I O port ribbon cable PC Microcontroller 6 1 EZ 6000 Series user s manual WARNING Apply power to the PC Microcontroller before applying an input voltage to the digital I O lines This prevents excessive currents from flowing and damaging input devices The following chart specifies PC Microcontroller cards with EZ I O capability Table6 1 PC Microcontrollers with EZ I O PC Microcontroller model 6010 6020 6030 6040 6050 Number of EZ I O chips none 2 none 1 1 EZ I O digital lines 48 24 24 High current drivers 8 EZI O is located at the
134. ize of the on board serial EEPROM Callingregisters fch AL 04h DX ffffh Return registers Carry flag cleared if successful AX Size of the serial EEPROM in words BX Size available to user in words 174 6000 Series user s manual Serial EEPROM Carry flag set if error AL Error code Error Code Meaning ffh Unknown error 01h Function not implemented 02h Defective serial EEPROM 03h Illegal access Comments This function returns the size in words of the serial EEPROM Sincethe user cannot access all of the serial EEPROM this function determines how much space is available to the user This avoids the user from access ing unavailable address Programming example int seeUserSize Inline assembly code for Borland 3 1 asm mov ax 0fc04h mov dx O0ffffh int 17h mov seeUserSize bx 17 5 Serial EEPROM 6000 Series user s manual 17 6 6000 Series user s manual CPU power management 18 CPU power management Description The power management for the PC Microcontrollers in the 6000 Series only functions in DOS The power demands of a system can severely limit an application due to thermal constraints or the raw power usage in a battery operated application To maintain speed and efficiency a software controll ed power management system must be tailored to the application Even if your application is operating within
135. lements in an array Returns a string from the RS 485 network Lists without a line number Lists to the line printer without a line number Specifies condition for branching by the state of the software counters Specifies location for branching when errors 20 4 6000 Series user s manual CAMBASIC ON INP Specifies condition for branching by the state of an I O address ON KEYPAD Specifies location for branching when a key is pressed at the keypad ON TICK Specifies condition for branching by the state of the tick timer POLY Returns value from a power series in an array PRINT Writes a string of characters QUIT Exits CAMBASIC to DOS RMS Returns Root M ean Square value of an array SUM Sums elements of array UNNEW U ndoes the NEW command if possible VARSEG Returns segment of variable Easy to use programming examples CAMBASIC comes with a number of programming examples Below are programming examples present in CAM BASIC Example 1 Thefollowing exemplifies the program to write display information to Octagon DP Series and LCD Series display 10 CONFIG PIO amp 100 0 0 0 0 0 Configure an 8255 at amp 100 to be output ports 20 CONFIG DISPLAY amp 100 0 0 Use 2x20 fluorescent display with a hidden cursor at I O address amp 100 30 CLEAR DISPLAY 40 DISPLAY 2 0 OCTAGON SYSTEMS 50 DISPLAY 2 1 CORPORATION Example 2 In the following example a 16 key keypad is connected to the print
136. ll outputs init data all 0 s mov bx 55ffh port B all outputs init data 55h mov cx 0000h port C all inputs mov dx 0ffffh int 17h Write EZ I O 1 Function efh Subfunction 01h Purpose To write a value of an EZ I O port Callingregisters AH efh AL Olh DI Port A mask and data XXXXXXXxB XXXXXXXX XXXXXXXXB BX Port B mask and data XXXXXXXX XXXXXXXXB XXXXXXXX XXXXXXXXB CX Port C mask and data XXXXXXXX XXXXXXXXB XXXXXXXX Mask for port A 1 gt bit to be changed Data for port A Mask for port B 1 gt bit to be changed Data for port B Mask for port C 1 gt bit to be changed 6 17 EZ 6000 Series user s manual Return registers Comments Data for port C DX ffffh Carry flag cleared if successful Carry flag set if error AL Error code This function is used to write to the first EZ I O i e the EZ I O that has the lower I O address when two EZ I O chips are present on a board Programming example Inline assembly code for Borland C 3 1 asm mov 1 mov di 00ffh port no change mov bx 8000h port B bit 7 20 other bits unchanged mov cx 0202h port C bit 1 1 other bits unchanged mov dx 0ffffh int 17h Read EZ I O 1 Function Subfunction Purpose Calling registers Return registers Comments efh 02h To read from an EZ I O por
137. m o m HH 5 unn Z miii a IIIIIIIIIIIIMIIAII 8 III CR6 mi nmn HHH mx 3 III I III IIIIIIIIIIIQIIIIII IIII IIIOI yum E z ninm nnn ji z o yen 40 C to 85 C mmn J mu H nnn nn 1 1 umm mmm numm U7 nn nuni 21 i Jw 1 nun Meann gn P Pw OIIIIIIIIIII IIIIAIII IIOIWIIIIIII A31 6030 technical data 6000 Series user s manual Maps TableC 1 6030 DMA map Channel Description Channel 0 Reserved far bus memory refresh Channel 1 Available reserved for ECP parallel port Channel 2 Floppy disk drive Channel 3 Available Channel 4 Slave Channel 5 Unavailable no connecti an provided Channel 6 Unavailable no connecti an provided Channel 7 Unavailable no connecti an provided TableC 2 60301 0 map Hex range Function 000H 0A 7H System I O functions OA8H OAFH General purpose status registers OBOH OF FH System I O functions 100H 207H Off card I O Space 208H 20BH System control register 0 read write access no SEEP CLK 20CH 20FH System control register 1 read write access watchdog OR strobe no SEEP CLK 210H 213H System control register 0 RO SEEP CLK 214 217 System contrd register 1 watchdog OR strobe serial EEP
138. message Video 6000 Series user s manual Failed to receive lt drive gt filename ext Deleting lt drive gt filename ext Also you may speed up thetransfer using the Bnnnn switch to increase the baud rate for example B57600 Using REMDISK REMSERV 1 2 Note Connect the equipment as shown in Figure 11 1 On the PC Microcontroller system execute REMDISK E XE by entering 60xx C N gt REMDISK The following message is displayed on the PC Microcontroller monitor Remote Disk v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Installed as Drive F COM1 B115 T10 REMDISK assigns the remote drive as the last drive in the system In this case drive F was assigned Execute REMSERV EXE on the desktop PC C gt REMSERV C The following message is displayed on the PC REMSERV v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Using 1 at 115 baud Accessing Drive C Time out is 9 seconds Press Esc to Exit There may be a delay before exit occurs Files aretransferred to the PC Microcontroller read write drives by using the DOS COPY or XCOPY commands From the PC Microcontrol ler system enter 60xx C gt COPY F MPC 60xx DEMO EXE D 60xx C N gt DIR D 60xx C N gt D DEMO EXE The DEMO program displays a message on the PC Microcontroller monitor In this case drive is the remote PC disk dr
139. n at 45 CHAMFER 2 PLCS 0 038 BEVEL CARD EDGE 2 PLCS 015 in x 45 0 038 mm x 45 Connect the ground and 5V wires to the terminal block of the PC Micro controller or P2 of the stacking kit Connect one end of the VTC 9F cable to the null modem adapter Con nect the other end to COM1 on the PC Microcontroller You must use COM 1 on the PC Microcontroller in order to establish a serial communications console I O link with your If your PC has a 9 pin serial connector connect the null modem adapter to any serial port COM 1 through on your PC If your PC has a 25 pin serial connector attach a 9 25 pin adapter to your null modem adapter then insert the matching end of the 9 25 pin adapter into the serial port SeeFigure 2 3 Refer to the PC SmartLINK manual for more information on using a desktop COM port other than COM 1 Y ou are now ready to transfer files between your PC and the PC Micro controller Continue with the section Establishing communications with thePC Microcontroller in this chapter 2 6 6000 Series user s manual Quick start Using the PC Microcontroller in a passive ISA backplane To plugthe PC Microcontroller into a passive ISA backplane you will need the following equipment or equivalent m PCMicrocontroller Unterminated backplane Mounting bracket optional Power module VTC 9F cable Null modem adapter PC Microcontroller ROM DOS and utility
140. n 6020 COM3 on 6030 A D m 6040 unavailable on 6050 IRQ13 Floating point unit IRQ14 Available and connected to BIRQ5 HDC BI RQ5 on 6010 IRQ15 Power management interrupt IRQ routing and opto IRQs 6000 Series user s manual Optically isolated inputs The PC Microcontroller provides two remote isolated inputs The first input A COM on the AUX 1 0 connector resets the CPU when a voltage input between 4 0V to 6 0 VDC is applied The second input COM on the AUX I O connector activates an 1809 Pin 2 of P1 the breakout board is the opto isolated return pin com mon to both optically isolated A and B inputs Octagon recommends that these input sources have a common ground point established that is tied to pin 2 P1 See the following figure for recommended timing usage The optical isolators provide 300 VDC of isolation between the optically isolated inputs and the card Figure 12 1 Recommended timing usage 5004 minimum OV Refer to the Breakout board product sheet for more information 12 2 6000 Series user s manual LED signaling and beep codes Chapter 13 LED signaling and codes Description The PC Microcontroller has the bicolor LED that is used by the BIOS to signal system status and CPU speed Immediately after the PC Microcontroller powers on both LEDs are lit a
141. nd boot option jumper pinout W2 Pin Function 1 45V AUX 2 45V AUX 3 Port C 4 Port A 5 Gnd 6 7 8 9 Gnd Gnd IORGESELA Gnd 10 BI OSDEV B E 7 6050 technical data 6000 Series user s manual TableE 10 6050 EZ I connector J 1 Pin Function Pin Function Pin Function Port A Port B Port C 19 bit 0 10 bit O 13 bit O 21 bit 1 8 bit 1 16 bit 1 23 bit 2 4 bit 2 15 bit 2 25 bit 3 6 bit 3 17 bit 3 24 bit 4 1 bit 4 14 bit 4 22 bit 5 3 bit 5 11 bit 5 20 bit 6 5 bit 6 12 bit 6 18 bit 7 7 bit 7 9 bit 7 2 45 VDC Safe 26 Gnd Port B can only be configured as output on the 6050 The output level is inverted frominput Thisis duetothe inverted output high current driver used on the 6050 Consider these factors when using and programming this port E 8 6000 Series user s manual 6050 technical data TableE 11 6050 AUX I O connector pinout 2 Pin Function DB 9 IDC breakout cable 1 Opto common 1 2 OPT OB 2 3 Gnd 3 4 OPT OA 4 5 K eyboard data 5 6 K eyboard clock 6 7 Battery 7 8 Speaker 8 9 5 Vdc safe 9 Pin Function DB 25 IDC breakout cable 10 STB 1 11 AF D 14 12 DATAO 2 13 ERR 15 14 DATA1 3 15 INIT 16 16 DATA2 4 17 SLIN 17 18 DATA3 5 19 Gnd 18 20 DATAA 6 21 Gnd 19 22 DATA5 7 23 Gnd 20 24 DATA6 8 25 Gnd 21 26 DATA7 9 27 Gnd 22 28 ACK 10 29 Gnd 23 30 BUSY 11 31 Gnd 24 32 PE 12 33 Gnd 25 34 SLCT 13 active low
142. nd display an orange color U pon completion of the boot sequence the yellow LED turns off and the green LED remains on If a failure occurs during the boot sequence visual beep codes are dis played tothe LEDs The visual beep codes are defined in the following table The bicolor LED alsoindicates system suspend status Upon entering suspension the green LED turns off and the yellow LED begins to blink On a resume condition the yellow LED turns off and the green LED turns on Table13 1 Phoenix BIOS beep codes Diagnostic port output Beep codes Description of test or failure olh 80286 register test in progress 02h 1 1 3 CMOS writeread test in progress or failure 03h 1 1 4 BI OS ROM checksum in progress or failure 04h 1 2 1 Programmable interval timer test in progress or failure 05h 1 2 2 initialization in progress failure 06h 1 2 3 DMA page register write read test in progress or failure 08h 1 3 1 RAM refresh verification i n progress or failure 09h 151 64K RAM test in progress OAh 1 3 3 1st 64K RAM chip or data line failure multi bit OBh 1 3 4 Ist 64K RAM odd even logic failure 0Ch 1 4 1 1st 64K RAM address line failure ODh 1 4 2 1st 64K RAM parity test in progress or failure 13 1 LED signaling and beep codes 6000 Series user s manual Table13 1 Phoenix BIOS beep codes cont d Diagnostic port output codes Description of test or failure 10h 2 1 1
143. nd output with INT17H functions The analog input can also be determined through the use of built in INT17H functions For more information refer to the section below Enhanced INT 17H function definitions Enhanced INT17H function definitions This section provides definitions for the following functions Analog to Digital Conversion and Digital to Analog Conversion 8 4 6000 Series user s manual Analog Analog to digital conversion Function f8h Subfunction 00h Purpose To perform an analog to digital conversion at a specified A D channel This function will perform averaging based on the last setting done using subfunction 2 f8h AL 00h Calling registers 0 gt 0 to 5V 1 gt 5V to 5V 2 gt 0 10V channel number 0 to 7 range and polarity selection 3 gt 10V to 10V DX ffffh Return registers Carry flag cleared if successful AX 12 bit data corresponding to input voltage or the average of multiple readings Carry flag set if error AL Error code Programming example unsigned int atod0Data Inline assembly code for asm mov mov mov mov 0f800h 0ffffh b1 0 bh 1 int 17h mov atodData ax print Data from A D channel 0 Digital to analog conversion Function f8h Subfunction olh Purpose channel Calling registers AH f8h AL Olh BL CX DX ffffh Borland C 3 1 A D channel 0 i
144. ng window Shadow always disabled in this region F0000H FFF FFH 64 KB BIOS are Shadow always enabled 10000H FFF FFH 16 MB addressabl e extended memory A 6 6000 Series user s manual 6010 technical data Jumper settings TableA 5 6010 jumper settings W1 W2 J umper position Pins Description S W1 1 2 USESETUP x W1 3 4 BIOS extension enable N W1 5 6 Network mode Ru W1 7 8 Turbo mode W2 7 8 IORGE SEL A B W1 9 10 IO SEL B B W2 9 10 BIOS device default pins jumpered Connector jumper pinouts TableA 6 6010 BIOS and boot option jumper pinout W1 Pin Function 1 Gnd 2 USESETUP S 3 Gnd 4 BIOS extension enable X 5 Gnd 6 Network mode N 7 Turbo mode T 8 5V 9 Gnd 10 IORGESELB IB A 7 6010 technical data 6000 Series user s manual TableA 7 6010 1 O range sdect jumper pinout W2 Pin Function Gnd FDD power NC 45V FDD IRQ1A BIRQ5 Gnd IORGESELA IA Gnd 10 BI OSDEV B AON A gt Q N Note W2 2 4 supplies internal 45V to a 5V only floppy drive Do notinstall W2 2 4 if external voltage is supplied tothe floppy drive A 8 6000 Series user s manual 6010 technical data TableA 8 6010 PC 104 connector pinout J 1 Pin Row A Row B Row C Row D 0 Gnd Gnd 1 I OCHK Gnd SBHE MEMCS16 2 SD7 RESETDRV LA23 IOCS16 3
145. nput range 5V to 5V 04x Nn atodOData To perform a digital to analog conversion at a specified D A D A channel number 0 to 1 12 bit digital input 8 5 Analog 6000 Series user s manual Return registers Carry flag cleared if successful Carry flag set if error AL Error code Programming example unsigned int dtoa0Data asm mov mov mov mov int Analog to Function Subfunction Purpose ax 0f801h bl 1 D A channel 1 cx 0800h D A output at about way of full range dx 0ffffh 17h digital average sample size select f8h 02h To set the number of samples to average for following Subfunction OOh calls This affects all channels however this can be interspersed between A to D reads giving different samplings per channel The default is 1 Calling registers AH f8h AL 02h CX number of samples 1 2 4 8 16 DX ffffh Return registers Carry flag cleared if successful AH 00 success Carry flag set if error AL Error code Programming example Inline assembly code for Borland C 3 1 asm mov mov mov int O0f802h 4 set 4 samples following 17h A to D conversions print Number of samples set to 4 8 6 6000 Series user s manual Analog 6040 analog input reference adjustment Table 8 3 The analog input reference volta
146. ns Off card I O space EZ I O 1 addresses can relocate to 120 127 320H 327H and 340H 347H EZ I O 2 addresses can relocate to 128H 12F H 328H 32FH and 348H 34F H CTC addresses can relocate to 130H 137H 330H 337H and 350H 357H System contrd register 0 read write access no SEEP CLK System control register 1 read write access watchdog OR strobe no SEEP CLK System control register 0 RO SEEP CLK System control register 1 RO watchdog IOR strobe serial EEPROM read write COM2 Bidirectional parallel port LPT 1 COMI B 4 6000 Series user s manual 6020 technical data TableB 3 6020 interrupt map Interrupt Description IRQ0 System timer IRQ1 Keyboard IRQ2 Unavailable IRQ3 COM2 serial port IRQ4 COM1 serial port IRQ5 LPT lif sd ected with SETUP IRQ6 Floppy disk controller avail able and connected to BIRQ6 or FDC IRQ7 Available and connected to BIRQ7 also selectable with SETUP as LPT1 interrupt default IRQ8 RTC alarm IRQ9 U ser confi gurabl e connected to OPTO B IRQ10 Avail able and connected to BIRQ3 IRQ11 Used by CTC 1 output unavailable far other devices IRQ12 Used by CTC 0 output unavailable far other devices IRQ13 Floating point unit IRQ14 Available and connected to BIRQ5 IRQ15 Power management interrupt TableB 4 6020 memory map Address Description 00000H 9F F FFH System memory 640 KB base RAM AO0000H BF F FFH Of
147. nt or equivalent to use your PC Microcontroller with a video and keyboard m PCMicrocontroller Breakout board Micro PC card cage Power supply 5420 video card and VGA monitor AT compatible keyboard with PS 2 type connector VTC 9F cable Null modem adapter 1 Install the 5420 video card into the card cage 2 Install the keyboard using the breakout board with the PC Microcontroller Refer to the section Installing a keyboard in the AUX I O chapter 3 Install the PC Microcontroller into the card cage 4 Connect the video monitor to the video card 5 Power the PC Microcontroller The BI OS messages should appear on your video monitor Saving a program to the PC Microcontroller Thefollowing options detail the procedures for transferring files tothe PC Microcontroller and programming the flash memory in SSDO Video 6000 Series user s manual m f you have setup a floppy drive on the PC Microcontroller system you can copy the files directly from the floppy to SSDO m fa local floppy drive is not available you must use TRANSFER EXE or REMDISK REMSERV totransfer files from a remote system via COM 1 or 2 as detailed in the next section and in the Softwareutilities chapter Transferring files to the PC Microcontroller Thefollowing steps detail the procedures for transferring files from your PC tothe virtual drive on the PC Microcontroller In order to transfer files from your PC tothe
148. nt Y N Enables resume from SUSPEND mode if DRQO occurs drq1 event Y N Enables resume from SUSPEND modeif DRQ1 occurs drq2 event Y N Enables resume from SUSPEND mode if DRQ2 occurs drq3 event Y N Enables resume from SUSPEND mode if DRQ3 occurs drq5 event Y N Enables resume from SUSPEND modeif DRQ5 occurs drq6 event Y N Enables resume from SUSPEND mode if DRQ6 occurs drq7 event Y N Enables resume from SUSPEND mode if occurs IN includes irq32Y N Resume from SUSPEND mode if IRQ3 occurs and IN resume is enabled IN includes irq4 Y N Resume from SUSPEND mode if IRQ4 occurs and IN resume is enabled IN includes irq12 Y N Resume from SUSPEND mode if IRO12 occurs and IN resume is enabled 18 8 6000 Series user s manual Using PICO FA Chapter19 Using PICO FA Description Phoenix s PICO FA includes an extended BIOS PICOFA IMG a device driver PI COF A SY S and a format utility PFORMAT E XE The extended BIOS emulates two read write hard drives using flash memory in 5500 and SRAM in 5502 The format utility PF ORMAT EXE formats reformats the writeable SSDs The device driver PFORMAT EXE is used when bocting from a floppy or hard drive and when the extended BIOS PI COFA IMG is disabled For more information see the Save and run programs chapter and the SETSSD section in the Setup programs chapter Using PFORMAT Formatting a drive To format a drive do one of the
149. o 10V W3 6 8 W3 3 5 OV to 5V W3 8 10 W3 1 3 5V to 45V W3 7 8 W3 3 4 default pins jumpered Connector jumper pinouts TableD 9 6040 BIOS and boot option jumper pinout W1 x 5 Function Gnd USESETUP S Gnd Gnd Network mode N Turbo mode T 45V Gnd IORGESEL B IB AON A BIOS extension enable X D 8 6000 Series user s manual 6040 technical data Table D 10 6040 BIOS and EZ 1 O jumper pinout W2 Pin Function 1 45V AUX 2 45V AUX 3 Port C 4 Port 5 Gnd 6 Gnd 7 Gnd 8 IORGESELA IA 9 Gnd 10 BI OSDEV B TableD 11 6040 digital to analog range select pinout W3 Pin Function 1 Channel B 0 to 45V range 2 NC 3 Channel B range select 4 Channel B 5V to 45V range 5 Channel B OV to 10 range 6 Channel A OV to 10 range 7 Channel A 5V to 45V range 8 Channel A range select 9 NC 10 Channel A OV to 45V range TableD 12 6040 EZ I O option jumper pinout W4 Pin Function 1 Port B 2 45V Aux 3 Gnd 4 NC D 9 6040 technical data 6000 Series user s manual TableD 13 6040 EZ 1 0 connector J 1 Pin Function Port 19 bit O 21 bit 1 23 bit 2 25 bit 3 24 bit 4 22 bit 5 20 bit 6 18 bit 7 Port B 10 bit O 8 bit 1 4 bit 2 6 bit 3 1 bit 4 3 bit 5 5 bit 6 7 bit 7 Port C 13 bit O 16 bit 1 15 bit 2 17 bit 3 14 bit 4 11 bit 5 12 bit 6 9 bit 7 2
150. oaded into the counter and is decremented on subse quent CLOCK pulses The GATE input is HIGH which enables the counter If the GATE input is LOW then counting is inhibited If GATE goes LOW during OUT pulse OUT is immediately returned to a HIGH Ontherising edge of GATE the initial N value reloads on the next CLOCK pulse The value decrements on subsequent CLOCK pulses Note A COUNT value of 1 is illegal in Mode 2 15 7 Counter timer controller 6000 Series user s manual Because the interrupts are typically edge triggered the interrupt is not generated until OUT goes low and then high again CLOCK count 1 Mode 3 Square wave mode This mode is useful when it is necessary to generate a Square Wave output This mode will be used most often for counter 2 which is the pre scalar for counters 0 and 1 Sincethe GATE of counter 2 is always enabled counter 2 will operate in this mode Counters 0 and 1 can also usethis mode to further divide the output of counter 2 The OUT signal is HIGH after the control word is written After the COUNT value of N is written the OUT signal will go LOW on the negative edge of the next CLOCK cyde If 15 EVEN number OUT will remain LOW for N 2 CLOCK cydes if N is an ODD number OUT is LOW for N 2 1 CLOCK cydes OUT then goes HIGH and remains HIGH until N equals 0 The value N is then automatically reloaded into the counter and the period repeats The GATE input being HI
151. ode 1 are you there gt 01 s message start character 01 intended listener is ID 01 MES command code A roll call _ A3 checksum uchar 0 1 0 01 0xA3 message end character Remote replies Dear 00 01 is here have no special request gt 00Z01007B gt message start character 00 intended listener is ID 00 host Z command code Z reply to roll call i 01 01 my ID 00 00 status no special request 7B checksum uchar 0 0 27 0 1 0 0 0x7B message end character Host sends Dear node 2 are you there gt 02 5 gt message start character 02 intended listener is ID 02 command code roll call checksum uchar 0 2 0 02 0xA5 message end character Remote replies Dear 00 02 is here have no spedial request gt 00702007 gt message start character 00 intended listener is ID 00 host 2 command code Z reply to roll call 02 02 my ID 00 00 status no special request 7C checksum 0 0 2 0 2 0 0 0x7C i message end character The host continues with the roll call until all nodes have been queried Not all of the 32 possible nodes need to be queried only the known nodes When the last known node has been queried then the host queries for an unknown node 5 12 6000 Series user s manual Serial ports Host sends Dear
152. ode DRAM installed The surface mounting is far more rugged than plug in memory Solid state disks withstand shock and vibration SSDOisalMB flash memory disk containing the software suite in less than 512 KB leaving more than 512 KB available for user programs The flash memory is seen by software as a hard disk The use of the flash allows easy installation of software updates SSD2 is an SRAM with 128 KB capacity for data storage SSD2 is battery backed with an on board battery 1 3 Overview 6000 Series user s manual Boot sequence A PC Microcontroller can be configured to boot from the on card solid state disk an external floppy disk or hard disk Serial ports protected against ESD The COM1 and COM2 serial ports are 16C550 compatible The 16 byte FIFO buffers minimize processor overhead in high speed serial commu nications Baud rates are programmable from 150 to 115 KB baud Both ports have an RS 232 interface with the RS 232 voltages gener ated on card The serial ports meet the new I EC1000 level 3 ESD protection specification with 8 KV of ESD protection Backdrive pro tection is also included CAMBASIC supports the serial ports with interrupt driven 2 KB input and output buffers which operate in the background This ensures that data is not lost while critical control loops are being executed Note The network interface module is not compatible with the 6010 model Convenient I O termination
153. of fast page DRAM surface mounted on card Real time clock The PC Microcontroller has a built in AT style real time calendar clock The clock may be read either through DOS or CAMBASIC Note The date and time occasionally resets to default If your appli cation requires date time stamping you should consider another Octagon Systems CPU card Battery backup for SSD2 and real time calendar clock The PC Microcontroller cards contain a 3 6V Lithium battery on card This battery is intended as a backup battery only to protect data in SRAM and the real time clock while an external battery is being changed Using the on card battery for these functions can reduce the lifetime to approximately two years In addition the margin between the battery voltage and the switchover threshold can be reduced prema turely causing lost data This is particularly noticeable in noisy envi ronments If you are backing up SRAM or depending on the real time clock con nect an external AT battery to the battery connector J6 For critical applications such as medical or data logging applications where the CPU is powered off for extended periods you can connect an additional battery to pin 7 battery and pin 3 ground on connector J2 AUX I O header The breakout board BOB which connects to the AUX I O header contains a connector for an AT style battery 9 2 6000 Series user s manual External drives Chapter 10 Ex
154. oller to your PC you will need to use null modem adapter The serial port at COM1 defaults to I at I O address 3F 8H which is the PC standard for COM 1 Likewise the serial port at COM2 defaults to IRQ3 at I O address 2F8H Refer to Table 5 1 for the connector designation of each COM port on your model in the 6000 Series Serial port connector reference Reference designator 6010 6020 6080 6040 6050 COM1 J3 J3 J3 J3 J3 COM2 J4 J4 J4 J4 J4 COM3 J1 com4 J7 Selecting console devices The PC Microcontroller has two options for console devices Serial console from COM 1 as selected with the SETUP program Serial Console 1 ENABLED A serial cable null modem adapter plugged into a host PC running PC SmartLINK provides both input and output The local keyboard allows input 5 1 Serial ports 6000 Series user s manual 2 Noconsole device as selected with the SETUP program Serial Console on COM 1 DISABLED means no console output The local keyboard allows input 1 RS 232 I O When you have completed developing your application and programmed the PC Microcontroller you can use COM1 as a standard RS 232 serial port for connection to a printer modem or other serial device COM1 as a standard RS 232 serial port is configured at port address 3F8H To access COM 1 as standard RS 232 configure your serial port for your application or add a
155. oller utility disk 5 3 Serial ports 6000 Series user s manual Method 3 1 Run SETUP to enable the COM1 as console option 2 Usethe PRINTS PRINTSL KEYHIT INKEY2 commands as found in the DEMO BAS and DSQBTEST BAS programs included on the PC Microcontroller utility disk Unformatted string output and string input must be done manually Note Programs written in this manner will also work with a video card present and therefore systems can be debugged on your PC Method 4 1 Usean off the shelf communications library 2 This may require restoring the COM 1 parameters similar to M ethod 2 if the console video is expected after the QuickBASI C program termi nates Method 5 1 Use COM2 instead of COMI This is similar to Method 1 but you will still get the system displays over COM 1 Using Turbo C If you need to restorethe serial parameters after executing a C pro gram refer tothefile COMTEST CPP This file can be downloaded from the Octagon Bulletin Board at 303 427 5368 using 14400 baud 8 data bits no parity and 1 stop bit COM2 Operation There are two modes of operations for COM 2 m PC mode m Network mode The N position at W1 distinguishes the COM 2 mode on powerup mode N position at W1 jumpered default configures 2 as a standard RS 232 port Network mode N position at W1 not jumpered configures COM 2 to communicate at 38 4 KB respond
156. on Use QuickBASIC s OPEN CLOSE PRINT INPUT commands to access 1 The following is an example program using these commands OPEN COM1 9600 N 8 1 BIN FOR RANDOM AS 1 CRLFS 2CHR 13 10 PRINT 41 INPUT A STRING CRLF INPUT 1 A PRINT 1 CRLFS AS CLOSE 1 PRINT PRINT USING INPUT commands must use the COMx device number where x represents the COM port used Method 2 1 Run SETUP to enable the COM 1 as console option Note Note Use QuickBASIC s OPEN CLOSE PRINT INPUT commands to access COM 1 After closing the device manually restore the serial param eters The following example assumes 9600 N 8 and 1 parameters OPEN COM1 9600 N 8 1 BIN FOR RANDOM AS 1 CRLFS 13 10 PRINT 1 INPUT A STRING CRLF INPUT 1 AS PRINT 1 CRLFS AS CLOSE 1 PRINT PRINT USING INPUT commands must use the COM1 device number Restore the serial parameters by using a batch file specifying your program s name as the first line of the file and COM 1CON as last line of the file For example TEST BAT may include the following to execute a user application named USECOM 1 USECOM1 COM1CON Execute TEST BAT COM 1 will be used as a communication port by USECOM 1 then COM1 is restored to a console port by COM 1CON COM 1CON is located on the PC Microcontr
157. on card battery powers the calendar clock when the external battery is being replaced The clock may be read either through DOS or CAMBASIC The calendar clock also provides the user with 128 bytes of user defined CMOS RAM Note The date and time occasionally resets to default If your applica tion requires date time stamping you should consider another Octa gon Systems CPU card Power management reduces power by more than 7096 Power management can be used to reduce power consumption or to freeze the state of the program on the occurrence of a power manage ment interrupt Power consumption can be reduced by more than 70 reducing the heat load and extending battery life in mobile applications Rugged environmental operation The CPU case temperature may range from 40 to 85 C during tion at 25 MHz or 0 to 60 C during operation at 40 MHz The PC Microcontroller is designed to withstand 10g shock and 2g vibration 5 volt only operation lowers system cost The PC Microcontroller operates from a single 5V 4 supply Lo cated across the power supply the 6 2V 5W diode protects against reverse voltage and limits over voltage Power is supplied to the card either through the ISA bus connector or the terminal block 1 7 Overview 6000 Series user s manual Reference designators Before you continue with the installation of your PC Microcontroller review the following tables for a list of connec
158. on each system as per the following diagram 2 17 Quick start 6000 Series user s manual Figure 2 11 Note Note Downloading files to the PC Microcontroller with a video card 5420 REMDISK EXE SVGA Card PC Microcontroller gt o REMDISK EXE N 11 raid Hug u HHAH gogg modem BHBH adapter aaa BEHR HHHH 2000009999050 gogg ZIDODDOOOOOODOODOODOOOO 2898 On the PC Microcontroller system execute REMDISK E XE by entering 60xx C N gt REMDISK The following message is displayed on the PC Microcontroller monitor Remote Disk v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Installed as Drive F COM B115 T10 REMDISK assigns the remote drive as the last drive in the system In this case drive F was assigned Execute REMSERV EXE on the desktop PC C gt REMSERV The following message is displayed on the PC REMSERV v1 0 Copyright c 1990 1994 Datalight Inc All rights reserved Using COMI at 115K baud Accessing Drive Time out is 9 seconds Press Esc to Exit There may be a delay before exit occurs REMSERV EXE islocated in the PC Microcontroller utility disk V DOS directory 2 18 6000 Series user s manual
159. on the S position at W1 4 Reboot your system System locks up on powerup may or may not respond to reset switch A common cause is using a non Octagon power supply such as a PC desktop supply Most of these PC supplies are rated at 5V at 20A or more Switching supplies usually requires a 2096 load to operate prop erly that is 4A or more Sincea typical Micro PC system takes less than 2A the supply does not regulate properly Output drift up to 6 7V and or 7 8 voltage spikes have been reported If the power supply comes up slowly that is longer than 50 ms the sequencing of Cs on the board may be out of sync thus causing the system to lock up 22 2 6000 Series user s manual Troubleshooting Octagon supplies are designed to ramp up fast less than 50 ms dis charge fast powerdown and to regulate properly under a load condition System locks up after powerdown powerup If the power supply does not drain below 0 7V the CMOS components on the card will act like diodes and forward bias This is typically caused by using power supplies that have large output capacitors Either use a different power supply that discharges faster leave the power off until the supply has adequate time to discharge or place a 100 ohm large wattage resistor across the output capacitor Octagon supplies are designed to ramp up fast less than 50 ms dis charge fast on powerdown and to regulate properly under a no lo
160. ontroller Table8 1 6040 digital to analog output range sdect W3 Output range Channel A Channel B OV to 10V W3 6 8 W3 3 5 OV to 5V W3 8 10 W3 1 3 5V to V W3 7 8 W3 3 A default pins jumper ed Note The 12 bit digital to analog converters DACs can be jumpered for different ranges For example for 0 to 10V range x 0 implies 0 00V output x 4095 implies 10V output This means there are 10 4095 0 002442 volts per count Writing to analog output with CAMBASIC An analog output program example using CAM BASIC s AOT statement is provided below 10 Assume that DAC jumper is configured to generate 0 to 10V 8 3 Analog 6000 Series user s manual Table 8 2 20 AOT 0 2048 Output approximately 5V to channel 0 30 AOT 1 1024 Output approximately 2 5V to channel 1 Analog specifications Analog input Specifications Channels 8 single ended Resolution 12 bit Input voltage ranges 10V 5V Oto 10V or Oto 5V Gain x1 Overload pra ection 16 5V Input impedance unipolar 21 kW bi polar 16 kW Conversion time 10 us MUX settling time 3 us track to hold acquisition time Throughput 100 ksps Analog output Specifications Channels 2 independent Resolution 12 bit Output voltage ranges 5V Oto 10V or Oto 5V Output current 5 mA Throughput max setti ng time 10 us for data to stabilize Configuring and reading from analog input a
161. ooting Chapter 22 Troubleshooting If your system is not working properly check the following items No screen activity checking console serial communications If you do not get the sign on message after bootup check the following Make sure all cards except the PC Microcontroller are removed from the card cage This ensures that other cards are not interacting with the PC Microcontroller and that a video card is not installed Remove the jumper from the S position at W1 The VTC 9F serial cableturns the PC Microcontroller serial port intoa 9 pin AT serial port Make sure a null modem adapter is installed on the other end and that the assembly is inserted into the proper serial port on the PC Make sure the VTC 9F serial cable is connected to COM1 on the PC Microcontroller Make sure your power module provides 5V 0 20V and at least 2 5A of current After verifying the above conditions you can monitor voltage levels by connecting an oscilloscope between the TxD line on COM 1 and ground After powerup you should see a burst of activity on the oscilloscope screen The voltage level should switch between 47 8V Garbled console screen activity If you do get activity on your console screen but the message is garbled check the following Remove the jumper from the S position at W1 to force 9600 N 8 1 for COM 1 If you are using PC SmartLINK make sure you have configured the software for 9600 ba
162. oread ports A and C issue the following commands PORTA PORTC INP 140H port A INP 142H port C Note Port B is used as output on the 6050 PC Microcontroller Enhanced INT17H function definitions This section provides definitions for the following functions Initialize EZ I O 1 Write EZ I O 1 Read EZ I O 1 Initialize EZ I O 2 Write EZ I O 2 and Read EZ I O 2 Initialize EZ 1 Function efh Subfunction 00h Purpose To set the directions and to program the initial values of an EZ I O port Callingregisters AH efh AL 00h DI Port A configuration XXXXXXXxB XXXXXXXX Initial data for port A 6 16 6000 Series user s manual EZ W O XXXXXXXXB BX B configuration XXXXXXXX XXXXXXXxB XXXXXXXX XXXXXXXXB CX Port C configuration XXXXXXXxB XXXXXXXX XXXXXXXxB DX ffffh directi on 1 gt output 0 gt input Initial data for port B directi on 1 gt output 0 gt input Initial data for port C directi on 1 gt output 0 gt input Return registers Carry flag cleared if successful Carry flag set if error AL Error code Comments This function is used to initialize the first EZ I O i e the EZ O that has the lower I O address when two EZ I O chips are present on a board before normal use Programming example Inline assembly code for Borland C 3 1 asm mov mov di 00ffh port a
163. ou are adding the ROM DOS operating system SY S COM must be downloaded from the PC Microcontroller utility disk This fileis located in the DOS directory Note f you are adding the MS DOS operating system you must first boot from an MS DOS bootable device floppy or hard drive Note f you are not booting from ROM DOS and wish to SY S ROM DOS back to the drive the SYS command requires the access of the following ROM DOS files COMMAND COM ROM DOS SYS and SYS COM 4 2 6000 Series user s manual Save and run programs Adding your application 3 To add your application to your SSD the following Three methods of copying your application to the SSD are available Do one of the following a From local drivetothe PC Microcontroller issue the COPY command b From a host drive download your application by issuing the TRANSFER command when using SmartLINK Refer to the section Transferring files between the PC Microcontroller and your PC in the Quick start chapter c To establish a remote drive and copy from it issue the REMDISK and REMSERV commands Refer to the section Transferring files between the PC Microcontroller and your PC in the Quick start chapter Add or remove any device drivers from your application Remember to add these drivers to your drive as well To autoexecute your application add your application name to the AUTOEXEC BAT file This method is the same any DOS
164. out cable 1 Opto common 1 2 OPT OB 2 3 Gnd 3 4 OPT OA 4 5 Keyboard data 5 6 Keyboard clock 6 7 Battery 7 8 Speaker 8 9 5 Vdc safe 9 Pin Function DB 25 IDC breakout cable 10 STB 1 11 AF D 14 12 DATAO 2 13 ERR 15 14 DATA1 3 15 INIT 16 16 DATA2 4 17 SLIN 17 18 DATA3 5 19 Gnd 18 20 DATA4 6 21 Gnd 19 22 DATA5 7 23 Gnd 20 24 DATA6 8 25 Gnd 21 26 DATA7 9 27 Gnd 22 28 ACK 10 29 Gnd 23 30 BUSY 11 31 Gnd 24 32 PE 12 33 Gnd 25 34 SLCT 13 active low Note The DB connectors are the 3414 series connector or Thomas and Betts 608 3430 A wiremount male connector can be used to connect a VTC10 IBM cable C 8 6000 Series user s manual 6030 technical data Table C 10 6030 power connector pinout J 5 Table C 11 Table C 12 Pin Function 1 45 VDC 2 Gnd 6030 battery pinout J 6 Pin Function 1 Battery 2 Keyed 3 Gnd 4 Gnd Micro PC bus A pinout Pin Description Signal Pin Description Signal Al CH CK l A17 A14 O A2 D7 I O A18 A13 O A3 D6 1 0 A19 A12 O A4 D5 I O A20 A11 O A5 D4 I O A21 A10 O A6 D3 I O A22 A9 O A7 D2 I O A23 A8 O A8 D1 1 0 A24 A7 O A9 DO 1 0 A25 A6 O A10 1 0 CH RDY A26 A5 O A11 AEN O A27 A4 O A12 A19 O A28 A3 O A13 A18 O A29 A2 O A14 A17 O A30 Al O A15 A16 O A31 A0 O A16 A15 O adivelow C 9 6030 technical data 6000 Series user s manual TableC 13 Micro PC bus B pinout P
165. pends video suspend COM 1 Y Suspends COM1 suspend COM2 Y N Suspends COM2 suspend COM3 Y Suspends COM3 suspend COM 4 Y N Suspends COM4 suspend SI O Y N Suspends SIO Resume conditions Oncethe system has entered the SUSPEND mode certain peripheral activities can be specified to return the system to the full power mode The access activities are configured in the PMI file of the PMISETUP program VIDEO resume Y N Enables resume activities if Video suspend occurs HDD resume Y N Enables resume activities if access to H ard Disk suspend occurs LPT resume Y N Enables resume activities if access to LPT suspend occurs resume Y N Enables resume activities if access to GPO suspend occurs GP1 resume Y N Enables resume activities if access to GP1 suspend occurs RTC resume Y N Enables resume activities if access to R T C suspend occurs DRQ resume Y N Enables resume activities if access to DRQ suspend occurs IN resume Y N Enables resume activities if access to N suspend occurs 1 N Enables resume activities if access to 1 suspend occurs CPU power management 6000 Series user s manual COM 2 resume Y N Enables resume activities if access to COM2 suspend occurs keyboard resume Y Enables resume activities if access to K ey board Display suspend occurs If DRQ access resume is set to YES then the following options are available 9 0 eve
166. pered 140H 148H 150H OxA8 bit 4 default pins jumpered 6020 pull down pull up EZ 1 O 1 configuration W3 Configuration Description W3 2 4 All lines in Port A are pulled to Gnd through 10K Ohm W3 4 6 All lines in Port A are pulled to 45V through 10K Ohm W3 7 9 All lines in Port B are pull ed to Gnd through 10K Ohm W3 7 8 All lines in Port B are pulled to 45V through 10K Ohm W3 1 3 All lines in Port C are pull ed to Gnd through 10K Ohm W3 3 5 All lines in Port C are pulled to 45V through 10K Ohm default pins jumper ed B 6 6000 Series user s manual 6020 technical data TableB 8 6020 pull down pull up EZ 2 configuration W4 Configuration Description W4A 2 4 All lines in Port A are pulled to Gnd through 10K Ohm W4 4 6 All lines in Port A are pulled to 45V through 10K Ohm W47 9 All lines in Port B are pulled to Gnd through 10K Ohm W4 7 8 All lines in Port B are pulled to 45V through 10K Ohm W41 3 All lines in Port C are pulled to Gnd through 10K Ohm W4 3 5 All lines in Port C are pulled to 45V through 10K Ohm default pins jumper ed Connector jumper pinouts TableB 9 6020 BI OS and boot option jumper pinout W1 Pin Function Gnd USESETUP S Gnd BIOS extension enable X Gnd Network mode N Turbo mode T 45V Gnd IORGESELB IB AN A Q N H 7 6020 technical data 6000 Series user s manu
167. pts are typically positive edge triggered the interrupt will not be generated until OUT goes low and then high again CLOCK count 1 15 8 6000 Series user s manual Counter timer controller Mode 5 Hardware triggered strobe This mode can be useful by loading a count into counter 0 or counter 1 and then starting the count by enabling the GATE Oncethe count has been reached an interrupt will be generated This mode requires control of the GATE and therefore cannot be used for the counter 2 pre scaler This mode is useful in order to generate a one CLOCK cycle width OUTPUT triggered by GATE after a COUNT value of N has expired The OUT signal is HIGH after the control word is written The COUNT value of N is then written A POSITIVE transition on the GATE input is then required The next CLOCK cydeloads the COUNT value into the counter and subsequent CLOCK cycles decrement the counter When the counter reaches a value of 0 the OUT cycles LOW for one CLOCK period GATE does not inhibit the counter or effect the OUT signal Any POSITIVE transition of the GATE input will reload the COUNT value N into the counter and the counting will continue Because interrupts are typically positive edge triggered the interrupt will not be generated until OUT goes low and then high again CLOCK count 1 Enhanced INT 17H function definition Initialize counter timer chip Purpose To configure the 6020 on board CTC Calling re
168. quires battery backup to maintain data If a battery is not desirable this data can be stored in serial EEPROM written toCMOS RAM on power up changed and written back to serial EEPROM Enhanced INT 17H function definitions This section provides definitions for the following functions Read Single Word from Serial EEPROM Write Single Word to Serial EEPROM Read Multiple Words from Serial EEPROM Write Multiple Words to Serial EEPROM and Return Serial EEPROM Size Read a single word from the serial EEPROM Function fch Subfunction 00h Purpose Toread a single word from the on board serial EEPROM Calling registers AH fch AL 00h BX Word address zero based DX ffffh Return registers Carry flag cleared if successful AX Wordread Carry flag set if error AL Error code Error Code Meaning ffh Unknown error Olh Function not implemented 02h Defective serial EEPROM 03h Illegal access 17 1 Serial EEPROM 6000 Series user s manual Comments EEPROM Programming example Read word 2 unsigned int seeData This function reads a word from the user area of the serial Inline assembly code for Borland C 3 1 asm mov 008 mov bx 02h Read word 2 mov dx 0ffffh int 17h mov seeData ax store data in c environment Write a single word to the serial EEPROM Function fch Subfunction olh Purpose To write a single word to the on board ser
169. r professional programmers If you have any experience in writing BASIC programs you are already considered an expert in the CAM BASIC language Even if you have not had any previous programming experience there are dozens of books that can teach you to program in BASIC Major features Below the descriptions of the major features found in the CAMBASIC language Event Multitasking CAMBASIC uses Event Multitasking an efficient method that compiles tasks to machine code for fast assembly operation During the execution of the main program all tasks are sampled in the background at 160 times per second Depending upon the com mand the CPU type and speed the foreground program speed ranges from 5000 to 50 000 commands per second For example with 32 tasks activated the background task checking rate translates to approxi mately 10 000 tasks per second 20 1 CAMBASIC 6000 Series user s manual CAMBASIC task types Event Multitasking lets you do a number of system tasks in the back ground while you execute your program The following tasks are avail ablein CAMBASIC m Calling subroutines every 0 01 to 655 seconds Note UseON TICKA and ON TICKB statements to call subroutines 8 counters with an interrupt on a present count 8 programmable ti med outputs 8 interrupts on changes in digital inputs K eypad scanning and debounce Capturing serial input without slowing or stopping the program P
170. rage and applications programs 6000 Series user s manual Overview m PICO FA flash file system makes flash memory appear as a hard disk tothe PC Microcontroller m CAMBASIC industrial control language includes drivers for all on card hardware m Thenetwork kernel allows up to 32 systems to be linked into an RS 422 485 network m Theutility library includes application examples in C and CAMBASIC W Diagnostic softwareis included to test the system on powerup CAMBASIC CAMBASIC supports all 1 0 including digital analog timing interrupts communications and other functions Thus CAMBASIC eliminates the need to write hardware drivers You spend your time writing the applications software rather than writing and debugging drivers Diagnostic software verifies system integrity automatically The PC Microcontroller has built in diagnostic software that can be used to verify on card 1 and memory functions On powerup a series of tests is performed If a problem occurs the failed test can be identified by the color sequence on a bicolored LED Thetest is performed auto matically every time the system is reset or powered up No monitor keyboard disks test fixtures test equipment or software is required See the LED signaling codes chapter for a complete listing of system tests DRAM memory is fast and rugged The PC Microcontroller has surface mounted fast page m
171. remotes initially respond to FFh as the ID before the ID is assigned or recognized by the host To avoid conflict only one new node at a time shall be added to the network Other unregistered nodes must not be powered up whilethe new nodeis being registered This allows assigning each node a unique node I D Once a node has been added to the network and its ID stored in serial EEPROM any node can thereafter attach to the network in any powerup sequence Periodically the host shall try to communicate to all the existing nodes in the network plus the potential new node with the ID FFh Network interface module NIM The Octagon network interface module NIM is designed for easy installation onto COM 2 of the PC Microcontrollers The NIM supports four wire RS 422 and two wire RS 485 configurations Power is sup plied to the NIM via the COM2 connector on the PC Microcontroller For more information about the network interface module see the NIM product shes Note Thenetwork interface module is not compatible with the 6010 model 5 6 6000 Series user s manual Serial ports Figure5 1 Network interface module RS 485 two wire example Host Transmit Receive Pair PC Microcontroller Host PC Microcontroller Remote PC Microcontroller Microcontroller Remote Remote Figure5 2 Network interface modul eRS 422 four wire example Host Transmit Pair
172. rinting data without slowing the program Easy to write programs CAMBASIC is termed as the no hassle embedded language It only takes four simple steps to write the program and much less timethan C 1 At the gt prompt type CAM BASIC 2 Write your program CAMBASIC comes with several programming examples 3 Debug your program 4 Type SAVE name Keyboard mode to debug hardware Theimmediate keyboard mode used to examine system components and wiring hardware can quicken system debugging The BIT command can be used to turn on and off motors relays etc Even if C or another language is used for the applications program CAMBASIC is always in flash and remains a fast and useful tool to validate correct system operation Built in help and error messages CAMBASIC has built in help messages for pin pointing problems For example when an error occurs in a user program the syntax of the command that caused the error is displayed 20 2 6000 Series user s manual CAMBASIC Industrial commands CAMBASIC has more than 93 commands many of which are tailored to the industrial environment CAMBASIC can dothe following m Read switch inputs individually or in groups B Writetolamps relays and opto isolator modules one at a time or in groups m Write analog data to motor controllers linear actuators and linear indicators m Read analog data from pressure transducers RTDs thermocouples and strain gauge
173. roups ports A B and C each group consisting of 8 bits Any of thelines at ports A B or C can be configured individually as inputs or outputs Immediately after a reset each 1 0 line becomes an input Note Forthelocation of J 1 refer to the component diagram in the 6040 technical data appendix Figure6 3 Location of EZ 1 O in the 6040 Base A or Base 1 or Base 2 C or J1 26 position connector Register EZI O digital chip 6040 See Table 6 10 for the 6040 EZ 1 0 base address selection 6 5 EZ 6000 Series user s manual Model 6050 Sixteen of the 24 lines can be individually programmed as inputs or outputs These are divided into two groups of 8 lines with 10K resistors that can be pulled to ground or 5V As output lines they can sink and source 15 mA The remaining 8 lines are dedicated high current outputs using a ULN2804 high current Darlington array The outputs are open collec tors and are capable of driving loads up to 100 mA at 50V 6050 Pulling the I O lines high or low Note Table 6 6 Note J umper block W2 pulls the I O lines at ports A and C high or low The default pulls all of the I O lines high For the location of W2 refer to the component diagram in the 6050 technical data appendix 6050 pull up pull down EZ 1 Configuration Description W2 2 4 lines in Port A are pulled to 45V through 10K Ohm W2 4 6 lin
174. s m Send position and velocity profile information to smart motion control cards W Measure elapsed time and frequency and generate frequency outputs Downloading programs remotely Programs in CAMBASIC can be written and changed the communi cation serial ports Even the built in text editor is designed to operate over a serial link A system can be reprogrammed thousands of miles away with the addition of a modem or radio link You can also perform immediate mode commands to exercise equipment and verify operation from any distance Network support CAMBASIC supports RS 485 networking with direct access to the BIOS network kernel in which 32 systems may be networked at the same time CAMBASIC has several commands to link directly to the BIOS kernel to receive and send operation codes and packets of data Compatibility with other programs Usingthe CALL or CALL ABSOLUTE commands to access other pro grams CAMBASIC lets you combine it with C assembly or any com piled language Since entry and exit conditions are well defined few limitations are placed on the called programs Industrial extensions of CAMBASIC In addition tothe list of industrial commands there is also a list of industrial extensions supported by CAMBASIC 20 3 CAMBASIC 6000 Series user s manual AUTORUN BCCF BCD BIN BIN BIT CLEAR DISPLAY CLEAR TIMER CONFIG AIN CONFIG AOT CONFIG BAUD CONFIG COM CONFIG COUNT CONF
175. s on the PC Microcontroller Once you have written tested and debugged your application you can then save it to flash memory 5500 When you reboot the PC Microcontroller your program can automatically load into DOS memory and execute As shipped from the factory SSDO already contains a bootable ROM DOS This chapter describes the following W Saving an application program to SSDO m Autoexecuting the program from the PC Microcontroller m Overriding autoexecution of your program The information in this chapter assumes you will be using ROM DOS in your application Some Microsoft programs make undocumented DOS calls With ROM DOS an error will be returned when an undocumented DOS call is made causing your program to operate erratically We recommend booting from 5500 and using your own DOS when using programs with undocumented DOS calls Refer to the Adding operating system startup files section in this chapter for more information on saving and autoexecuting programs This chapter also assumes you will be using the PC Microcontroller without a video card monitor If you are using these devices refer to the Video chapter for more information on transferring and saving programs Saving program and support files By default SSDO comes from the factory preformatted loaded with Datalight s ROM DOS startup files and with an example demo pro gram Toreplace the demo program on SSDO with your own see Add ing your application
176. sage entry OFAh RS 485 function signature AL 02h RS 485 sub function DX Offffh ES BX Receive buffer pointer On exit AL status 0 gt available Not 0 gt message not collected yet Function 05 Get receiver status On entry AH OFAh RS 485 function signature AL 05h RS 485 sub function Offffh On exit AX incoming message status incoming message count 5 8 6000 Series user s manual Serial ports Function 06 Get transmitter status On entry On exit AH 0FAh RS 485 function signature AL 06h RS 485 sub function DX Offffh AX outgoing message status BX outgoing message count Function 07 Get ID On entry On exit AH 0FAh RS 485 function signature AL 07h RS 485 sub function DX Offffh AX our current ID Function 08 Set ID On entry On exit AH OFAh RS 485 function signature AL 08h RS 485 sub function BX desirable D DX Offffh AL status 0 gt 0k N ot 0 gt error Function 09 Get incoming message buffer pointer On entry On exit AH OFAh RS 485 function signature AL 09h RS 485 sub function DX Offffh ES BX incoming message buffer pointer Function 0a Get outgoing message buffer pointer On entry On exit AH 0FAh RS 485 function signature AL 0Ah RS 485 sub function DX Offffh ES BX outgoing message buffer pointer Function 0b Set incoming messa
177. section in this chapter Formatting SSDO This section descri bes how to format SSDO 1 Definethe SSD order with the SETSSD command Since the command input varies depending upon the parameters you would need to enter see the SETSSD command in the Software utilities chapter 4 1 Save and run programs 6000 Series user s manual 2 To begin formatting SSD0 execute PFORMAT as follows 60xx C N gt PFORMAT Hn where is the hard drive sequence number This number includes IDE drives and SSDs For example if you have 0 IDE drives and SETSSD shows hdd SSDO SSD2 then enter 60xx gt On the other hand if you have 1 IDE drive enter 60xx C N gt PFORMAT H1 Note Ifthe drive has not been previously formatted reset the system before accessing the drive This allows DOS to recognize the drive and add a letter designation to it Note PFORMAT EXE must be downloaded from the PC Microcontroller utility disk This file is located in the UTILS directory After formatting the drive and resetting the system you may access it as anormal DOS drive Adding operating system startup files using SYS To add the system files issue the following operating systems command C gt SYS x where x specifies the drive letter For example if your system has 1 IDE drive and SETSSD shows hdd 5500 SSD2 then 5500 should be drive D To SYS this drive use the SY S D command Note f y
178. ses are available 1 8 MHz and 7 2 MHz These time bases are jumper selectable through W2 Refer to Table 15 1 The CTC chip consists of three counter ti mer circuits Counter 2 which has either a clock input of 1 843 MHz or 7 159 MHz acts as a pre scalar for counters 0 and 1 The output of counter 2 is routed to the dock inputs of both counters 0 and 1 Gate inputs to counters 0 and 1 are tied together and are either pulled high or controlled by the control signal CTC Gate Enable The outputs of counters 0 and 1 then provide IRQ12 and IRQ11 respectively to the CPU Figure 15 1 Counter timer controller diagram OUT 0 34IRQ12 CLK 0 lt i GATE O OUT 1 gt IRQ11 CLK1 4 9 GATE 1 5 OUT 2 c 10K CLK 2 e 2 e 5V 1 843 MHz 4 82C54 we 5 7 159 MHz 10K NC CTC Gate Enable gt 15 1 Counter timer controller 6000 Series user s manual Note 82 54 is an extremely versatile component which has six modes of operation a Read Back command and a Counter Latch command The primary intent however is to use the 6020 CTC for providing periodic interrupts tothe CPU and not to discuss all functions associated with the CTC For further information refer Intel peripheral 82C54 data sheet or the NEC 71054 data sheet This section pro
179. t AH efh AL 021 DX ffffh Carry flag cleared if successful AL Port A data AH Port B data BL Port C data Carry flag set if error AL Error code This function is used to read from the first EZ 1 O i e the EZ I O that has the lower I O address when two EZ 1 0 chips are present on a board Programming example Inline assembly code for Borland C 3 1 unsigned char aData bData cData asm mov mov int mov ax 0ef02h dx 0ffffh 17h aData al 6 18 6000 Series user s manual EZ W O mov bData ah mov cData bl Initialize EZ I O 2 Function efh Subfunction 03h Purpose To set the directions and to program the initial values of an EZ I O port Callingregisters AH efh AL 03h DI Port A configuration XXXXXXXX XXXXXXxxB XXXXXXXX XXXXXXXXB BX B configuration XXXXXXxxB XXXXXXXX XXXXXXXXB CX Port C configuration XXXXXXXX XXXXXXxxB XXXXXXXX XXXXXXXXB DX ffffh Initial data for port A direction 1 gt output 0 gt input Initial data for port B direction 1 gt output 0 gt input Initial data for port C direction 1 gt output 0 gt input Return registers Carry flag cleared if successful Carry flag set if error AL Error code Comments This function is used to initialize the second EZ I O i e the EZ I O that has the higher I O address when two EZ I O chips are present on a board before normal use Programming example
180. t J 8 oF o OOOOOOOOOOOOOOOO00 OOOOOOOOOOOOOOO0O00 RESET Jg PO Uu J2 P Floppy disk drive port AUX I O port 6010 Installing a floppy disk drive with the 6010 on board FDD interface 1 Install the 6010 PC Microcontroller 2 Connect the floppy disk drive cable to 8 on the 6010 3 Floppy disk drives requiring 45V for example Octagon s 5814 are powered directly from the floppy port W2 2 4 must be enabled to supply internal 45V to a 5V only floppy drive Floppy drives requiring 12V must use an external power supply Do not install W2 2 4 if external power is supplied to the floppy drive 10 2 6000 Series user s manual External drives Hard disk drive The PC Microcontroller supports the 5800A and 5815 Floppy Hard Disk Drive Cards which support IDE type hard drives The hard drive BIOS is also induded in the PC Microcontroller BIOS Instructions for install ing either type of hard drive is explained below The PC Microcontroller supports the latest EIDE BIOS We highly recommend that this BIOS is used rather than the 5800A or 5815 BIOS Before you begin installing an off card hard drive seethe SETSSD section in the Setup programs chapter The SETSSD section provides instructions for setting the disk drive designation Y ou may use one of two methods to configure the system for a 5815 Both me
181. t and select the following options SETUP Power management ENABLED Time updated after suspend ENABLED Create a PMI file such as TEST PMI Includethe following commands in the TEST PMI file TEST PMI file pmi enable Y Enables the power management suspend 5 SUSPEND after 5 minutes of idling The qualified activities to prevent the system from entering the SUS PEND mode are keyboard video hard disk printer COM ports floppy drive IRQs and DRQs Specify the devices to be powered down in SUSPEND mode by entering the commands below suspend hdd Y Powers down the hard disk suspend fdd Y Powers down the floppy disk suspend COM 2 Y Powers down COM2 Specify the events to resume the system from SUSPEND mode keyboard resume Y Resumes the system from SUSPEND mode com1 resume Y Resumes the system from SUSPEND mode The qualified activities to resume the system from SUSPEND mode are keyboard video hard disk printer real time clock DRQs COM ports and IN accesses interrupts related to input devices When the real time clock is used toinitiate RESUME from SUSPEND enter rtc resume Y Resumes the real time dock from the SUSPEND mode An example program named WAKEIRQS is included in the V EXAMPLES directory on the PC Microcontroller utility disk This program powers the CM OS clock to generate an I RQ8 after a 30 second delay During the delay the system halts After 30 seconds the system resumes from SUSPEND
182. t jumpered 120H not jumper ed jumpered 340H jumpered jumpered 140H default pins jumpered On the 6040 PC Microcontroller ports A B and C can be programmed as all inputs all outputs or individually as inputs or outputs On the 6050 PC Microcontroller port B can only be programmed as outputs while ports A and C can be programmed as inputs or outputs You can alter which bits are inputs or outputs by writing a control command to the control register in the EZI O When a lineis configured as an output it can sink a maximum of 15 mA at 0 4V or can source 15 mA at 2 4V 6 13 EZ 6000 Series user s manual Table6 11 EZ I O port addressing Port I O address A Base address B Base address 1 C Base address 2 Control register Base address 3 Port B can only be configured as output on the 6050 The output level is inverted from input Thisis dueto the inverted output hi gh current driver used on the 6050 Consider thesefactors when using and programming this port Programming EZ I O Program the EZ I O chip as follows 1 Configurethe bit directions 2 Writeto port A B or C with the desired level or read the bit level from the desired port Configuring EZ I O Configure the EZ I O chip as follows 1 Write a 2 to the control register base address 3 This places the I O chip into the directi on mode OUT 143H 2 control register 2 Set the direction of each bit
183. t of IDLE clock if IRQ4 occurs Enables reset of IDLE clock if IRQ5 occurs Enables reset of IDLE clock if IRQ6 occurs Enables reset of IDLE clock if IRQ7 occurs Enables reset of IDLE clock if IRQ8 occurs Enables reset of IDLE clock if IRQ9 occurs Enables reset of IDLE dock if IRQ10 occurs Enables reset of IDLE dock if IRQ11 occurs Enables reset of IDLE dock if IRQ12 occurs Enables reset of IDLE dock if IRQ13 occurs Enables reset of IDLE dock if IRQ14 occurs Enables reset of IDLE dock if IRQ15 occurs 18 6 6000 Series user s manual CPU power management If DRQ reset idle is set to YES then the following options are specified drqO reset idle Y N Enables reset of IDLE clock if DRQ0 occurs drq1 reset idle Y N Enables reset of IDLE clock if DRQ1 occurs drq2 reset idle Y N Enables reset of IDLE clock if DRQ2 occurs drq3 reset idle Y N Enables reset of IDLE clock if DRQ3 occurs drq5 reset idle Y N Enables reset of IDLE clock if DRQ5 occurs 9 reset idle Y N Enables reset of IDLE clock if DRQ6 occurs N drq7 reset idle Y Enables reset of IDLE clock if DRQ7 occurs Suspended devices in SUSPEND mode Certain devices need to be powered down while the system is in the SUSPEND mode These devices are configured in the PMI file of the PMISETUP program suspend HDD Y N Suspends hard disk drive suspend FDD Y Suspends floppy disk drive suspend LPT Y Suspends LP T suspend VIDEO Y N Sus
184. ternal drives Description Note Note Note You can use your PC Microcontroller with one or two floppy disk drives and or a hard disk drive This chapter includes installation and opera tion instructions for each device Also refer to the instruction manuals included with each device The 6010 PC Microcontroller has an on board floppy drive interface at J 8 and a hard drive interface at J 7 See the sections Floppy disk drive interface on the 6010 and the Hard disk driveinterface on the 6010 in this chapter for more information For each of the devices below you must first install the PC Microcontroller into the Micro PC backplane Usethe on board IDE BIOS when using a 5815 disk drive card with a 6050 6040 6030 or 6020 PC Microcontroller The 5815 is not compatible with the 6010 PC Microcontroller Floppy disk drives Y ou can add one 1 44 MB floppy drive with the 5815 Disk Drive Card the 5815 also supports a 2 5 IDE hard drive or usethe on card multi functional parallel port at the AU X 1 0 port The multifunctional paral lel port is brought out to the breakout board through the AU X 1 port Refer to the AUX 1 O chapter for setting up and using the parallel port and a floppy drive with the PC Microcontroller Installing a floppy disk drive 1 2 Install the PC Microcontroller When adding an off card floppy disk drive install the 5815 Disk Drive Card Follow the instructions included with this prod
185. the hard drive to allow you to boot from SSD issue the following command SETSSD SSDO BEFORE In order to make hard drives first and SSDs second issue the following command SETSSD SSDO AFTER For more information see the SETSSD section the Setup programs chapter 19 2 6000 Series user s manual CAMBASIC Chapter 20 CAMBASIC Note Power management should be disabled when using CAM BASIC Introduction All PC Microcontrollers in the 6000 Series are programmable in Octagon s version of an industrial programming language specifically designed for embedded applications CAMBASIC is a data acquisition and an industrial control language which is easy to use fast and multitasking CAMBASIC has the ability to communi cate directly to all on card 1 0 including digital analog timing and interrupt This eliminates the need to write hardware drivers which means you can spend your time writing the applications software CAMBASIC is optimized for a 32 bit processor and supports 133 QuickBASI C compatible commands CAMBASI C s industrial power comes from the 93 additional commands contained in this language CAMBASI C s major strengths include an extensive vocabulary of indus trial BASIC commands along with a list of built in help messages which makes the language self documenting Since the language is syntax compatible with languages like Microsoft Qui ckBASIC there is no need fo
186. thods are described below Disabling 5815 or 5800A BIOS and using the PC Microcontroller IDE BIOS Note Table 10 1 This method allows the use of an IDE controller such as the 5815 or 5800A It involves disabling the 5815 5800A BIOS and using the PC Microcontroller IDE BIOS The 15 as follows For the 5815 Using SETUP configure the PC Microcontroller for one hard drive by running SETUP and setting the appropriate options Configure the 5815 to disable the on card BIOS See the 5815 product sheet for the proper jumper settings on the 5815 Bus IRQ5 is redirected to CPU For the 5800A Using HDSETUP COM configure the 5800A to have 0 hard drives See the 5800A product sheet for more information Using SETUP configure the PC Microcontroller for one hard drive by running SETUP and setting the appropriate options Hard drive setup No of drives in HDSETUP IRQ setting in No of drives in CPU 5800A 5815 HDSETUP SETUP lor2 IRQ14 0 0 N A lor 2 External drives 6000 Series user s manual Using the hard drive controller BIOS and disabling the PC Microcontroller BIOS This method applies when using a 5815 or 5800A It involves using the hard drive controller BIOS and disabling the PC Microcontroller BIOS 1 Using SETUP configurethe PC Microcontroller for 0 hard drives 2 Run HDSETUP provided with the 5815 or 5800A to configure the hard drive con
187. tors and jumper blocks for the functions on your particular model in the 6000 Series of P C Microcontrollers Table1 2 6000 Series connectors Reference designator 6010 6020 6030 6040 6050 COM1 J3 J3 J3 J3 J3 COM2 J4 J4 J4 J4 J4 COM3 1 COMA J7 AUX I O J2 J2 J2 J2 J2 Power J5 J5 J5 J5 J5 Battery J6 J6 J6 J6 J6 Analog I O J7 USESETUP W1 W1 W1 W1 W1 EZI O1 JIW3 J1iW2WA4 J1W2 EZI O2 D A W3 VorangeselectA W2 wo w2 w2 w2 PC 104 Ji Floppy J8 Hard drive J7 6000 Series user s manual Quick start Chapter2 Quick start This chapter covers the basics of setting up a PC Microcontroller sys tem The following topics are discussed m Panel mounting stacking or installing the PC Microcontroller into an Octagon card cage m Setting up a serial communications console 1 link between the PC Microcontroller and your desktop PC m Downloading files to the PC Microcontroller and running a program from the virtual drive WARNING The PC Microcontroller may not be installed ina PC These cards are designed to be independent CPU cards only not accelerators or coprocessors Hardware installation WARNING The PC Microcontroller card contains static sensitive CMOS components The card is most susceptible to damage when it is plugged into a card cage The
188. troller card for the proper hard drive parameters Also set the IRQ to IRQ1A 3 If using the 5815 verify that the jumper setting enables the on card BIOS Seethe 5815 product sheet for proper jumper positions Hard disk drive interface on the 6010 The 6010 PC Microcontroller supports one standard EIDE or standard IDE hard drive via a 44 pin connector at J 7 Installing a hard disk drive with the 6010 on board HDD interface l Install the 6010 PC Microcontroller 2 Connect the Octagon hard disk drive cable P N 4080 to J 7 on the 6010 WARNING Failure to properly orient the hard drive cable may damage the 6010 hard drive and cable 97 9 00000000000000000 00000000000000000 00000000000000000 5 0000000000000000000000 J2 JZ Pin 1 7 hard disk drive port 6010 10 4 6000 Series user s manual Video Chapter11 Video Description You can use a video card with a monitor and a keyboard with the PC Microcontroller instead of using your P C keyboard and monitor over a serial communications link The keyboard and speaker lines are brought out to the breakout board for setting up and using a keyboard and speaker with the PC Microcontroller Any PS 2 compatible key board may be used Using a video monitor and keyboard Y ou will need the following equipme
189. ty disk PC SmartLINK with manual Your PC Refer tothe Miscellaneous appendix if you are making your own serial cable or using other non Octagon components Toinstall the PC Microcontroller Refer to the component diagram in the appropriate product specific appendix for the location of various connectors before installing the PC Microcontroller Figure2 1 Edge connector orientation A31 Micro PC Passive Backplane A1 Card Edge Pins A31 amp B31 PC Microcontroller Card Edge Pins A1 amp B1 2 Attach the Octagon power module to the card cage following the instruc tions supplied with the power module 3 Make sure power to the card cageis OFF 2 2 6000 Series user s manual Quick start Figure 2 2 5 Note Slidethe PC Microcontroller into the card cage The ROM BIOS label on the card should face away from the power supply See Figure 2 2 for an illustration of a PC Microcontroller in a Micro PC card cage Populated Micro PC card cage WARNING Plugging in the card incorrectly will destroy the card Connect one end of a VTC 9F cable to the null modem adapter Connect the other end to COM 1 on the PC Microcontroller You must use COM 1 on the PC Microcontroller in order to establish a serial communications consolel O link with your If your PC has a 9 pin serial connector connect the null modem adapter to
190. uct When adding an on card floppy disk drive install the disk drive via the AUX 1 0 port on the PC Microcontroller See the AUX 1 O chapter for more information Plug the card cage power cable into an AC outlet Turn on the power supply When using the on card floppy drive you must route external power for the floppy drive Run SETUP set the LPT mode to Floppy disk the number of floppy drives to 1 and set the type i e size of the floppy External drives 6000 Series user s manual Note Twodrive designators A and B will be assigned regardless of how many drives you specify in SETUP 5 If in SETUP you entered 0 drives access to either A or B will cause the PC Microcontroller to return an error message If you want to boot from the floppy disk using your own DOS or a full ROM DOS refer to the section Adding operati system startup files in the Saveand run programs chapter Floppy disk drive interface on the 6010 The 6010 PC Microcontroller supports one or two 3 5 or 5 25 floppy drives via a 34 pin IDC connector at J 8 Both floppy drives use DMA channel 2 WARNING 8 and J 2 34 IDC connectors and may be mistaken for each other due to their physical similarities Do not connect the floppy disk drive into J 2 the AUX I O port or severe damage will occur to the floppy disk drive Be certain that you connect the floppy disk drive to the interface a
191. ud and have selected the correct serial port for communicating with your PC Refer tothe PC SmartLINK manual for information on selecting the baud rate If you are using communications software other than PC SmartLINK Octagon cannot guarantee the operation Make sure that the software parameters are set to match those of the PC Microcontroller 9600 baud 8 bits 1 stop bit and no parity 22 1 Troubleshooting 6000 Series user s manual System generates a BIOS message but locks up when booting from SSD0 1 Remove the jumper from the S position at W1 and reboot When PI CO FA prompts you select SSD0 as the first drive and SSD2 as the second drive 2 Display the directory of SSD0 and verify that all the necessary boot files exist Copy any missing files to SSDO 3 If nofiles are missing remake SSDO to overwrite any files which may have become corrupted In addition you may want to do a PFORMAT and SYS to SSDO PICO FA reports a drive but issuing a DIR generates an error message 1 The SSD may not be formatted Run either of the following PFORMAT Hn or PFORMAT Hn m where n represents the hard drive number For more information see the Save and run programs chapter PICO FA does not report the drive Run SETSSD and make sure it is correct 2 sure that the X position at W1 is jumpered or that PI COFA SYS isin your CONFIG SYS file of your floppy hard drive 3 Install a jumper
192. unter ti mer modes section Programming the counter timers Each counter must be programmed with the desirable mode and then with an initial count before it can beused This is accomplished by writing a control word and then an initial count The control word is written in the form of a formatted byte to the CTC control register Base 3 15 3 Counter timer controller 6000 Series user s manual Example OUT amp 153 76 Writes a 76h as a control word tothe CTC control register and configures a selected counter OUT amp 150 amp AA Writes the count value of AAH tothe counter The counter is determined in the 76h control word Examples of a CTC control word 00111010 3A hex Select Counter Counter 0 RW L east significant byte then most significant byte Mode 5 hardware triggered strobe BCD Binary counter 16 bits 01110110 76 hex Select Counter Counter 1 RW Least significant byte then most significant byte Mode Mode 3 square wave generator BCD Binary counter 16 bits 10110100 B4 hex Select Counter Counter 2 RW L east significant byte then most significant byte Mode Mode 2 rate generator BCD Binary counter 16 bits Examples of the count value A count value is then loaded after the counter has been configured amp 4800 is equal to 18432 decimal If the 1 843 MHz dock is divided by this value the result will be 100 Therefore if counter 2 is loaded with this
193. ure provides a simple low cost and effec tive method of rapidly implementing an RS 422 485 network An Octa gon network interface module and an opto isolated RS 232 to RS 422 485 converter Octagon P N 4820 is required to convert RS 232 signals to RS 422 485 Network mode N position at W1 not jumpered configures COM 2 to communicate at 38 4 K B respond to Optomux type commands respond to Octagon commands and automatically perform network housekeeping functions 5 5 Serial ports 6000 Series user s manual Up to 32 nodes with valid ID range from 0 to FF are supported ID 015 reserved for the host ID FF is reserved for a new node that connects to the network and has not yet been assigned an ID Both input and output ring buffer size is 2 KB Host remotes An application may implement a node as either the host node or as a remote node in an RS 422 485 network There can be up to 32 nodes without any bus repeaters in the network A host is referred to as the node that initiates a communication while a remote is referred to as a node that is addressed by the host The host is responsible for initiating communication maintaining network registration and providing housekeeping tasks with other nodes There can only be one network host Remotes cannot initiate a communication They can only respond to messages that are addressed to them from the host While there can be many remotes all
194. vides an overview of the 6020 CTC A programming example 6020 CTC CPP is included on the 6020 utility disk which demonstrates using CTC counters 0 and 1 to generate periodic inter rupts To adequately explain the counter timer controller the 6020 CTC is presented in three functional sections m Address mapping m Interrupts W Counter timers Address mapping Table 15 1 Note The base address of the CTC is jumper selectable Refer to Table 15 1 for the base address selection CTC base address selection 6020 IA IB J1 EZI O1 J7 EZI O2 CTC I O W2 7 8 W29 10 address address address not not 320H 328H 330H jumpered jumpered jumpered not 120H 128H 130H jumpered not jumpered 340H 348H 350h jumpered jumpered jumpered 140H 148H 150H default jumpers on Selecting a different I O address also selects a different 1 0 address for the EZ I O digital ports For information on EZ I O refer tothe EZ O section in the EZ 1 O chapter It is important that no other devices in the system be set for access at the same I O locations as the 6020 or EZI O ports The mapped locations consist of four separate I O addresses 15 2 6000 Series user s manual Counter timer controller The following addresses each access a different function of the CTC m Base40 counter 0 m Base l CTC counter 1 m 2 CTC counter 2 m Base 3 CTC control register
195. wire pins DuPont BERG 499252 5 J 7 analog 1 port 20 pin shrouded connector Receptacle AMP 746288 4 Strain relief AMP 499252 2 D 3 6040 technical data 6000 Series user s manual Component diagram FigureD 1 6040 component diagram Analog 20 pin EZ 26 pin Battery RESET J7 Win n Phoenix PICO tm Flosh Array z 3 3 C 1997 OCTAGON SYSTEMS 604 5 ni ni ae IIIIIIICIIIIIIIIIII UYS EN nimii im HHIH 1 s tnu mnia U11 PLCC A31 E aye niii niil Wii wa w2 Sum mm m om mm oum mm wA I 0000000000 00000000000000000 0000000000 00000000000000000 J2 pu 0000000000 nooo COM2 0000000000 10 pin 57611 uit sm sm m a d C 8 mo mz 015 i mum EN num qn z 019 I E ETT Phoenix PICO tm BOS Tor 386 Liscense Lobel Poenis 1995 1996 1581 Wn
196. x Note Table 6 3 Table 6 4 6020 pull down pull up EZ I O configuration Configuration Description W3 2 4 W3 4 6 W3 7 9 W3 7 8 W3 1 3 W3 3 5 All lines in Port A are pulled to Gnd through 10K Ohm All lines in Port A are pulled to 45V through 10K Ohm All lines in Port B are pull ed to Gnd through 10K Ohm All lines in Port B are pulled to 45V through 10K Ohm All lines in Port C are pulled to Gnd through 10K Ohm All lines in Port C are pulled to 45V through 10K Ohm default pins jumper ed 6020 pull up pull down EZ 1 2 configuration Configuration Description W42 4 W4 4 6 W4 7 9 W4 7 8 W4 1 3 W4 3 5 All lines in Port A are pull ed to Gnd through 10K Ohm All lines in Port A are pulled to 45V through 10K Ohm All lines in Port B are pull ed to Gnd through 10K Ohm All lines in Port B are pulled to 45V through 10K Ohm All lines in Port C are pulled to Gnd through 10K Ohm All lines in Port C are pulled to 45V through 10K Ohm default pins jumper ed 6020 Organization of ports The two EZ I O digital ports have 241 0 lines connected to J 1 and 24 lines connected J 7 Each of the 24 lines are configured into three groups consisting of 8 lines each Any of thelines at ports A B or C can be configured individually as inputs or outputs Immediately after reset each 1 line becomes an input 6 3 EZ 6000 Series user s manual F
Download Pdf Manuals
Related Search
Description description synonym description meaning description generator description box description of eczema description of shingles rash description of goods description in spanish translation description of rash description ai description spelling description of heaven description text structure description of jesus in the bible description abbreviation desc description of eczema rash description of poison ivy rash description of scabies rash description of heaven in the bible description of hand foot mouth rash description logic description game description picture description de poste description ideas
Related Contents
MANUEL D`ISTRUCTIONS GRILLADE À GAZ FR 第5期第5回理事会議案について User Manual EN DATACARD® SERVICE ANNOUNCEMENT Receive Sensitivity Characterization of the PolySat Satellite Thermoflex™ - Dentsply International 11_OrderREVOカタログ(4225KB) User Manual SPEEFLO Hydra Pro IV™ USER MANUAL FOR PDA HP iPAQ 614C Copyright © All rights reserved.
Failed to retrieve file