Coolquest, Inc. Home Products Support About Contact
cbold_logo_gif C++BOLD Example Design: IROD cbold_logo_gif

Design Home <<  File View  >> Class View Output (partial) Parts Library Examples Home

 

// 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.
 
#ifndef _IRODSupervisorH_
#define _IRODSupervisorH_
 
#include "supervisors.h"
 
// Supervisor Circuit
// includes required decoupling and protection resistor
 
 
class CM_Supervisor5_3 : public TModule {
public:
  port VCC;       // sense2 voltage and supply voltage: 3.3V
  port VCC5;      // sense1 voltage, protected with 1k resistor: 5V
  port GND;
 
  port MR_N;      // manual reset in
  port WDI;       // watchdog in
  port RESET;     // reset outputs
  port RESET_N;
 
  CP_TPS3305_33D  Supr;      // supervisor chip
  CP_R1K          Rsense1;   // resistor to protect SENSE1 input of supervisor
  CP_CDC_POS      CDC;       // decoupling capacitor required for supervisor stability
 
public:
  virtual void Register() {
    reg( VCC );
    reg( VCC5 );
    reg( GND );
    reg( MR_N );
    reg( WDI );
    reg( RESET );
    reg( RESET_N );
 
    reg( Supr );
    reg( Rsense1 );
    reg( CDC );
  }
 
  virtual void Connect() {
    VCC << Supr.VCC << Supr.SENSE2;
    GND << Supr.GND << CDC.GND;
    VCC << CDC.POS;
 
    VCC5 ^ Rsense1 ^ "SENSE1" << Supr.SENSE1;  // protect SENSE1 when VCC is not at 3.3V
    wire( MR_N );
    wire( WDI );
    wire( RESET );
    wire( RESET_N );
  }
};
 
 
#endif

 

Design Home <<  File View  >> Class View Output (partial) Parts Library Examples Home

Legal Copyright © 2007 by Coolquest, Inc. Contact