Вт дек 11, 2018 02:50:57
Вт дек 11, 2018 05:58:55
Вт дек 11, 2018 07:12:16
Вт дек 11, 2018 07:16:50
Уже обсуждалось.
Вт дек 11, 2018 09:31:58
Вт дек 11, 2018 09:56:56
Вт дек 11, 2018 11:41:42
Вт дек 11, 2018 11:48:00
Вт дек 11, 2018 12:16:17
Ну мы то знаем как несет от досика, считающего своим долгом писать гадости на форуме.dosikus писал(а):Мурик, ну мы-то знаем какие и как пахнут твои дрова
Вт дек 11, 2018 13:34:09
Вт дек 11, 2018 20:11:29
ктсати, вот прям навскидку ST один из весьма активных контрибуторов mbed)
27.5.8 Modbus communication using USART
The USART offers basic support for the implementation of Modbus/RTU and Modbus/ASCII
protocols. Modbus/RTU is a half duplex, block transfer protocol. The control part of the
protocol (address recognition, block integrity control and command interpretation) must be
implemented in software.
The USART offers basic support for the end of the block detection, without software
overhead or other resources.
Modbus/RTU
In this mode, the end of one block is recognized by a “silence” (idle line) for more than 2
character times. This function is implemented through the programmable timeout function.
The timeout function and interrupt must be activated, through the RTOEN bit in the
USART_CR2 register and the RTOIE in the USART_CR1 register. The value corresponding
to a timeout of 2 character times (for example 22 x bit duration) must be programmed in the
RTO register. when the receive line is idle for this duration, after the last stop bit is received,
an interrupt is generated, informing the software that the current block reception is
completed.
Modbus/ASCII
In this mode, the end of a block is recognized by a specific (CR/LF) character sequence.
The USART manages this mechanism using the character match function.
By programming the LF ASCII code in the ADD[7:0] field and by activating the character
match interrupt (CMIE=1), the software is informed when a LF has been received and can
check the CR/LF in the DMA buffer
Чт дек 13, 2018 00:45:53
Чт дек 13, 2018 05:52:20
Чт дек 13, 2018 10:17:36
Чт дек 13, 2018 10:47:15
Чт дек 13, 2018 10:55:09
Чт дек 13, 2018 11:03:52
Чт дек 13, 2018 11:08:49
Чт дек 13, 2018 11:21:42
Чт дек 13, 2018 11:23:17