поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4655 датащи(PDF) 14 Page - STMicroelectronics

номер детали AN4655
подробное описание детали  Virtually increasing the number of serial communication peripherals in STM32 applications
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4655 датащи(HTML) 14 Page - STMicroelectronics

Back Button AN4655 Datasheet HTML 10Page - STMicroelectronics AN4655 Datasheet HTML 11Page - STMicroelectronics AN4655 Datasheet HTML 12Page - STMicroelectronics AN4655 Datasheet HTML 13Page - STMicroelectronics AN4655 Datasheet HTML 14Page - STMicroelectronics AN4655 Datasheet HTML 15Page - STMicroelectronics AN4655 Datasheet HTML 16Page - STMicroelectronics AN4655 Datasheet HTML 17Page - STMicroelectronics AN4655 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 21 page
background image
SW methods
AN4655
14/21
DocID027483 Rev 1
receive frame. All even compare interrupts are discarded. After the stop bits of the frame are
sampled, the Rx pin is switched back to input capture mode and waits for the next frame
start condition. The detection of noise while the stop bits are being sampled should cause a
frame error. If a noise is detected during start bit, the receive process should be aborted and
the Rx pin switched back to input capture mode while waiting for the next falling edge
capture.
User can build an API interface upon this low level HW abstraction level. It can include the
UART channel initialization, enable and disable Rx and Tx channels, read and write the data
flow (e.g. control the data buffers) and check the transactions’ status. Size of data, parity
control number of stop bits or other control can be solved on pre-compilation level by
conditional compilation to speed up the code when these features are not used.
2.5.2
SPI bit-banging sequence
This is an example of procedure controlling SPI master full duplex 8 bits data frame
transaction (MSB first format). The procedure can be written based as a sequence of
applied macros to achieve a maximum speed, even if it doesn’t fully respect good common
software practice requiring structured code organization (e.g. collect repeated parts at loops
or subroutines).
/**
* @brief SPI master RW bit-bang
* @param unsigned char wb - data to transmit
* @retval unsigned char rb – data received
*/
unsigned char SPI_master_8_bit_data_RW (unsigned char wb)
{
unsigned char msk = 0x80;
unsigned char rb = 0;
do
{
#if CPHA=0
miso_control(rb);
mosi_control(wb);
setup_dly();
sck_odd_edge_control();
half_bit_dly();
sck_even_edge_control();
setup_dly();
#else /* CPHA=1 */
sck_odd_edge_control();
setup_dly();
miso_control(rb);
mosi_control(wb);
setup_dly();
sck_even_edge_control();
half_bit_dly();



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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