177
C-Control Pro Mega Series
© 2008 Conrad Electronic
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
definition
baudrate
767
SR_BD1200
1200bps
383
SR_BD2400
2400bps
191
SR_BD4800
4800bps
95
SR_BD9600
9600bps
63
SR_BD14400
14400bps
47
SR_BD19200
19200bps
31
SR_BD28800
28800bps
0x8039
SR_BDMIDI
31250bps
23
SR_BD38400
38400bps
15
SR_BD57600
57600bps
11
SR_BD76800
76800bps
7
SR_BD115200
115200bps
3
SR_BD230400
230400bps
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, ...)
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......