Home

USB 8255 DIO User Manual

image

Contents

1. Service Inc be liable for direct indirect special incidental or consequential damages resulting from any defect or omission in this manual PC Hardware amp Service Inc reserves the right to revise this document and to make changes from time to time in the content hereof without obligation of PC Hardware amp Service Inc to notify any person or persons of such revision or changes Intel is a registered trademark of Intel Corporation Cypress is a registered trademark of Cypress Corporation Microsoft Windows and Windows NT are registered trademarks of Microsoft Corporation All other products are the trademarks or registered trademarks of their respective holders Printed in the USA August 22 2002 USB 8255 DIO Board User s Guide Confidential Page 2 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 1 Introduction 1 1 Overview of the USB 8255 DIO Board cccecee cece e ener eee eens 1 1 1 USB 8255 DIO Board Features ccccc eee eee eee teen eeeeeenaeens 1 1 2 USB 8255 DIO Board System Architecture eeeeeee eee 1 1 3 USB 8255 DIO Board Software Architecture eeeeee eee 1 2 About this User s Guide ccccccceecce eee ee reese seen sean eeeaeeeeanennanenannes 1 2 1 Purpose of this Document ccc ceeee cette eee e eee tees teeta 1 2 2 CONVENTIONS 0 0 cece eee e cece reece eee ee nnana n A oo o eaea 1 2 3 Chapter OVerviews cc
2. going to change the USB board function or make your own USB device USB 8255 DIO Board User s Guide Confidential Page 5 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 2 Preparing the USB 8255 DIO Board for Operation 2 1 Unpacking the USB 8255 DIO Board Warning The Hammerhead PCl contains electro static discharge ESD sensitive devices Be sure to follow the standard handling procedures for ESD sensitive devices taking proper precautions to ground yourself and the work area before removing the board from its anti static bag If you fail to follow proper handling procedures you could damage the board To unpack the USB 8255 DIO Board 1 Carefully remove the board from the shipping box Save the box and packing materials in case you need to reship the board 2 Remove the board from the plastic bag Observe all precautions described in the warning above to prevent damage from electro static discharge ESD 3 Carefully examine the board checking for damage If the board is damaged do not install it Call PC Hardware amp Service technical support 4 Check the items shipped with the board standard packing includes USB board USB cable and software floppy Windows98 2000 driver and example source code inside If missing any items please call the seller distributor 2 2 Installing the Board and Its Software 2 2 1 Installing the USB 8255 DIO Board in a PC To setup an USB device in windows is really a p
3. only Specify a location Put the software floppy disk in drive A Click Browse Change the directory to A Click Next gt Step5 USB 8255 DIO Board User s Guide Confidential Page 7 08 23 02 PC Hardware amp Service Inc www pchardwares com Add New Hardware Wizard Windows driver file search for the device 8255 DIO USB Board Windows is now ready to install the best driver for this device Click Back to select a different driver or click Next to continue Location of driver AA 8255 INF The Hardware Assistant must find USB 8255 DIO Board as shown in the previous picture If not most probably the path you chose in the previous step is wrong Then click lt Back and change the path If Hardware Assistant has found the driver without any problems click Next gt If it can t find any driver for the board the floppy may be damaged please download a new driver from www pchardwares com Stepo Add New Hardware Wizard 8255 DIO USB Board Windows has finished installing the software that your new hardware device requires You have to come up with this dialog Click Finish to finish driver installation After than Setup manager configures your device and downloads necessary firmware applications sequentially Later it uploads the drivers it installed previously and installs another driver which will be stable in the system However no user response is neede
4. these steps since everything is handled automatically Step 8 Go to Control Panel gt System gt Hardware gt Device Manager Be sure that you can see the XC2S board in the list of devices as shown below USB 8255 DIO Board User s Guide Confidential Page 12 08 23 02 PC Hardware amp Service Inc www pchardwares com S Device Manager l Action vew anm e 2 a an 3 Floppy disk controllers amp Floppy disk drives g3 IDE ATAJATAPI controllers 3 Keyboards TA Mice and other pointing devices S Monitors EF Network adapters F Ports COM amp LPT amp SCSI and RAID controllers 2 Sound video and game controllers lll System devices Universal Serial Bus controllers 8255 DI0 USB Board Generic USB Hub Intel R 82801B4 B4M USB Universal Host Controller 2442 Intel R 82801B4 B4M USB Universal Host Controller 2444 USB Root Hub USB Root Hub Fe E E E E E E EE 2 2 2 Installing the USB 8255 DIO Windows Example Source Code After The Windows driver is successfully installed we can copy all the examples VC source file to hard disk such as c USB8255 2 3 Testing the Installation There is a USB 8255 DIO board test program called USBflash exe comes with the board which will flash the LED of the board After windows loads the driver change board jump1 to position 2 and 3 Factory default setting is position 1 an
5. use the USB 8255 DIO board the development tool is very simple just Microsoft VC the board comes with the windows98 2000 drivers and some example VC source The software architecture diagram is below For some user who wants to change the USB 8255 DIO function you need more tools such as Cypress CY7C63001 assembly compiler chip programmer for USB controller firmware and Windows98 DDK and WinDK for Windows Driver development 1 2 About this User s Guide This section provides an overview of each chapter s content and it describes certain variations in text and naming conventions we have used throughout the manual 1 2 1 Purpose of this Document This user s guide covers hardware of the USB 8255 DIO Board board which supports 24 Bit programmable Digital O through an easy to use USB 1 1 port The purpose of this document is to provide details about the USB 8255 DIO Board s major hardware components to describe how to install and properly operate the USB 8255 DIO Board and to discuss important issues that relate to programming the board We assume that you are already familiar with the Windows operation and some basic programming skill of Microsoft VC 1 2 2 Conventions We have used the following conventions throughout this user s guide 1 2 3 Chapter Overviews Chapter 2 Preparing the USB 8255 DIO Board for Operation This chapter describes the tasks that you must perform to prepare your board for installation install
6. you are searching on a floppy disk or CD ROM drive insert the floppy disk or CD before clicking Next Optional search locations I Floppy disk drives T CD ROM drives IV Specify a location Microsoft Windows Update lt Back Cancel Check Specify a location Click Next Step 5 Click Browse Change directory to A Click OK Step 6 Found New Hardware Wizard Driver Files Search Results Fea ta The wizard has finished searching for driver files for pour hardware device SY The wizard found a driver for the following device a DIO 820554 USB Board Windows found a driver for this device To install the driver Windows found click Next 4 a 8255 inf lt Back Cancel Click Next USB 8255 DIO Board User s Guide Confidential Page 11 08 23 02 PC Hardware amp Service Inc www pchardwares com Step 7 Found New Hardware Wizard Completing the Found New Hardware Wizard Q 8255 D10 USB Board Windows has finished installing the software for this device To close this wizard click Finish lt Back Cancel You have to come up with this dialog Click Finish to finish driver installation After than Setup manager configures your device and downloads necessary firmware applications sequentially Later it uploads the drivers it installed previously and installs another driver which will be stable in the system However no user response is needed during
7. 55 DIO Board Programming The Read Write timing to the 82C55A PPI is generated by the USB Microcontroller the user application to this functions are The physical 2 USB Microcontroller Ports Access Function LONG USBReadPort HANDLE hUsb USHORT portNumber PUCHAR portData LONG USBWritePort HANDLE hUsb USHORT portNumber UCHAR portData Where hUsb USB Board Handle PortNumber USB MCU physical Port O PortO 1 Port1 PortData USB MCU physical Port data The 8255 10 Ports Access Function LONG 8255ReadPort HANDLE hUsb USHORT portNumber PUCHAR portData LONG 8255WritePort HANDLE hUsb USHORT portNumber UCHAR portData Where hUsb USB Board Handle PortNumber 8255 Port O PortA 1 PortB 2 PortC 3 Control Register PortData 8255 Port data sample programs are in the software floppy USB 8255 DIO Board User s Guide Confidential Page 17 08 23 02
8. PC Hardware amp Service Inc www pchardwares com USB 8255 DIO User Manual General Purpose Digital O0 Board Version 1 0 Author Yan Wang Email support pchardwares com Date August 22 2002 USB 8255 DIO Board User s Guide Confidential Page 1 08 23 02 PC Hardware amp Service Inc www pchardwares com PC Hardware amp Service Inc 1124 Somerset Dr San Jose CA 95132 Phone 408 272 5568 FAX 408 272 5568 If you have comments or suggestions about this manual or find any errors in it please contact us at Support pchardwares com For technical support contact us using any of the following methods Phone 408 272 5568 FAX 408 272 5568 E mail support pchardwares com PC Hardware amp Service Inc also maintains the following web sites http www pchardwares com Contains product information technical notes support files available for download and answers to frequently asked questions FAQ ftp ftp pchardwares com Contains technical notes and support files Login aS anonymous and use your e mail address for the password USB 8255 DIO User Manual Version 1 0 2001 PC Hardware amp Service Inc All Rights Reserved The information in this manual has been carefully checked and is believed to be accurate and reliable However PC Hardware amp Service Ine assumes no responsibility for any inaccuracies errors or omissions that may be contained in this manual In no event will PC Hardware amp
9. Wizard This wizard helps you install a device driver for a hardware device To continue click Next lt Back Next gt Cancel Click Next Step3 Found New Hardware Wizard f Install Hardware Device Drivers Sates device driver is a software program that enables a hardware device to work with SY an operating system This wizard will complete the installation for this device a DIO 82C554 USB Board device driver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the installation click Next What do you want the wizard to do Search for a suitable driver for my device recommended Display a list of the known drivers for this device so that can choose a specific driver lt Back Cancel Check Search for a suitable driver for my device recommended Click Next Step4 USB 8255 DIO Board User s Guide Confidential Page 10 08 23 02 PC Hardware amp Service Inc www pchardwares com Found New Hardware Wizard Locate Driver Files ae Where do you want Windows to search for driver files SY Search for driver files for the following hardware device a DIO 820554 USB Board The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Next If
10. cee cee cette eee eee tee ee ete etna teens 1 3 Other Helpful Documents and TOols ccce cece eens eee teeteeeeeneeas 1 3 1 Documents for Further Reference ce0eP eee eeeeeeeeeiaes 1 3 2 Software Development Tools beeeeeeee eee ene e teeters Chapter 2 Preparing the USB 8255 DIO Board for Operation 2 1 Unpacking the USB 8255 DIO Board 0 fivbe eee ee cee ae eee ne eens ete ene naees 2 2 Installing the Board and Its Software c eevee cece eee beac eens ee Pees eeeeeeeneees 2 2 1 Installing the USB 8255 DIO Board in a PC oe cece eee eee eres 2 2 2 Installing the USB 8255 DIO Windows Example Source Code 2 3 Testing the Installation n T E baste geese eeeeeeeeeeeeeneneanes Chapter 3 Overview of the Hardware Components 3 1 Overview USB 8255 DIO Board cc cece ee te nee e eee gece eeee eens 3 2 Cypress CY7C63001 USB Controller cece ccebe cece eee eee tees eae 3 3 Intel 82C55A Programmable Peripheral Interface 0055 3 4 Jumps and LEDS 00 eee ie eRe gh eee ee cece eee eee eee eeees 3 5 Digital IO connecten S a E n Chapter 4 Programming Details for the CY7C63001 USB Controller 4 1 Overview of the CY7C63001 USB cece eee eect eee teeta teens 4 2 Function of the CY7 63001 USB cece cece cece eens esses eeaeeeeeneeeenes Chapter 5 Programming Details for Intel 82C55A PPI 5 1 Overview of the 82C55A PPI ccc ccce cece cec
11. d 2 then run USBflash exe if the LED of the board flash then the board is OK USB 8255 DIO Board User s Guide Confidential Page 13 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 3 Overview of the Hardware Components This chapter describes the board and major part s function 3 1 Overview USB 8255 DIO Board The board is used to connect to PC USB board then Windows software can read write the 3 Digital IO ports and 1 configuration port It can be used to replace the PCI ISA Digital 1O board as USB connection can give you great features such as plug and play No dedicated power small footprint and intelligent control USB 82C55A Controller PPI JO N UUUOD OIC 3 2 Cypress CY7C63001 USB Controller The CY7C63001 USB controller is the major part in the board it is 8 bit RISC MCU with an integrated Serial Interface Engine SIE and some standard MCU parts such as 128 byte RAM 4K ROM 12 bit GPIO etc 3 3 Intel 82C55A Programmable Peripheral I nterface The 24 Bit Digital IO was connected to Intel 82C55A programmable peripheral interface using this chip can give many customer confident and save some program change as the chip is very popular chip in the controller industry it was used for a long time 3 4 Jumps and LEDs There is a Jump and Green LED in this board for the board status and testing purpose H 2 Power LED Green when board has 5V power __ Default 3 est Board Run USBF
12. d during these steps since everything is handled automatically Step 7 Go to Control Panel gt System gt Device Manager Be sure that you can see the USB 8255 DIO Board in the list of devices as shown below USB 8255 DIO Board User s Guide Confidential Page 8 08 23 02 PC Hardware amp Service Inc www pchardwares com General Device Manager Hardware Profiles Performance View devices by type C View devices by connection Floppy disk controllers amp Hard disk controllers we Keyboard w Monitors Th Mouse H Network adapters Other devices 7 Ports COM amp LPT Sound video and game controllers m System devices amp Universal Serial Bus controllers 255 DIO USB Board amp Standard Universal PCI to USB Host Controller amp Standard Universal PCI to USB Host Controller GP USB Root Hub GP USB Root Hub Properties Refresh Remove Print F F FH E E E Setup for Windows 2000 Step1 Plug your USB 8255 DIO board to an empty USB connector through an USB Cable Step2 Since USB 8255 DIO board is Plug and Play it will be recognized by the operating system The New hardware found dialog would appear Than Add New Hardware Wizard will appear USB 8255 DIO Board User s Guide Confidential Page 9 08 23 02 PC Hardware amp Service Inc www pchardwares com Found New Hardware Wizard ig Welcome to the Found New Hardware
13. e eee eeeeeeeeeeeeeeaeeeeneeeens 5 2 Registers of the 82C55A PPI cc cecec cece cent eee ee eens eeaeeeeaeeeaaees Chapter 6 USB 8255 DIO Board Programming USB 8255 DIO Board User s Guide Confidential Page 3 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 1 Introduction 1 1 Overview of the USB 8255 DIO Board The USB 8255 DIO is a cost efficient and easy to use solution for Digital IO industry One side of the board is a play amp play USB the other side is a programmable 24 bits digital 1O that was divided into 3 ports each port s working mode can set individually 1 1 1 USB 8255 DIO Board Features Universal Serial Bus 1 1 Connection No dedicate power needed power comes from the USB cable Intel 82C55A Programmable Peripheral Interface chip Programmable 24Bits 3 Ports Digital 10 each port has 8 bits e Industry standard 50 Pin Digital IO connector e Windows98 2000 drivers e Easy to use Windows example source code 1 1 2 USB 8255 DIO Board System Architecture Following is the board diagram Host use the differential USB signal communicating with USB controller Host can read write the 12bit GPIO and generate 82C55A mode setting and read write time The USB 8255 DIO board includes Cypress CY7C63001 USB controller tntel82C55A programmable peripheral interface 50 pin industry standard Digital 1O connector and a test jump LED 1 1 3 USB 8255 DIO Board Software Architecture For the end user who want to
14. for use with all Intel and most other microprocessors It provides 24 I O pins which may be individually programmed in 2 groups of 12 and used in 3 major modes of operation The 82C55A is pin compatible with the NMOS 8255A and 8255A 5 In MODE O each group of 12 I O pins may be programmed in sets of 4 and 8 to be inputs or outputs In MODE 1 each group may be programmed to have 8 lines of input or output 3 of the remaining 4 pins are used for handshaking and interrupt control signals MODE 2 is a strobed bi directional bus configuration Logic Block Diagram is below 5 2 Registers of the 82C55A PPI The Intel 82C55A has control register this register determines the 82C55A working mode and each port direction When Add 1 0 0x3 CS 0 the control register was addressed and the control byte is define as below D7 Mode Set flag 1 Active Group A D6 D5 Mode Selection 00 Mode0 01 Model 1X Mode2 D4 PortA Control 1 Input O Output D3 PortC UP Control 1 Input O Output Group B D2 Mode Selection 0 Mo ode0 1 Model D1 PortB Control 1 Input O Output DO PortC LO Control 1 Input O Output If we want to set ModeO and all port Input we need to set the control register with 10011011 if we want to set ModeO and all ports output the write 1000000 to the control register USB 8255 DIO Board User s Guide Confidential Page 16 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 6 USB 82
15. lash exe will flash the LED Testing None LED Left open LED not used J H 3 Shor PA 0 to GND Danger Note Short Pinl 3 may damage 82C55A please don t connect them 3 5 Digital IO connector The 50 Pin DIO connector is standard head connector its pin assignment is below Assignment Pin Pin Assignment Pin Pin 5 Ground 7 9 roun Porc PC3 9 Ground Ground PortB PB5 Ground S BIR ju 1 W1W W W iN N O 1D H IM CO JOJO R PortA PA7 33 Ground PortA PAG 35 Ground Porta PAS 37 Ground Porta PA4 39 Ground Porta PA3 41 Ground Porta PA2 43 Ground 4 PortA PA1 Ground PortB PB4 Ground PortA PAO 47 PortB PB3 Ground VDC 5V 49 USB 8255 DIO Board User s Guide Confidential Page 14 08 23 02 N POPP PP IN JH JAS Alp JAIN O o joj NO alsa oa a ojojo PC Hardware amp Service Inc www pchardwares com Chapter 4 Programming Details for the CY7C63001 USB Controller For detail information please read Cypress CY7C63001 Datasheet 4 1 Overview of the CY7C63001 USB The CY7C63001 is an 8 bit RISC One Time Programmable OTP microcontroller with a built in 1 5 Mbps USB serial interface engine The microcontroller features 35 instructions that are optimized for USB applications There is 128 bytes of onboard RAM available incorporated into each microcontroller The Cypress USB Controller accepts a 6 MHz ceramic resonator or a 6 MH
16. leasant work you don t need to turn off the computer just plug the USB cable in the PC then windows device manager will setup the device for you but please have the software floppy ready The setup steps is below Setup for Windows 98 Step1 Plug your USB 8255 DIO board to an empty USB connector through an USB Cable Step2 Since USB 8255 DIO board is Plug and Play it will be recognized by the operating system The New hardware found dialog would appear Than Add New Hardware Wizard will appear This wizard searches for new drivers for USB Device A device driver is a software program that makes a hardware device work Cancel Click Next gt USB 8255 DIO Board User s Guide Confidential Page 6 08 23 02 PC Hardware amp Service Inc www pchardwares com Step3 A What do you want Windows to do Search for the best driver for your device Recommended C Display a list of all the drivers in a specific location so you can select the driver you want Choose Search for the best driver for your device Recommended and click Next gt Step4 Add New Hardware Wizard Windows will search for new drivers in its driver database on your hard drive and in any of the following selected locations Click Next to start the search I Floppy disk drives IT CD ROM drive M Microsoft Windows Update M Specify a location ja v lt Back Next gt Cancel Check
17. the software for the board install the board and test the installation Chapter 3 Overview of the Hardware Components USB 8255 DIO Board User s Guide Confidential Page 4 08 23 02 PC Hardware amp Service Inc www pchardwares com This chapter discusses the board s architecture and also shows the location of the USB 8255 DIO Board s major components and connectors and briefly discusses their function Chapter 4 Programming Details for the CY7C63001 USB Controller This chapter discusses the board s most important comportment CY7C63001 USB Controller Chapter 5 Programming Details for Intel 82C55A PPI This chapter provides programming details for the Intel 82C55A Programmable Peripheral Interface to set the port working mode 1 3 Other Helpful Documents and Tools This section gives sources for additional information that applies to the USB 8255 DIO Board or its components 1 3 1 Documents for Further Reference e Cypress CY7C63001 USB Controller Data Sheet Cypress e Intel 82C55A Programmable Peripheral Interface Data Sheet Intel e Cypress CY7C6300X Assembly and Chip programmer Cypress e Microsoft VC User s Manual Microsoft 1 3 2 Software Development Tools Windows Application examples of The USB 8255 DIO Board are Microsoft VC Code the firmware code inside the USB controller is assembly As user windows application call only the Windows driver it is not necessary to learn the USB RISC assembly unless you are
18. z crystal as its clock source This clock is doubled within the chip to provide a 12 MHz clock for the microprocessor The microcontroller features two ports twelve general purpose I Os GPIOs Each GPIO pin can be used to generate an interrupt to the microcontroller Additionally all pins in Port 1 are equipped with programmable drivers strong enough to drive LEDs The GPIO ports feature low EMI emissions as a result of controlled rise and fall times and unique output driver circuits in the microcontroller 4 2 Function of the CY7C63001 USB The Cypress CY7C63001 USB microcontroller is optimized for human interface computer peripherals such as a mouse joystick and game pad Cypress USB microcontroller conform to the low speed 1 5 Mbps requirements of the USB Specification version 1 1 Each micro controller is a self contained unit with a USB interface engine USB transceivers an 8 bit RISC microcontroller a clock oscillator timers and program memories It supports one USB device address and two end points Logic Block Diagram is below USB 8255 DIO Board User s Guide Confidential Page 15 08 23 02 PC Hardware amp Service Inc www pchardwares com Chapter 5 Programming Details for Intel 82C55A PPI For detail information please read Intel 82C55A Datasheet 5 1 Overview of the 82C55A PPI The Intel 82C55A is a high performance CHMOS version of the industry standard 8255A general purpose programmable I O device which is designed

Download Pdf Manuals

image

Related Search

Related Contents

  

Copyright © All rights reserved.
Failed to retrieve file