Page: 79/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
The CPU operating frequency is a value stabilized by a frequency
locking loop to about 15.7 MHz. The frequency is also used
as a time base for the communication interface. The theoretical
frequency value equals 15.6672 MHz, which is a multiple of the
maximum communication speed of 230.4 kbaud (see the function
).
The response to the direct command (
C
©
) contains 3 hexadecimal
digits (
LLL
) for the variable
Load
and 4 hexadecimal digits (
FFFF
) for
the variable
Frequency
. To convert the values into the abovemen-
tioned values, the variable
Load
has to be divided by 1000 and the
variable
Frequency
multiplied by 1024.
Function COM_HVPSU2D_Restart
int COM_HVPSU2D_Restart (WORD PortNumber);
Command: #
©
Response: #
©
Restarts the device and returns an error code according to Tab. 10.
The function issues a reboot of the device's CPU and waits until the
device responds again after the restart. This may take several sec-
onds.
Note that after the restart, the communication speed is restored to the
default value of 9600 baud. If a higher communication speed should
be used, the function
must be called
again.
The response to the direct command (
#
©
) occurs at the currently se-
lected data rate. After the response has been received, the data rate
must be restored in the host UART to the default value of 9600 baud
to be able to communicate with the device.
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]