Questions tagged [bit-bang]
A software implementation of a digital data stream on a digital I/O line. Bit-banging is opposite to using specialized hardware such as UART, MSSP (in PICs), USCI (in MSP430).
56
questions
6
votes
4
answers
344
views
Is there a canonical way to signal WS2811/2812 LED strip?
The WS2811/2812 protocol is well-defined and hence the chip now seems to dominate addressable strip lighting products.
People have managed to use SPI and UART to control it, and someone even did it ...
0
votes
0
answers
37
views
Hardware, architecture needed to be able to send bit-level messages on a CAN bus
I have a can bus with nodes and I need to be able to send low-level messages on this network, i.e. messages defined by ones and zeros and I also need such fine grained control so as to be able to ...
0
votes
1
answer
92
views
Access individual bits of a variable
I'm making a code on a PIC16F628A running at 4 MHz that receives the serial bitstream of a 433 MHz remote. The catch here is that I'm forced to do some rather questionable stuff because the pin ...
2
votes
2
answers
206
views
How can I receive the bitstream of a 433 MHz remote on PIC16F628A only using timer2?
I'm trying to interface a 433 MHz receiver module with a PIC16F628A, running at 4 MHz from the INTOSC. The idea is that using a generic 433 MHz remote, I could pair it to the uC and toggle some ...
0
votes
1
answer
201
views
Is it possible to exactly generate n number of clock pulses at half the clock frequency of the Atmega328p?
Let the problem be to exactly generate n clock pulses at half the clock frequency of the Atmel Atmega328p (datasheet here).
To generate a PWM at a prescaled clock frequency of the Atmel Amega328p, we ...
0
votes
0
answers
128
views
SPI Bit bang to enable/read/write EEPROM from TM4C123GXL
I have checked a few bit bang posts here but still couldn't figure it out.
The datasheet of the EEPROM is at: Datasheet of FT93C66A
I tried to interface with SPI but to no avail, so I decided to use ...
0
votes
0
answers
250
views
Cannot set up WS2812B LEDs with bit banging and ATmega328P at 16MHz
I have an ATmega328P (16MHz extern, GBoard with SIM900 module). I bought 10 LEDs with WS2812B module. My ATmega works with 3.3V but for LEDs I need 5V so I decided to connect TXB0104.
I connected ...
0
votes
1
answer
213
views
How to read the temperature of DS1620 thermometer using PIC16F877A?
Good afternoon.
I am trying to figure out how to make a PIC16F877A to read the temperature from the DS1620 sensor. Accordingly to the datasheet of the DS1620, I need to send two nibbles A (AAh) to the ...
1
vote
0
answers
689
views
Bit-bang I2C implement on DS1307 and Atmega328P problem
I currently implement I2C bit-bang for Master Arduino (AVR) to Read/Write to Arduino Slave using Wire.h and DS1307 RTC. My bit-bang i2c work perfectly with Arduino Slave read 8 bytes without ...
1
vote
1
answer
203
views
Missing 1 bit shift Bitbang I2C Atmega328p
I implement bit-banging I2C on Atmega328P and met the problem when the Master receives data from the slave. I'm in depression in debugging this code since I found no problem. Master Write work ...
3
votes
0
answers
236
views
Bit Timing Issues With a Software UART
(EDIT a big portion of the original question has been somewhat answered so it is out of date. For a more up to date version of what I am looking for now, please skip to EDIT 2, and use the following ...
1
vote
1
answer
210
views
Solution to interface SD card with microcontroller using only 2 pins (I2C/SPI)
So I am trying to add an SD card to my circuit and unfortunately, all I have left are 4 GPIOs, but I was asked to try and find a solution to only use 2. So using 4 is a worst case scenario.
I thought ...
0
votes
2
answers
545
views
Is there an IC which converts I2C/UART/SPI (or any standard communication interface) commands directly to DALI2 format? [closed]
Is there an IC which converts I2C/ UART/ SPI commands (or any standard communication interface) directly to DALI2 format? DALI seems similar to 1.2k baud UART in a sense, but is encoded in Manchester ...
1
vote
4
answers
210
views
How slowly can you clock an AT25DF641A SPI Flash?
I am have started to try to use a SPI Flash. To better understand how it works, I decided to try to bit bang it with the GPIO on a Raspberry Pi. Everything seems correct, but I do not seem to have ...
1
vote
1
answer
271
views
How does the JTAG TAP react to clock cycling, and why am I unable to get an instruction through?
I am writing a program for bit-banging a JTAG interface. As far as I understood the JTAG interface, it should act like this:
On clock rise, the TDI and TMS inputs are sampled, if Shift-IR or Shift-DR ...