Bit Banging Code

Add Question

151 Threads found on edaboard.com: Bit Banging Code
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.
Maverickmax, Its becoming a habit :) When I wanted to test out my MIDI controller (basically a UART) I used 'hyperterimal' once set to the correct baud, its doesn't show you the wave form, but it does display what the packet is in ASCII. After all, it was designed for text. There are some progs on the net (free ones) that are similar but
Your code : ;Rx at another AT89C51 SEND EQU P1.0 ;Transmit on this pin RECV EQU P1.1 ;Receive on this pin ; The serial baud rate is determined by the processor crystal, and ; this constant which is calculated as: (((crystal/baud)/12) - 5) / 2 bitTIM EQU 494 ;(((3579545/300)/12) - 5) / 2 ; getc: loop: JB RECV,loop ; Wait fo
Configuring one channel for bit bang using ftd2xx driver and the other as virual com port is supported for FT2232 (I guess, it's the same for FTx232H). It has to be setup in the configuration EEPROM. Achievable throughput in bit bang depends on how you manage to send off a number of actions as a block. If you're required to poll a device status,
Hi, I am a newbie to Cypress PSoC syste. I was wondering if anybody can help me build a cheap programmer using parallel port and bit banging code. Any schematic &/or C code will be much appreciated. Thanks, newbie
Hi, bitbanged receiving is almost always a problem ... In case of your GPS you could try to switch the GPS to a lower baudrate (1200 baud for example) bitbanging might be easier then because the timing is less critical. What is the clock frequency of your pic and which code do you use for bitbanged (...)
'bit banging' if your using normal microcontroller otherwise use serial (NOT UART - That is Asynchronous data) synchronous controllers like the Z85C30 from Zilog. No gaps or what ever !!. You can use this chip also in plain mode, that is "shift register" mode with only CRC calculation and sync function !!. I also used it as a nice shift register b
I woiuld imagine that the 8255 was made forthe 808X family of micros in which case a port access statement would probably take care of all the proper pins going high and low with the proper timing. For other chips you would probably have to do bit banging. This would definitley be the case for micros that do not have hardwre/opcodes for (...)
I've never had a PIC that would work as both master and slave on 2 different I2C buses. Even if CCS compiler can't handle multiple #use i2c(...) directives, you can write your own bit-banged software I2C code for the bus, where PIC is a master, and use only one #use i2c(..., slave) for the bus, where the PIC is a slave. I would recommend the s
need to use bit banging concept for software communication
bit time = 1/baudrate are you using interrupt for detecting the start bit? check this link hope it helps
Hi, I am searching for an implementation for bit-bang I2C slave for PIC family, but all I found was few master implementations. Any member came across such a code in C? Thanks
Hi Hobby_85. Your system is very similar to one of mine. I have one master control unit indoors and 5 slaves controlled from it. The master has the radio link, a link to a PC, and LCD display, keypad and a few warning lights/buzzers. The slaves do various things from monitoring RFID tags to controlling pumping equipment. Firstly, the master/
LIST P=PIC16F84, R=DEC #INCLUDE "p16f84.inc" ;------------------------------------------------------------------------------ ; ASSEMBLE With MPASM. available for free from Microchip Technology Inc. is a Leading Provider of Microcontroller and Analog Semiconductors, providing low-risk product development, lower
Hi, Have used an assembler 18F 16x2 lcd routine for a long time - there are many slightly different ways doing the same thing. If you can wait till tonight I can strip it out of my code and produce a complete, tested working program and send it over. Are you wantng to use a 6 bit o 7 bit version ?
I'm using 2 Atmega16 MCUs and i want to interface between them using I2C and i know the pins configuration but i don't know the code which i should write can any one help me?? Application notes from
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, I have the attached source code, used to control a Nokia 3510i LCD, that has been working well with a PIC16F88 and PIC18F4550 for a long time. The code is using bit-banging to simulate SPI to interface with the LCD. Now I am attempting to migrate it to a PIC24FJ64GA002, and strangely enough, it just doesn't work (...)
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 (...)
A Baud rate of 9600 can be a challenge for a bitbanged UART. I would suggest attempting either 2400 or 4800 Baud before troubleshooting the 9600 Baud rate. Also attempt to establish communications using a standard serial cable before utilizing any RF or Bluetooth modules. BigDog
About the only choice you have is to "bit Bang" the data. There are plenty of examples on the web of how to do that.
On NoIce site you could read : # Enough EPROM to hold the monitor (about 1024 bytes; smaller than most stand-alone monitors). # Enough RAM to hold the monitor's data (32 to 256 bytes, depending on the number of processor registers and the desired communications buffer size) # A UART to communicate with the PC host (or an input bit, an output b
2pins - 1 for data, 1 for clock and then bit banging on the receiver you can also use a additionally pin for interrupt generation ... ... or ... you connect clock signal to a port pin with int. capability ... ... or ... or ... or ... This is not so hard, isn't it? :wink:
No..the question hasn't been answered!!!! The question was also what command are accepted by PS2 gamepad... Normally they just power-on as normal on/off joystick type and you can either switch to analog manually or via serial interface...and tehr are for sure more supported commands here Yes, you are right this haven'
The PIC you are using has a hardware USART. A hardware USART makes things easier as all you have to do is to initialise it and pump your data to/from a particular register. A software USART is a USART implemented in software, by a process called bit-banging, where you push/read bits out of a GPIO pin according to the serial RS232 protocol. (...)
Yes, you can do this. The technique you are looking for is called "bit-banging" since the 16F84 does not have a UART. Take a look here for some good stuff: Also, see here - scroll down to the software-only serial links: h
I'm doing a project with PIC 16F628, and it has only one serial port. However I need two serial ports, therefore I have to convert one Parallel port into a Serial port in order to make the PIC communicate with a PC. But I have to do this by software, and I haven't found a site that explains how to do this or that has the source code.
Yes, but you have to resort to bit-banging. Check here for code: /Rambo
Hi maverick, AT89C51 and AT89C52 has no hardware support (special registers) by default for I2C bus. If you want to use these microcontroller for I2C implementation you have to do a what is called "bit bang" procedure. For learning about I2C you can look here:
Hi Munib, I've got the best results with the following procedure: 1. send out a preamble (1-3 Bytes this depends on your receiver), take 0xAA or 0x55 2. use a start sign, as example 0x33 3. detect the start sign via bit banging the port pin 4. after you have your start sign switch on the uart 5. if your message is short, use bit (...)
After disasm usb blaster driver - file jtag_hw_usb-blaster.dll some infos are found: ftdi direct driver ftd2xx.dll called. Possible device ID's : VID_09FB&PID_6001 VID_09FB&PID_6002 VID_09FB&PID_6003 Ftdi serial EEPROM (after config info) contain blaster revision number. Driver checked this number when staring. Only thys function
Hardware: Well, you'll be needing to convert the TTL output of the AVR to RS232 transmission line voltages to be sent along the serial cable, these range from -25v to +25v. You can use the MAX232 for this. Another thing is, will you be using all the pins of the serial port (such as the CTS or RTS etc) or just the Tx/Rx and Ground lines? Soft
I am a beginner in PIC and several weeks ago, I found the MikroBasic compiler. The IDE is good and I was able to make my first simple program, like running light. Unfortunately, it seems that the Mikrobasic compiler lacked the necessary documentations which a beginner like me needs, like simultaneously setting the bits , bit-banging (...)
This is the code I want to convert, ; Generated by WinDis84, (c) Nigel Goodwin 1998. LIST P=16F84, F=INHX8M include "P16FXX.inc" ORG 0x0000 MOVLW 0x00 MOVWF PCLATH GOTO Label_0001 NOP Label_0016 MOVLW 0x21 MOVWF
Look for example here for a small explanation of the SPI bus: You have two options: 1) if your micro has spi hardware built in I would use this 2) you can create SPI via "bit banging" best regards
Hi The SPI shift register is size limit e.g. 8 bit or 16 bit in some micro there for you have to reload the register from packet to packet All the best Bobi
Hi, As far as I know, most RF systems can only transmit a 'DC- balanced' signal, with no DC component. You are transmitting standard serial (start, byte, stop) which has a DC bias, when its idle the line is high. However, because the TX/RX can't convey the 'DC component' of the signal, at your Rx, the idle signal will just drop to zero, fool
The SPI interface can easily be implmented in software by bit-bashing. If the 8051 is going to be the master, then you do not need to use the interrupt. Simply start shifting data in/ out as you wish. The timing is not critical, as long as you do not exceed the maximum speed of any of the slaves (I find it hard to believe you could). If the 8
Hi Vinash, I've notice you struggle to get some ADC with AT89C4051. First with default comparator and RC external. Then you tried with MCP3208 suitable for 4051 due to few connecting lines using SPI bit bang since 4051 has no default SPI interface. Now y
Hai CCS is somewhat easy to start because of lots of built in functions and "configuration "settings. For example you can create a bit banging serial port or IIC by simply calling a function of CCS compiler with the required pins specified but the code will not be portable to another chip because you will be heavily (...)
The easiest way of learnig is to work with examples .. Here you will find detailed description, including 8050-code, on how to interface 24CXX memory with 8051-derivative: This article covers the specific hardware description and software routines required to interface the MAX7651 and MAX7
i am using only one slave. so do i need to connect the SS pin? i am not able to transmit any data... can u give an example code? IMHO, the SS need to be connected too. I use bit banging technique rather than the SPI engine. The code can be ported to any uC that do not have SPI engine. Cheers Ravi
Is it possible to use USART engine for transfering data from one PIC to another (Programming 16FXX from 16F87XA) or I have to use bit banging? Why not ! In the PICmicro that do not have UART engine, bit banging technique is used. As long as RS232 communication occurs using BB or UART, communication can and will occur
The '508 part doesn't have a hw serial port, but TX is easy to do by bit banging. You could just have the PIC output the data constantly. Regards,
everything anybody mentioned here is true but still i did several pic adc with common ground, no lpf, only bypass c and never had problem with such high noise. breadboard with bypass c only gives me abt 1-2 bit noise maximum. so probably there is other problem regards cancel
Hi Elnegm USART is hardware - Universal Synchronous Asynchronous Receive & Transmit Engine. No fixed protocol (7,8 or 9 bit with or without Receiver Addressing) but is normally capable of protocols that incorporate: Asynchronous - usually RS232, RS422 & RS485 - two wires TX & RX with pre-defined data rate and receiving synchron
Hello friends, Can anyone please explain what a uart is?And is it necessary that Uart must be of 8bits.And how many registers are used in that?And is there by any chance the output from Uart parallel? I know that Uart is designed for serial data output,but can data be absorbed from any registers from where it is parallel? waiting for reply Che
Hi I am currently stuggeling to get my SD Card to interface with my PIC18F4550. I keep on getting a ERROR in Hyperterminal: Test MMC driver mmc init fault Start... I am using CCS compiler and interface the SD Card and MMC card via SPI. I just want to write data to the card and read
To suppose the IR receiver chip will filter out the carrier, and define the modulated carrier is SIGNAL, other is IDLE. In fact, to decode Philips RC-5/RC-5X (bi-phase/Manchester coding) is similar to others (such like NEC/Sony). An important trick for robust implementation is: tolerance. (ex: SIGNAL will be short if distance is long) All of the