Search Engine

Bit Banging Code

Add Question

27 Threads found on Bit Banging Code
Ok. Here you go. I am attaching the mikroC PRO PIC project I made. You can't reduce the delays more. You are using bit-banging SPI instead of the PIC hardware SPI. It's hardly possible to achieve a similar speed this way. I don't see how the designs in post #16 and #17 can be helpful.
I don't understand the code. Why are you calling the initialization repeatedly? Generally it's hard to understand what you are trying to achieve. AD80066 is designed to work with MHz clocks, I'm not sure if it gives meaningful output with slow bit-banging clocks. Even if it would, what is it good for?
Hello Friends, I am trying SPI bit banging approach to interface ADC 0832 with AT89C51RD2. I have written following code for same purpose; however I am not able to develop logic for receiving a serial data from ADC 0832 and convert it into readable/usable byte to transmit received byte to PORT 2. Please find the attached (...)
Hi Friends, I am trying to interface CC1125 with PIC24F32KA302 i am new to SPI. I am looking for the SPI code for this . Can any one help me how to write code for it in XC 16 compiler using bit banging ports.
You should use CCP registers to generate PWM signals, bit banging isn't the greatest. The code you are showing appears to be setting the ports correctly for I/O. What is your delay structure or what compiler is this? What is the code outputting? How are you measuring it? How is the hardware setup?
I have issues in spi communication in bit banging technique.. As of now am able to send/write data to the peripheral... it works fine as expected.. But when i try to read data from the same peripheral but the recieved data is not as expected.. Am using a standard library code for bit banging...and i ve (...)
Hello I am interfacing Freescale Accelerometer MMA8653 with STM32F100 using I2C bit banging it working using interrupts , and the interfacing of the Accelerometer are configured as high to low and controller port configured as input pull up and on the falling edge I have a specific code to perform like reading the new (...)
Can someone give me exactly the code of bit banding using LPC4357 set pin 9_5 GPIO5 high ?
i want to interface RF-ID module using any two pins of 8051... i have written following code... include #include #define _XTAL_FREQ 11059200 #define Baudrate 9600 #define OnebitDelay (100000000/Baudrate) #define port P0 #define lcdport P1 //14,13,12,11 pins of lcd and 1.7,1.6,1.5,1.4 o
hitech c software uart example code /* * Serial port driver (uses bit-banging) * for 16Cxx series parts. * * IMPORTANT: Compile this file with FULL optimization * * Copyright (C)1996 HI-TECH Software. * Freely distributable. */ #include /* * Tunable parameters */ /* Xtal frequency */ #define XTAL 4000000 /* Baud rate
Hello! We connected SD with SPI interface, modified the code for this purpose. The problem may be here: what did you change and why? By the way, looking at your second code, are you bit-banging SPI? Or is it a test program? Using the definitions you have in your second piece of code, try to write a (...)
You can use PowerPC, by using bit-banging( ) approach you can perform the same. But I recommend you to do in hardware, as the PowerPC process is very complicated.
I would like to know which micro controller of 8051/8052 family which support ADE7763. I'm confused about ADE7763 having a 8bit or 16bit output. Thankx in advance
Hi, Hmmm... hope they are going to pay you extra for all your hard work !! Should try searching the web a lot more than I did for some ready made code examples, try ' Software SPI' or 'bit banging SPI'. Also look at 'PicList', they seem to have lots of code references.
Was there a question in there somewhere? Sounds like a fun project, you'll need to set up a timer to interrupt at a specific frequency, ideally 16x that of what you want to send data at, this clock can then be used to determine your timing parameters, generate a start bit, look for this start bit at the other end by sampling your incoming signal at
Hi, You have the Pics Hardware Usart on RC6 and RC7. If you want to use any other i/o Ports you can, but you must write your own Serial code, known as a Software Usart or bit banging There a some ready made examples on the web, though you do not say what language you are using.
FTDI site has all the appnotes and sample code, including C++ for bit-banging, you'll need. Application Notes Look in the appropriate appnote, for your device model, links to code examples can be found within.
I assume you don't wish to use the built in SPI interface of the PIC? To use GPIO pins there is some example C code for bit banging SPI see Serial Peripheral Interface Bus - Wikipedia, the free encyclopedia
Hi, 1. The document you shared contains code for PIC microcontroller as (TRISB TRISA all happens in PIC). 2. bit banging is easy, follow rickeys world website on 8051 , so many examples for the same, use keil uvision or RIDE to compile interface LCD over I2C you either need a another MCU as I2C slave or I2C IO expander, another MCU wo
If you are going to post long sections of code, please use the 'code' tag before and after it to preserve formatting. It would also help if you told us what the code is supposed to do and put far more comments in it. However, without going into too much detail, it looks like you are trying to send something serially by (...)
Your DAC chip only has a SPI port to receive data on, so you must send the data in the SPI convention. Many smaller pic chips do not have a hardware SPI port, but they can still communicate with a SPI device by software control, commonly called ' bit banging '. A few searches of the forums should find you some code to work from that (...)
I am trying to interface the Nokia 6610 color LCD with a pic18F4550. I am using CCS PICC compiler for the programming of the microcontroller. I can do everything with the LCD by using software spi i.e. bit banging but when I try to do the same using hardware SPI nothing happens at all. Here is the code that i am talking about void nokia_
bit time = 1/baudrate are you using interrupt for detecting the start bit? check this link hope it helps
Hi Yes it is , you will need to do bit banging on the I/O poert simulating I2C bus in master mode Do not try to do I2C bus in slave mode using I/O very hard to impliment I belive you can find code for I2C master mode in TI site All the best Bobi
that code does work. If you post your code, and a block diagram or schematic or an explanation of your hardware setup someone here would be able to help you. First, you should try communicating with the PC. Use a terminal program to verify that everything is working. For multi-processor communication you shouldn't use the (...)
Philips has an application note for bit-banged serial port. May I suggest that it would be much more accurate if you do it in ASM. In C, it is difficult to predict the timing of your code.
Yes, but you have to resort to bit-banging. Check here for code: /Rambo