User manual

Main PSMC Configuration GUI
2012-2013 Microchip Technology Inc. DS40001671B-page 13
2.8 COPY AND SHOW BUTTON
The Copy and Show button does two things: It shows all SFR values in the PSMC
instance configuration, and it copies those values to the clipboard. The clipboard format
is consistent with the type selected by the Code Type radio buttons. C and Assembly
are the two options. The clipboard capture can be pasted into your source code,
however, code for only the presently selected PSMC instance is in the clipboard.
Multiple copy and paste operations are required when working with multiple PSMC
instances. A better method for saving multiple PSMC instances of the same device is
the File Save option. Files can be saved in either C or Assembly format (see Save Assy
or Save C).
2.8.1 PSMC SFR Displays
The PSMC SFRs are displayed by name and value in the 30 text boxes between the
Copy and Show button and the Paste button. Only the SFRs for the selected PSMC
instance are displayed as indicated by each of the SFR name prefixes.
2.9 PASTE BUTTON
The Paste button transfers SFR values of the PSMC instance, from which they were
copied with the Copy and Show button, to the presently selected PSMC instance. In
this manner, one PSMC configuration can be created then quickly copied to other
desired PSMC instances. It is usually easier to make a few changes to a copied
configuration than it is to re-enter the entire configuration for each PSMC instance.
Note that the Paste button will not paste values copied from your source code.
2.10 CLEAR BUTTON
The Clear button clears all SFRs in the presently selected PSMC instance to zero. All
GUIs of the various functions adjust accordingly.
2.11 PULL-DOWN MENU
In the upper left of the main GUI display there is a pull-down menu titled “File”. This
pull-down menu includes the following:
Save Assy Code
Save C Code
Load Code
A file selection dialog will appear when the desired menu item is selected for both
saving and loading code. A comment section, that includes the device number and
clock frequency, is included in the saved code. This is used to reconstruct those parts
of the configuration when the code is loaded back into the designer tool.
2.11.1 Save Assy
Selecting the Save Assy code menu option creates an include file containing assembly
configuration code for all PSMCs in the selected device that have been configured. Any
PSMC instance in the selected device that is clear will not be included in the output.
2.11.2 Save C
Selecting the Save C code menu option creates an include file containing C
configuration code for all PSMCs in the selected device that have been configured. Any
PSMC instance in the selected device that is clear will not be included in the output.