Microchip TMC2074 Handleiding


Lees hieronder de đź“– handleiding in het Nederlandse voor Microchip TMC2074 (22 pagina's) in de categorie Niet gecategoriseerd. Deze handleiding was nuttig voor 35 personen en werd door 2 gebruikers gemiddeld met 4.5 sterren beoordeeld

Pagina 1/22
SMSC EVK-2074/84 SOFTWARE OPERATION MANUAL Revision 1.1 (03-31-06)
CircLinkTM EVB Software Operation Manual
1 Overview
This manual explains how to install and operate the CircLink
TM EVB Software. This software is used
to control a TMC2084 IO Node from a TMC2074 Host Node. This software was written using Visual
Studio VC++ 6.0 and is intended to run on a PC with a Windows 2000 or Windows XP operating
system. This software does not use interrupt handling. Editing this software requires a Visual Studio
VC++ 6.0 development environment. Correct operation of this software requires a CircLink evaluation
environment consisting of the following:
îš„Exactly one host node, consisting of a PCM-2074 evaluation board with TMC2074 Dual Mode
CircLink Controller installed.
îš„At least one IO node, consisting of an EVB-2084 evaluation board with TMC2084 IO Node CircLink
Controller installed. The CircLinkTM EVB Software comes configured for two IO nodes.
This application does not access the PCM-2074 directly, but indirectly through a device driver. For
instructions on installation of this device driver, refer to Chapter 4.
1.1 Software File Listings
The CircLinkTM EVB Software is shipped on one disk, consisting of the files outlined in Table 1.1 below:
Table 1.2 below lists all of the source and header files associated with the CircLink
TM EVB Software.
Table 1.1 CircLinkTM EVB Software Installation Disks
ITEM FILE/FOLDER NAME CONTENTS NOTES
1 <EcTest2000> Source files VC++ 6.0
2 EcTest.EXE Executable file
3 EcNetPcm.inf INF File for PCM-2074 Device Driver (Win2000/XP)
4 CLIoDRV.sys PCM-2074 Device Driver (Win2000/XP)
Table 1.2 CircLinkTM EVB Software Source Files
ITEM FILE NAME CONTENTS NOTES
1 EcDriverIF.cpp Device driver I/F function
2 Ecnet.cpp CircLink related functions
3 EcTest.cpp Visual Studio auto-generation file
4 EcTestDlg.cpp Main dialogs of sample program
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 2 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
Table 1.3 below shows the project files automatically generated by Visual Studio. Editing the following
files may cause the software not to run correctly; please do not edit them.
5 HostSet.cpp Host (PCM-2074) configuration dialog
6 IoSet.cpp I/O Node (EVB-2084) configuration dialog
7 Memory.cpp Host (PCM-2074) memory dialog
8 StdAfx.cpp Visual Studio auto-generation file
9 EcDemo.h Demo sample data Demo1, Demo2
10 Ecnet.h Header file for CircLink
11 EcnetReg.h Header file for CircLink
12 EcTest.h Visual Studio auto-generation file
13 EcTestDlg.h Visual Studio auto-generation file
14 HostSet.h Visual Studio auto-generation file
15 IoSet.h Visual Studio auto-generation file
16 Memory.h Visual Studio auto-generation file
17 Resource.h Visual Studio auto-generation file
18 StdAfx.h Visual Studio auto-generation file
Table 1.3 CircLinkTM EVB Software Source Files
ITEM FILE NAME CONTENTS NOTES
1 EcTest.aps Visual Studio auto-generation file
2 EcTest.ncb Visual Studio auto-generation file
3 EcTest.opt Visual Studio auto-generation file
4 EcTest.dsp Visual Studio auto-generation file
5 EcTest.dsw Visual Studio auto-generation file
6 EcTest.rc Visual Studio auto-generation file
7 EcTest.clw Visual Studio auto-generation file
8 Resource.hm Visual Studio auto-generation file
Table 1.2 CircLinkTM EVB Software Source Files (continued)
ITEM FILE NAME CONTENTS NOTES
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 3 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
2 Operating Instructions
Operating instructions for the CircLinkTM EVB Software are described below. The screenshots are from
Windows 2000; however, they apply to Windows XP as well.
2.1 Starting the CircLinkTM EVB Software
The CircLinkTM EVB Software is started by invoking EcTest.exe. The screen shown in Figure 2.1 is
displayed, showing that the CircLinkTM EVB Software has started and is in the idle/configuration state.
This screen is the Main Screen for the CircLinkTM EVB Software. From this screen, the host and IO
nodes can be configured, along with CircLinkTM EVB Software operational parameters.
The CircLinkTM EVB Software is designed to be used with one PCM-2074 Host Node and a maximum
of 14 EVB-2084 IO Nodes. The table below shows allowed values for various configuration parameters
for the host and IO Nodes. Note that for some parameters, the PCM-2074 has possible values that
are not allowed when it is used with EVB-2084 devices.
Figure 2.1 Main Screen for CircLinkTM EVB Software
Table 2.1 Configuration Settings for CircLink Nodes
NO PARAMETER ALLOWED SETTINGS NOTES
1 Node ID 1-15 (16-31 not allowed) Each node must have a unique Node ID
2 Max ID 1-15 (16-31 not allowed) Must be the same for all nodes.
3 Clock Master ID 1-15 (16-31 not allowed) Typically is the host node ID
4 Page Size 64 or 128 (32 and 256 not allowed) Must be the same for all nodes.
5 Speed 312.5 Kbps to 5Mbps Must be the same for all nodes
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 4 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
2.2 Confirming the Version Level
Clicking Help on the menu bar causes the version of the CircLinkTM EVB Software to be displayed as
shown in the window below.
2.3 Configuring the CircLinkTM EVB Software to Match the
Evaluation Environment
When the CircLinkTM EVB Software is started, it assumes it has one host node and two IO nodes,
configured as shown in Table 2.2. If the nodes are configured differently, follow the configuration steps
outlined in Section 2.10 and Section 2.11 to ensure that the configuration assumed by the software
matches that actually used by the nodes.
Note: The CircLinkTM EVB Software is designed to operate with only one PCM-2074 node; more than
one PCM-2074 node may not be added to the network.
If there is a mis-match between the configuration assumed by the CircLink
TM EVB Software and the
configuration actually used by the nodes, the error message shown in Figure 2.3 will be displayed.
Respond by clicking “No” twice, then follow the configuration steps explained in Section 2.10 and
Section 2.11.
Figure 2.2 Software Version Level Window
Table 2.2 Default Configuration of PCM-2074 Node
NO PARAMETER PCM-2074 EVB-2084 #1 EVB-2084 #2
1 Node ID 1 2 3
2 Max Node ID 3 3 3
3 Clock Master ID 1 1 1
4 Page Size 64 Bytes/Page 64 Bytes/Page 64 Bytes/Page
5 Speed 2.5 Mbps 2.5 Mbps 2.5 Mbps
Figure 2.3 Error Message if Non-Standard Configuration is Used
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 5 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
2.4 Running the CircLinkTM EVB Software
Clicking the I/O Start button causes the CircLinkTM EVB Software to begin running with the Output
Data Type that has been chosen in the Output Data Selection. In the example in Figure 2.1 above,
“Demo1” has been chosen as the Output Data Type. The Demo1 Output Data Type causes the display
to show the status of the inputs and outputs of the host node and all of the IO nodes as shown in
Figure 2.4.
When the CircLinkTM EVB Software starts running, you will notice that the IO Start button changes to
an IO Stop button, and certain configuration windows are grayed out. In general, these parameters can
only be changed when the CircLinkTM EVB Software is in the idle/configuration state.
Data from the host node (in the case above, Node 1) is displayed in white. Data from the IO nodes is
displayed in green, yellow or red depending on its type, as shown in the table below:
In Figure 2.4 above, Ports A and B are outputs on all IO nodes, with a value of 0x7FFE. The lower
bits of Port D are also used as outputs on all IO nodes, with a value of 0x00. The upper bits of Port
D are used as Flag Outputs on all nodes, with all flags set. Port C is an input on all IO nodes, but its
Figure 2.4 Display of IO Node Status
Table 2.3 Meaning of IO Node Status Indication Colors
COLOR MEANING
White Indicates corresponding Host Output is ON.
Red Indicates corresponding IO Node Output is ON
Green Indicates corresponding IO Node Input is ON
Yellow Indicates corresponding IO Node Flag Output is ON
Dark Gray Indicates corresponding Host/IO Node Output/Input is OFF
Light Gray Indicates nodes with Node ID < MAX ID that are not communicating.
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 6 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
value varies from node to node. On Node 2, Port C has a value of 0x00. On Node 3 it has a value of
0x03, on Node 4, or 0xB4, and so on.
2.5 Stopping the CircLinkTM EVB Software from Running
When the CircLinkTM EVB Software is running, it can be stopped by pressing the IO Stop button; this
returns it to the idle/configuration state.
2.6 Exiting the CircLinkTM EVB Software
Clicking Exit on the Menu bar causes the message below to be displayed. Clicking OK causes the
program to quit; clicking Cancel allows the program to resume.
2.7 Setting the Data Transmission Interval
When the CircLinkTM EVB Software is in the idle/configuration state, the data transition interval can be
set, using the pull-down menu just above the IO Start button. The data transition interval can be set ti
specified values between 50ms and 1 sec. When the CircLinkTM EVB Software is in the Run stat, the
data transition pull-down menu is grayed out, and cannot be changed. Figure 2.6 below shows the
windows involved with changing the Data Transmission Interval.
Notes:
Selecting either “Host Settings” or “I/O Node Settings” from “Settings” on the menu bar while the
software is running causes it to enter the idle/configuration state immediately.
îš„Selecting a data transmission interval of 5, 10 or 20ms may disable communication depending on
PC performance. For slow PCs, settings below 30ms may cause CPU utilization to go above 100%,
which can be determined from the Windows task manager by using Ctrl + Shift + Esc.
Figure 2.5 Exit Confirmation Window
Figure 2.6 Configuring the Data Transmission Interval
A. Software Running;
Data Transmission
Interval is grayed out
(Cannot be changed)
B. Software Idle;
Data Transmission
Interval can be
changed
C. Possible values
for Data
Transmission
Interval (right)
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 7 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
2.8 Selecting the Output Data Type
The CircLinkTM EVB Software allows the user to select one of six programs, using the radio buttons
under the box labelled “Output Data Selection”. Once the selection is made, it has to be confirmed
using the Select button. The window for configuring the “DEMO 1” Output Data Type is shown below
in Figure 2.7.
Table 2.4 below summarizes the six Output Data Types.
2.8.1 Using the Bit Assign Output Data Type
Figure 2.8 shows how to assign bits in the Bit Assign Output Data Type. A blue box indicates that the
corresponding bit is set to 1; a dark gray box means the corresponding bit is set to 0. In the example
below, Ports A and B are both set to “0x55h” respectively. Note that the ON/OFF state is changed by
a single click of the left mouse button; double clicking a particular box results in no change of the
ON/OFF state.
Figure 2.7 Configuring the “DEMO1” Output Data Type
Table 2.4 Table of Output Data Types
NO. TYPE DESCRIPTION PORTS
AFFECTED
1 Demo1 16 bits are assigned “Demo Data” pattern A, B
2 Demo2 16 bits are assigned to light a 2-digit, 7-segment LED display A, B
3 Bit Assign 16 bits are manually assigned (see description below) A, B
4 Bit Shift 32-bit shifting pattern (8 bits at a time) All
5 Increment 32-bit incrementing pattern All
6 Random 32-bit random pattern All
Figure 2.8 Configuring the “Bit Assign” Output Data Type
Selected Output
Data Type
Selected
Node
PA0
PA7
PB0
PB7
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 8 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
2.8.2 Selecting the Output Data Type for a particular target node
The examples so far have shown how to set the Output Data Type for all nodes simultaneously,
because the Node ID window is set to All. The Output Data Type can also be set for one node at a
time by specifying a particular node in this window, as shown in Figure 2.9 below.
In order for the output data type to be changed, the Select button must also be clicked. If the Select
button is not clicked after a change is made, the change does not take effect. Also if the Node ID of
the Host Node is specified in the Node Selection window, data transmission will not take place to the
IO nodes.
2.9 Displaying Status Information
The IO Node Status Box, located in the lower left-hand corner of the main display window, shows
status information pertaining to a particular node that is selected using a pull-down menu. The IO Node
Status Box shows the current status for a variety of node parameters; each parameter has its own
status button. Yellow indicates that a particular parameter is “1”; gray indicates “0”. Figure 2.10 below
shows the status window for the Host node at initialization and after reset. Note that two parameters
- RCPUM and OPICDONE - are invalid, and can be ignored, in the case of the Host Node.
Figure 2.9 Selecting the Output Data Type for a Particular Node
Figure 2.10 Status Windows for the Host Node: A)At Initialization, B)After Reset
For MaxID = 4
A. Status Window after Initialization of a PCM-2074 B. Status Window after Reset of a PCM-2074
Invalid for PCM-2074
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 9 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
Figure 2.11 below shows the Status Windows for a EVB-2084 IO Node at initialization and after reset.
The meanings of the status window flags are given in Table 2.5 below:
The drop-down menu can be used to change the node for which the status is displayed. Note that the
status information for an IO node is not updated until the host node actually communicates with that
node. Selecting a non-participating IO node causes all status information to be displayed in yellow.
2.10 Configuring the PCM-2074 Host Node
To configure the Host node, click “Settings” on the menu bar, then select “Host Settings” using the drop
down menu. This is shown below in Figure 2.12. The dialog box for the Host Node Settings is then
displayed as shown in and Figure 2.13. This dialog box allows the user to change the configuration of
the Host Node. Note that if the Host Settings Dialog box is activated while the CircLink
TM EVB Software
is running, the software will immediately enter the idle state; the START button has to be clicked in
order for execution to resume.
Figure 2.11 Status Windows for an IO Node: A)At Initialization, B)After Reset
Table 2.5 Meanings of Status Flags
NO. FLAG MEANING NOTE
1 RXERR Error detected during packet reception
2 CMIECC Error correction occurred during CMI decoding.
3 NSTUNLOC NST was in the unlock state
4 MRCV Unicast packet was received normally
5 TKNRETF Token retry detected
6 RCPUM Received packet had a control pointer not = 0x38h or 0x78h. Not valid for PCM-2074
7 POR Hardware or Software Reset occurred
8 MYRECON The RECON timer expired.
9 OPICDONE Output Port Initialization command completed Not valid for PCM-2074
Figure 2.12 Activating the Host Node Settings Dialog Box
A. Status Window after Initialization of a EVB-2084 B. Status Window after Reset of a EVB-2084
Select
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 10 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
Figure 2.13 below shows the status of the Host Node at the moment the window is created. The
window is not updated by the system and does not reflect changes in status that occur after it is
created. The status of individual bits/pins is shown through check boxes.
Referring to the figures above, you will notice in the Initialize Node box that you have a choice between
Ext Pin Assign and Register Assign. For a PCM-2074 Host Node, Register Assign is the best choice
as shown above, because it allows you to update the Node ID, Max ID and CKP parameters. Once
you have made all your configuration changes, click Set Node to have them take effect. To put the
CircLinkTM EVB Software back in run mode, click the Start Button.
Side effects - note that the Page Size affects the pull-down menu choices for Node ID and Max ID.
When the Page Size is set to 64 Bytes/Page, the Node ID and Max ID pull-down windows allow
choices of 1 to 15. When the Page Size is set to 128 Bytes/Page, these windows allow choices of 1
to 7. Also the choice of Page Size for the Host Node must match the Page Size set by JP4 on all of
the EVB-2084 IO Nodes. Any mismatches will cause communication errors.
Figure 2.14 below shows the configuration window when the Initialize Node box is set to Ext Pin
Assign. Note that the Node ID, Max ID and CKP parameters are grayed out and cannot be changed.
Figure 2.13 Configuring the Host Node
Figure 2.14 Configuring the Host Node in Ext. Pin Assign Mode
Always use “Register Assign”
for the Host Node All of these parameters can be changed
For the Host Node,
these windows always
reflect the register
values
These parameters cannot be changed.
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 11 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
2.11 Configuring EVB-2084 IO Nodes
To configure IO nodes, click “Settings” on the menu bar, then select “IO Node Settings” using the drop
down menu. This is shown below in Figure 2.15. The dialog box for the Host Node Settings is then
displayed as shown in Figure 2.16. This dialog box allows the configuration of the IO Nodes to be
changed. Note that if the IO Node Settings Dialog box is activated while the CircLink
TM EVB Software
is running, the software will immediately enter the idle state; the START button has to be clicked in
order for execution to resume.
The configuration window (below) shows the status of a particular IO Node that is chosen by the IO
Node Select pull-down menu. Whenever this pull-down menu is changed, the configuration window is
updated with the current configuration of the IO node. The window is not updated after that by the
system.
Note that for IO Node, certain parameters such as Node ID and MAX ID are determined by external
configuration pins only and cannot be changed via configuration registers. Therefore these parameters
cannot be updated using the IO Node Configuration Window shown above. Once you have made all
your configuration changes, click Set Node to have them take effect on the node chosen. You can also
apply a configuration to all nodes at once by clicking the Set All Node button. The Reset button
refreshes the window with the current configuration state of the chosen IO node. Clicking Reset before
Set Node or after Set All Node will cause any changes you have made to be lost. Clicking Reset Set
Node or Set All Node can be used to confirm that the IO Node reflects the changes you just made.
The Cancel button exits the IO Node Configuration Window.
Figure 2.15 Activating the IO Node Settings Dialog Box
Figure 2.16 Configuring an IO Node
Select
This pull-down changes which
IO Node is displayed.
CircLinkTM EVB Software Operation Manual
Revision 1.1 (03-31-06) 12 SMSC EVK-2074/84
SOFTWARE OPERATION MANUAL
Table 2.6 summarizes the changes that can be made to the I/O Node Configuration.
The control buttons for the IO Node Configuration Window are summarized below.
Table 2.6 Changes that can be made to the IO Node Configuration
NO NAME DESCRIPTION POSSIBLE VALUES DEFAULT
1 I/O Node Chooses Node Displayed in Window 1-15 Lowest ID
2 Clock Master ID Specifies Node ID of Clock Master 0-15 (0=Asynchronous) 1
3 MAX ID Specifies MAX ID 1-15 3
4 TX TRIGGER TXTRG3:0 - Packet Transmit Trigger 0-F 0
5 NST Resolution NSTPRE2:0 - NST Resolution 1.6us to 204.8us 1.6us
6 NST Carry Cycle NST Carry Output Selection NSTPRE x 2 to
NSTPRE x 216 NSTPRE x 2
7 Carry Out Duty 50% Duty Cycle on Carry Output On/Off On
8 Broadcast Enable Enable/Disable Broadcast Reception On/Off On
9 Hi-Z@MyRecon Output port state when a “MyRecon”
event occurs
Tri-state / Hold previous
level (high or low)
Tri-state
10 Discard Pac@ CMI
Error
Packet Discard on CMI Error On/Off On
11 Output
Burst@MyRecon
Enable Output Burst on MyRecon On/Off On
12 Port A Open Drain Port A Output OpenDrain / Pushpull OpenDrain
13 Port B Open Drain Port B Output OpenDrain / Pushpull OpenDrain
14 Port C Open Drain Port C Output OpenDrain / Pushpull OpenDrain
15 Output Delay Output Delay Strobe Time 11*Tx / 43*Tx 11*Tx
16 Output@Rcv Only Strobe Output Mode Rcv Only / Rcv & Init Rcv & Init
17 PD4 Flag selection nNSTCOUNT
18 PD5 Flag selection nTXDONE
19 PD6 Flag selection nPOSTR
20 FOSL Flag Output Selection 0000 to 1001 0000
Table 2.7 Summary of Control Buttons in the IO Node Configuration Window
No Button Usage
1Set Node Configures the specified node with the current contents of the window.
2Set All Nodes Configures all nodes with the current contents of the window
3Reset Resets the window to the current configuration of the chosen node
4Cancel Exits the configuration window.
CircLinkTM EVB Software Operation Manual
SMSC EVK-2074/84 13 Revision 1.1 (03-31-06)
SOFTWARE OPERATION MANUAL
2.12 Dumping the Memory Contents of the PCM-2074
Returning to the Main Window of the CircLinkTM EVB Software, in Figure 2.1, clicking “Memory” on the
menu bar at the top of the window causes the PCM-2074 Host Node to dump its memory contents.
The display format depends on the Page Size chosen (64 or 128 bytes). Both formats are illustrated
below.
Each page in the memory dump shows the configuration information for the corresponding IO node.
The information is a snapshot made when the memory dump window is opened; the information is not
updated. The vertical scroll bar can be used to scroll through all the pages.
3 Error Messages
If errors are detected at start-up or during run-time, appropriate error messages will be displayed by
the software. There are three types of errors that can be displayed:
îš„System Errors - show errors returned by the Windows O/S.
îš„Communication Errors - Detected when packets are being transmitted or received
îš„Operation Errors - Detected during operation of the CircLink
TM EVB Software.
3.1 System Error Messages
These messages are displayed when a Windows system function that is called by the CircLink
TM EVB
Software detects an error. System functions that are used include open/close functions and I/O request
calls to the device drivers. The message indicates the type of error and asks whether the software
should quit or continue. The example show below occurs when there is an error opening the device
driver. In this particular case, click “Yes” (close) and confirm that the device driver has been correctly
installed before re-invoking the CircLinkTM EVB Software.
Figure 2.17 Memory Dump Formats
Figure 3.1 System Error Message
Memory Dump Format for PageSize=64 Memory Dump Format for PageSize=128


Product specificaties

Merk: Microchip
Categorie: Niet gecategoriseerd
Model: TMC2074

Heb je hulp nodig?

Als je hulp nodig hebt met Microchip TMC2074 stel dan hieronder een vraag en andere gebruikers zullen je antwoorden




Handleiding Niet gecategoriseerd Microchip

Handleiding Niet gecategoriseerd

Nieuwste handleidingen voor Niet gecategoriseerd