C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805 Datenbogen

Produktcode
198805
Seite von 42
START OPTION REGISTER 
Both Units M 2.0 and ADVANCED feature a Start Option. Here a Hardware Option can be set at a non 
volatile register. This may not be confused with the CONFIG REGISTER what sets an option at runtime and 
keeps this options only until next reset. One the Start Option is activated it is maintained (even after reset) 
until the corresponding bit in the register has been cleared. 
 
The Start Option Register has following functions, switched to ON if the corresponding bit is set. 
 
  
 
 
 
 
 
 
 
 
 
If you want to 
activate both 
options, both bits ave to be set accordingly. The bitset is done with a special BASIC++ Instruction that is not 
mentioned in this manual because it is not used in general. 
 Bit 0       EEPROM BOOT OPTION
 Bit 1       AUTOSTART AFTER PROGRAMM DOWNLOAD 
 Bit 2        
 Bit 3        
 Bit 4        
 Bit 5        
 Bit 6        
 Bit 7        
 
 
ADDTOKEN    39     This Instruction will cause to write the next value to the Start Option Reg. 
ADDTOKEN    3       This value 0000 0011 will be written to the Start Option and setting  
                                 bit 0 and 1 
 
A Program to set the options will only contain just these two lines, and has to run only one time. 
For your conveniance the programs to set and reset options are supplied at the samples in the folder START 
OPTION 
 
 
OPTION AUTOSTART 
If the corresponding bit is set, it will cause an immediate Program Start after program download. 
The Unit M 2.0 features no Auto Start Option.  
EEPROM BOOT OPTION 
The Operating System Versions above 2.05 offer the option to load a user program from a EEPROM e.g. in 
form of a „Chip-Card“. This is very comfortable if the user program has to be updated in the field without a 
PC available or if qualified personnel for a manual program download is not present. The EEPROM Boot 
Option is set off als default but can be switched on. The procedure is similar to a usual downlaod. A RESET 
causes the Unit to enter the Download Mode and the Operarting System tries to identify a EEPROM 
containing a valid program file. If no EEPROM is connected or the loaded file is not valid, the usual 
procedure (download from serial interface) is applicable. If a EEPROM containing a valid program file is 
connected then the program is copied into the FLASH Memory. 
A program file on EEPROM is defined to have the first byte in memory loaded with the value $55. The 
memory beyond the program bytes can be used as data memory. The boot option is set on/off with a 
dedicated small BASIC program. The boot file located on EEPROM is created with a special program 
running on a C-Control Unit.  
 
MAKE BOOTFILE 
INSERT CARD 
To make a Boot File on a chipcard, load the Program 
MAKE_BOOTFILE.BAS (also in the folder START OPTION) into the unit 
and run the program.  
  
Insert the memory card as requested by the message on the LCD. 
When the card is found by the program u are requested to start the 
download as usual. The running program on your C-Control simulates a 
regular download to flash but actually writes the program to the chipcard. 
START DOWNLOAD 
 
 
 
27