Цитата(bassizlink @ Aug 18 2016, 22:07)

Начал изучать программирование микроконтроллеров. Сделал для себя вывод, что скорость UART изменяется делителем частоты.Интуитивно понял, что копать надо в datasheet на BC417143B микросхемы.Там нашел формулу 9600 бод * 0.004096 = DEC39 = 0x27. То есть 0xFF =DEC 255 , 255/0.004096= 62200 бод.
Вот что выдает PSTool при нажатии кнопки "describe" на соответствующем разделе:
The UART's (initial) Baud rate in builds from HCI 18.X. (This PS
key's name is similar to PSKEY_UART_BAUD_RATE, used in firmware
builds before HCI 18.X.)
A value of 0 has a special meaning which is to enable automatic
detection of the UART baud rate from data sent by the host to the
BlueCore following a chip reset. Note that this is designed for
use with ROM devices; automatic detection of Baud rate does not
work for the DFU upgrade procedure.
When the system is configured to use a UART-based host transport,
i.e. if PSKEY_HOST_INTERFACE selects BCSP, H4, H5 or User (VM
access to the UART), then the UART's Baud rate is set to the value
of this PS key when the firmware boots. The PS key's value is:
Baud rate = pskey_value/0.004096
Some common values are:
38k4 baud - 157 (0x009d)
57k6 baud - 236 (0x00ec)
115k2 baud - 472 (0x01d8)
230k4 baud - 944 (0x03b0)
460k8 baud - 1887 (0x075f)
921k6 baud - 3775 (0x0ebf)
1382k4 baud - 5662 (0x161e)
The maximum rated speed for the UART hardware is 1.5 Mbaud, although
this key can be set to a higher value.
The BCCMD command "Config_UART" enables the host to set the UART
to a different Baud rate after booting, but the change is lost
when the firmware reboots.
Сообщение отредактировал bassizlink - Aug 22 2016, 12:40