Function SetProgOption |
Top |
void SetProgOption(char option_name[], char option_string[]); Description: Set value for the programming option. The programming options are listed in the lower right corner of the Device and Algorithm Parameters' Editor window. Parameters: option_name - option name, e.g. "Vpp". option_string - option value as character string. Options can be of several types (certain option type can be determined by hitting the "Edit" button in the Device and Algorithm Parameters' Editor window). • floating point numbers, for example, programming voltage. For such options, the option_string parameter should represent a floating point number, for example, "12.3". • integer numbers. The option_string parameter should represent an integer value, for example, "215". • "menu" type options. In these cases, the option_string parameter should be a menu item string, for example, "Disabled". Menu can be observed by hitting the "Edit" button in the Device and Algorithm Parameters' Editor window). • character strings, for example, "Copyright". • check boxes option. Check boxes option is a list of options; each of them can be checked or unchecked. To specify a value for a check box option, append an '=' sign to the option name followed with 0 or 1. For example, to set up the CPD memory protection bit of PIC18F8720 chip, write SetProgOption("Memory protection", "CPD=1"); Examples SetProgOption("Vpp", "12.5"); SetProgOption("PWRT", "Disabled"); See also examples that come with the ChipProg package. |