Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN4655 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN4655
Description  Virtually increasing the number of serial communication peripherals in STM32 applications
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4655 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button 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 AN4655 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 21 page
background image
SW methods
AN4655
10/21
DocID027483 Rev 1
specific limitation has to be respected on the (usually slower) slave side (e.g setup or hold
times, communication timeouts).
Asynchronous master is much more demanding as lack of performance could make a
wrong effect and corrupt the data flow. Master has to be able to provide always correct
timing of data output and/or input at this case.
Emulation of a slave is usually the worst case (independently if clock signal is synchronous
or not), as slave has to:
•
be always ready for the transaction slot;
•
be well synchronized with the slot start (especially with asynchronous clock);
•
keep correct timing within the slot (derived from time calculations or clock signal
change);
•
handle correct data flow (input, output, or even both signals).
2.3.2
Interrupts and DMA vs. bit-banging
Interrupts derived from GPIO, timer or DMA events are easier to handle and more
systematic at FW level. Required protocol can be well synchronized with data flow if system
has enough performance capacity to handle all needed software procedures. User can
control all the flow and service the events either directly inside the interrupt services or by
dedicated callbacks provided by API. The second way gives a space to sure level of
universality and keeps the SW well structured. But this way requires wider reserve of
microcontroller performance to be sufficient to manage all the communication events at real
time. This could be a limitation when supporting higher communication speeds while duplex
data flow is handled especially.
When DMA is used, the user should consider the capacity of internal buses, especially
when additional DMA processes are handled in parallel, and respect their priorities. Every
DMA transfer blocks the involved buses for a few cycles and a significant latency of a DMA
service can appear when the system handles interrupt service entry and return, or when
specific instructions requiring bus traffic are executed.
Let us imagine a specific case when a signal edge is handled by external GPIO interrupt.
The FW developer has to calculate with the:
•
interrupt service latency (few CPU cycles, depends on other pending interrupts and
their priorities as well);
•
process entry into interrupt service (context saving delay);
•
state logic (time needed for detection communication phase and action to be performed
by the software);
•
flow dedicated action (set data output, sample data input, handle data store, change of
clock signal, setup timing and dedicated control of next events, setup internal flags, call
and provide process call backs at significant milestones of the flow);
•
HW setup necessary to keep and follow the flow (clearing interrupt event flags, enable
disable associated HW events);
•
return from interrupt service (restore context).
Bit-banging can be significantly faster but it is not easy task to keep any proper timing when
this control is applied. It usually carries a software overhead consuming CPU cycles that
they could be utilized for the other processes otherwise. This may have a noticeable effect
on system responsiveness to other events, and in a hard real-time system, may significantly
impact the system’s ability to meet real-time deadlines.



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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