[simpits-tech] Solid-state LED matrix help

Roberto Waltman fsim at rwaltman.com
Tue Jul 19 19:57:41 PDT 2011


dabigboy at cox.net wrote:

> ....now to research "bit-banging"

Bit-banging means just manipulating I/O pins under software 
control to achieve whatever you need to achieve were those 
pins are connected.

For example, normally you would use a UART to provide serial 
communications. But if you need one UART more than what your 
controller provides, (or the UART(s) pins are taken by a 
different function), you can "bit-bang" one by using output 
commands + delays in software to provide the correct 
waveforms. (For Tx).
Or use input commands + measuring the timing of transitions. 
(For Rx.)

Same for, for example, an SPI interface. Do not have an 
available SPI controller, "fabricate" one  with 4 I/O pins.

Same for I2C, stepper motor controllers, reading a rotary 
encoder, even USB.

Or interfacing with a display.

-- 
Roberto Waltman



More information about the Simpits-tech mailing list