(Page 4 of 4 in this chapter)


Configuring the Clock Mode Using the SW Utility

The SW Utility may be used to configure the clock mode interactively or from a script file. Listed below are sample scripts demonstrating how to configure an AG Connect board as MVIP bus clock master or as a slave.

For more information on the SW Utility, refer to the SW Utility User's Manual.

Note: When using the SW command ConfigClock, both the REF and SEC8K parameters should be specified in order to ensure that the parameters do not default to undesired settings.

Sample SW Script Configuring the Board As A Clock Master

To configure the board as a clock master, use the drv.ConfigClock command with the REF=OSC parameter, as shown in this script:

#-----------------------------------------------------------------------#
# Sample SW Utility script demonstrating how to configure the clock #
# mode on the AG Connect board. #
# #
# Clock mode: Master #
#-----------------------------------------------------------------------#
#
# Obtain a handle for the switch on board 0.
#
# Uncomment the command below that pertains to
# your operating system.
#
# drv.LoadDriver cx = agcxsw 0 # Windows NT and OS/2
# drv.OpenDevice /dev/agcx00 cx # UNIX

#
# Reset the switch to an initial state
#
drv.ResetSwitch cx

#
# Configure board 0 as MVIP bus clock master
#
drv.ConfigClock cx REF=OSC SEC8K=NOT_DRIVEN

xct.Exit # exit SW Utility

Sample SW Script Configuring the Board As A Clock Slave

To configure the board as a clock slave, use the drv.ConfigClock command with the REF=MVIP parameter, as shown in this script:

#-----------------------------------------------------------------------#
# Sample SW Utility script demonstrating how to configure the clock #
# mode on the AG Connect board. #
# #
# Clock mode: Slave #
#-----------------------------------------------------------------------#

#
# Obtain a handle for the switch on board 0.
#
# Uncomment the command below that pertains to
# your operating system.
#
# drv.LoadDriver cx = agcxsw 0 # Windows NT and OS/2
# drv.OpenDevice /dev/agcx00 cx # UNIX

#
# Reset the switch to an initial state
#
drv.ResetSwitch cx

#
# Configure board 0 as a slave to the MVIP bus clocks
#
drv.ConfigClock cx REF=MVIP SEC8K=NOT_DRIVEN

xct.Exit # Exit SW utility



(Page 4 of 4 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.