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
ON                 boolean true (numerical 255 at byte values and -1 at word values)  
OFF               boolean false(numerical 0 for byte and word values) 
EXTERNAL FILES 
 
IMPORT 
The Import keyword causes the compiler to insert external files (Basic Code, Tables, ...) during compilation. 
This is great for complex programs and makes your source code better readable. Any File with any 
extension is insertet, but must of course be a BASIC Source code or table, readable by the compiler. 
 
IMPORT "\MYFILE.BAS
Syntax: Import [Datei]  
 
 
 
SPECIAL PORTS 
Special digital ports 
All special digital ports of the unit are connected to pull up resistors as far as they are inputs. Special Ports 
are fixed concerning their usage and their Function.  
START and RESET 
This ports may be connected to push buttons if a manual start or stop of user programs is required. Push the 
START button to run a BASIC program, downloaded previously to the unit's memory. Press RESET to stop a 
running program and entering the download mode. 
To ensure proper function, the AUTOSTART jumper at the unit must be removed. (JP2) 
 
The START port status can be requested using the CONFIG REGISTER.  
 
FREQ1 and FREQ2 
This ports are always and exclusively inputs. The primary operation is frequency counting in the range from 
0 to 32kHz. FREQ 1 supports the feature to synchronize the system clock if a DCF77 receiver module is 
connected to this port. The synchronization is done automatically in the background, i.e. no user action is 
required. The receiver module has to provide a open collector output to switch this port lo. Use shielded 
cables to connect the receiver module to the unit. This ports may be used alternatively in Event counting 
mode. The trigger is negative edge level sensitive for all modes. 
 
FREQ1 and FREQ2 are predefined. No user definition has to be done 
 
IRQ 
The IRQ port is alwas input and serves for the immediate reaction on an external request i.e the current 
operation is interrupted an the external event is serviced by a appropriate Interrupt Routine. The IRQ input is 
negative edge triggered.  
The interrupt source can be canged e.g to an automatically generated timer interrupt. Moreover the IRQ line 
can be used as input port when the IRQ is not used as interrupt source.  
 
IRQ is  predefined as INTERRUPT. The user has to define the Interrupt vector INTERRUPT  
 
 
BEEP 
The BEEP port is always an output an usually connected to a piezo buzzer. It serves for program or alert 
status indications during normal program operation. During debugging your program this buzzer may be 
useful also. The audio frequency ranges from 10kHz to 100Hz. 
 
The BEEP Port is predefined. No user definition has to be done 
 
 
7