| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3270 bảng dữ liệu(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3270 bảng dữ liệu(HTML) 18 Page - STMicroelectronics |
|
18 / 23 page ![]() AES block processing AN3270 18/23 Doc ID 17919 Rev 2 Figure 15. is a screenshot of block chaining mode selection. Figure 15. Chaining mode selection The text received through the RS232 port is saved in a static buffer. The end of transmission occurs when the maximum buffer size has been reached or the carriage return (enter key) has been pressed. The maximum buffer size is defined in main.h: #define RX_BUFFER_SIZE (uint16_t) 128 The following code listing (available in stm8l15x_it.c) shows how the end of transmission is detected: if ((RxCounter == RX_BUFFER_SIZE) || (RxBuffer[RxCounter-1] == 0x0D)) { /* Disable the Read data register not empty interrupt */ USART_ITConfig(EVAL_COM1, USART_IT_RXNE, DISABLE); /* Max buffer size had been reached or carriage return had been pressed */ TransferComplete = 1; ........ ....... If the received buffer size is not a multiple of 128-bit, it is padded with the pre-defined pad character. it is defined in main.h #define PAD_CHARACTER (uint8_t) 0x00 The BufferInit() function (in main.c) is available for padding purposes. It checks the size of the entered text and then pads it if necessary. |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |