Serial_Disable - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

177
C-Control Pro Mega Series
divider = (14745600 / baudrate / 16 ) -1
Example: 15 = (14745600 / 57600 / 16 ) -1
DoubleClock Mode
If the High-Bit of the divider is set, the DoubleClock Mode is enabled. In this mode the divider value
must be doubled. E.g. for 57600 baud a divider value of 0x0f (decimal 15) or 0x801e can be used.
For the MIDI baudrate (31250 baud) a divider of (14745600 / 31250 / 16 ) -1 = 28.49 had to be used.
If DoubleClock is enabled, the divider value can be specified more accurate: 0x8039
Table divider definition:
divider
767
383
191
95
63
47
31
0x8039
23
15
11
7
3

6.15.2 Serial_Disable

Serial Functions
Syntax
void Serial_Disable(byte serport);
Sub Serial_Disable(serport As Byte)
Description
The serial interface gets switched off and the corresponding ports can be used otherwise.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port, ...)
definition
SR_BD1200
SR_BD2400
SR_BD4800
SR_BD9600
SR_BD14400
SR_BD19200
SR_BD28800
SR_BDMIDI
SR_BD38400
SR_BD57600
SR_BD76800
SR_BD115200
SR_BD230400
baudrate
1200bps
2400bps
4800bps
9600bps
14400bps
19200bps
28800bps
31250bps
38400bps
57600bps
76800bps
115200bps
230400bps
© 2008 Conrad Electronic

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents