数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4655 数据表(PDF) 9 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
标志 STMICROELECTRONICS - STMicroelectronics

AN4655 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN4655 Datasheet HTML 5Page - STMicroelectronics AN4655 Datasheet HTML 6Page - STMicroelectronics AN4655 Datasheet HTML 7Page - STMicroelectronics AN4655 Datasheet HTML 8Page - STMicroelectronics AN4655 Datasheet HTML 9Page - STMicroelectronics AN4655 Datasheet HTML 10Page - STMicroelectronics AN4655 Datasheet HTML 11Page - STMicroelectronics AN4655 Datasheet HTML 12Page - STMicroelectronics AN4655 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 21 page
background image
DocID027483 Rev 1
9/21
AN4655
SW methods
20
functions to configure a dedicated peripheral, to perform single read and write operations, or
to open and close communication sessions. The process events are normally handled by
callbacks performing the correct flow of data or occasional error states. Universality pains
here again and the task can be simplified considerably when some functionality can be
limited or even removed and not supported. Big advantage of this method is better code
readability while the code can remain well structured. Drawbacks are time and performance
constraints.
2.2
Applicable methods
Two basic methods can be applied when emulating a communication peripheral by SW:
1.
bit banging;
2.
a combination of HW and SW control of GPIOs.
2.2.1
Bit banging
Signals are emulated by direct control of IO ports via SW purely. This method can be used
at synchronous protocols especially (SPI, I2C) where signal timing usually isn’t so critical.
SPI bit-banging sequence and I2C master bit-banging sequence indicate possible solutions.
2.2.2
Combination of HW and SW control of GPIOs
Signals are emulated indirectly while using capability of specific HW to control IOs at
required times. The communication logic is then implemented at software level, mostly at
interrupt services driven from the internal HW events. User can study the principle in UART
duplex channel based on combination of HW and SW control of GPIOs, demonstrating the
application of this method in a real case.
The user can find another possible solution in already cited AN4457.
This document describes in detail HW synchronization between timers and DMA: events
from a dedicated timer synchronize and trigger sequences of DMA transfers between a
specific data buffer and GPIO registers. Content of data buffer can be either source of GPIO
output control sequence stored in advance by SW in a a dedicated memory area, or a
sequence of samples read and stored from GPIO input to be analyzed after the closing of
the transaction. These transfers are provided at exact intervals during communication
transactions, while a simultaneous flow in both direction can proceed under independent
control.
2.3
Common principles of the methodology
2.3.1
Master vs. slave, clock signal aspects
Master emulation is an easier case in principle. It can determine time slot flow
communication, data flow can be handled off line (e.g. CRC calculation can be prepared in
advance and checked afterwards over the data package) so the physical data flow can be
handled in a relatively fast way.
Master providing synchronous clock is the simplest case. Master starts the flow, handles
clock & data signal, timing is not crucial here and it is nearly free except some if some



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


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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