Coolquest, Inc. | Home | Products | Support | About | Contact | |||
|
<< File View >> | Class View | Parts Library | Examples Home |
// This File Generated by: pt_to_h.exe // Source File: cdc319.pt // Destination File: cdc319.h #ifndef _cdc319_h_ #define _cdc319_h_ // AR_OFF -- auto registration is not needed // THIS FILE IS IN THE PUBLIC DOMAIN. // IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT // NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. class CP_CDC319 : public TPart { //10 output driver public: port O1Y; // AR_BUS(3,0) //clock outputs pins of byte 0 port O2Y; // AR_BUS(3,0) //clock outputs pins of byte 1 port O3Y; // AR_BUS(1,0) //clock outputs for feedback port A; //clock input port OE; //output enable (active high, internal pullup) port VCC; // 7 pins port GND; // 7 pins port SCLOCK; //serial clock (internal pullup) port SDATA; //bidirectional serial data (internal pullup) CP_CDC319() { SetPackage( "SSOP28", 28 ); SetReferencePrefix( "U" ); } virtual void Register() { regb( O1Y, 3, 0 ); O1Y.AddPin( 3, "7" ); O1Y.AddPin( 2, "6" ); O1Y.AddPin( 1, "3" ); O1Y.AddPin( 0, "2" ); regb( O2Y, 3, 0 ); O2Y.AddPin( 3, "27" ); O2Y.AddPin( 2, "26" ); O2Y.AddPin( 1, "23" ); O2Y.AddPin( 0, "22" ); regb( O3Y, 1, 0 ); O3Y.AddPin( 1, "18" ); O3Y.AddPin( 0, "11" ); reg( A ); A.SetPin( "9" ); reg( OE ); OE.SetPin( "20" ); reg( VCC ); VCC.AddPin( "1" ); VCC.AddPin( "5" ); VCC.AddPin( "10" ); VCC.AddPin( "13" ); VCC.AddPin( "19" ); VCC.AddPin( "24" ); VCC.AddPin( "28" ); reg( GND ); GND.AddPin( "4" ); GND.AddPin( "8" ); GND.AddPin( "12" ); GND.AddPin( "16" ); GND.AddPin( "17" ); GND.AddPin( "21" ); GND.AddPin( "25" ); reg( SCLOCK ); SCLOCK.SetPin( "15" ); reg( SDATA ); SDATA.SetPin( "14" ); } }; #endif
<< File View >> | Class View | Parts Library | Examples Home |
Legal | Copyright © 2007 by Coolquest, Inc. | Contact |