Skip to content

Serial Protocols

Jorge Pérez edited this page Oct 22, 2024 · 15 revisions

Signal Types

Analog vs Digital

Analog Digital
Es como los números reales, pueden ser un entero, o fraccionales Es una muestra de la digital
Sus voltajes son de {-∞,+∞} La escala se limita a lo que el chip puede procesar
Tratan de representar de manera finita los valores analógicos
analogSig digSignal

Serial

  • The value is encoded
  • The complete signal varies on the protocol
Good Bad
image image

OSI Model, and Network Layers

image

PHYSICALBUSSES

When working with embedded systems, we mainly work with the physical, data link


Fetching types

https://forum.allaboutcircuits.com/threads/difference-between-polling-dma-and-interrupt.152493/

Polling

  • Software implemented
  • Continuously checks the value of the pin
  • The state changes on the loop/flag reading
  • Can block the processor from doing other things
  • Easy to set up

Interrupt

  • Hardware implemented
  • ISR - Interrupt Service Routine
  • IRQ - Interrupt Request
  • Try to not do something computationally complex

image

https://digilent.com/blog/wp-content/uploads/2015/01/check-interrupt-flag.png

DMA - Direct Memory Access

  • Can handle data transfers without the processor intervention.
  • Needs special hardware
  • Peripheral to memory or Memory to peripheral
  • Typically uses interrupts to notify when transfer has started/completed

image

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_DMA

Packages

image

SBUS - signal inverted

References

Clone this wiki locally