Search: in
Bit banging
Bit banging in Encyclopedia Encyclopedia
  Tutorials     Encyclopedia     Videos     Books     Software     DVDs  
       





Bit banging

Bit banging is a technique for serial communications using software instead of dedicated hardware. Software directly sets and samples the state of pins on the microcontroller, and is responsible for all parameters of the signal: timing, levels, synchronization, etc. In contrast to bit banging, dedicated hardware (such as a modem, UART, or shift register) handles these parameters and provides a (buffered) data interface in other systems, so software is not required to perform signal demodulation. Bit banging can be implemented at very low cost, and is used in, for example, embedded systems.[1]

Although it is often considered to be something of a hack, bit banging does allow the same device to use different protocols with minimal or no hardware changes required.

There are some problems with bit banging. The software emulation process consumes more processing power than does supporting dedicated hardware. The microcontroller spends much of its time reading or sending samples to and from the pin, at the expense of other tasks. The signal produced normally has more jitter or glitches, especially if the processor is also executing other tasks while communicating. However, if the bit-banging software is interrupt-driven by the signal, this may be of minor importance, especially if control signals such as RTS, CTS or DCD are available.

Contents


C code example

See also

References

External links

Asynchronous Serial (RS-232)
I2C Bus
SPI Bus

da:Bit-banging de:Bit-Banging ru:Bit-banging






Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Search for Bit banging in Tutorials
Search for Bit banging in Encyclopedia
Search for Bit banging in Videos
Search for Bit banging in Books
Search for Bit banging in Software
Search for Bit banging in DVDs
Search for Bit banging in Store




Advertisement




Bit banging in Encyclopedia
Bit_banging top Bit_banging

Home - Add TutorGig to Your Site - Disclaimer

©2011-2013 TutorGig.info All Rights Reserved. Privacy Statement