pic16f877a uart c code problm

Started by sivaramakrishna in comp.arch.embedded10 years ago 5 replies

Hai to all, Iam trying to communicate from pic 16f877a to the pc's hyperterminal at 9600 baud rate. Iam posting my code for this. Iam able...

Hai to all, Iam trying to communicate from pic 16f877a to the pc's hyperterminal at 9600 baud rate. Iam posting my code for this. Iam able to simulate with mplab but I could not implement with hardware. I checked for max232, rs232. They seem to be working perfect. But iam not getting the data through hyperterminal comm port. My crystal oscillator is 8mhz. /* uart serial communicati...


Cheap, small quad UART needed

Started by Meindert Sprang in comp.arch.embedded12 years ago 25 replies

Hi Guru's I need a quad UART chip with only RXD and TXD per channel, no handshake required, preferable communicating with my CPU through an...

Hi Guru's I need a quad UART chip with only RXD and TXD per channel, no handshake required, preferable communicating with my CPU through an SPI port. Baudrates in the range of 4800 to 38400 baud. Oh, and it needs to be cheap. I am thinking about a small controller but most only have two UARTS and doing four in software at 38400 seems quite a challenge to me. So maybe s small FPGA/CPLD so...


USB - CDC - ACM - but without UART involved

Started by Bill in comp.arch.embedded10 years ago 1 reply

Hi, I want to exchange information between an AT91SAM7X256 and a PC through USB. The MCU has the USB transceiver inside, and there is...

Hi, I want to exchange information between an AT91SAM7X256 and a PC through USB. The MCU has the USB transceiver inside, and there is NO USB-to-serial conversion involved, because the data is consumed inside the MCU. There is no UART involved. I don't want to write any code at the host side. At the most, editing and using a ".inf" file. So, I 'm trying to take advantage of one of the ex...


UART Initial state

Started by svyamuna in comp.arch.embedded11 years ago 1 reply

Hi everybody, can anyone tell me what should be the potential at the tx and rx lines of uart at initial state.(whether idle or known state) i...

Hi everybody, can anyone tell me what should be the potential at the tx and rx lines of uart at initial state.(whether idle or known state) i read somewhere that at known state the potential diff is 5v, then the receiver at the other end can view it as a valid byte as anything potential above 2v is considered as a valid data. pl explain


UART I2C and SPI Tests

Started by IJALAB in comp.arch.embedded11 years ago 1 reply

Hello All, I have drafted test plan for verifying peripheral behavior but Does anyone have system level tests for testing i2c, uart and...

Hello All, I have drafted test plan for verifying peripheral behavior but Does anyone have system level tests for testing i2c, uart and spi peripherals from a software perspective? pls share the tests that one should carry out for thoroughly verifying a driver from: 1. i2c multimaster 2. i2c slave mode TX and Rx functions. regards bala


USB Host implementation with UART interface?

Started by ahmet in comp.arch.embedded14 years ago 1 reply

Hi Group, I m looking for a product(an ICor small board etc.) that takes on USB host tasks and provide UART interface. Does any...

Hi Group, I m looking for a product(an ICor small board etc.) that takes on USB host tasks and provide UART interface. Does any available? There is lots of USB to RS232 chip or cable ... but i think none of them has the capability to drive a USB slave product for example printer. We have an HP converter that can be connected to all USB printers via ethernet. So i inspired to search such a...


Multiple UARTs and multiple interrupts

Started by Ross Marchant in comp.arch.embedded15 years ago 2 replies

Hi All I want some feedback as to whether what I am doing is correct. I am using a DS80C320 with a Phillips SC28L198 8 channel UART. ...

Hi All I want some feedback as to whether what I am doing is correct. I am using a DS80C320 with a Phillips SC28L198 8 channel UART. 2 interrupts are triggered by the internal UARTS, 1 by the phillips chip and another by timer 0. I have found that for reliable operation i must turn all interrupts off when servicing the internal uart interrupts, and when putting a character into the ring...


Asyncronous serial bus network with UART and CAN transceiver

Started by pozz in comp.arch.embedded3 years ago 2 replies

I read the following page: http://xpcc.io/api/group__sab2.html The author suggests to use a CAN transceiver, instead of a RS485 half-duplex...

I read the following page: http://xpcc.io/api/group__sab2.html The author suggests to use a CAN transceiver, instead of a RS485 half-duplex transceiver, to create a serial multi-drop bus with nodes featuring normal UART peripherals. This should avoid the use of a third pin for direction control. What do you think? Does this solution works without problems? I think the control of the...


precision errors. microblaze vs matlab single precision... huh?

Started by chriskoh in comp.arch.embedded12 years ago 8 replies

Hi all embedded gurus out there, I am working on an embedded platform using microblaze. I am trying to implement an algo, which does a...

Hi all embedded gurus out there, I am working on an embedded platform using microblaze. I am trying to implement an algo, which does a inverse matrix function on the microblaze (via C) and then port the results back to matlab. so this is the scenario. 1) matlab generates some numbers, passes them to microblaze via the UART (ie. PC to UART) 2) microblaze will then generate the matri...


How to transport UART format data to PC?

Started by Anonymous in comp.arch.embedded12 years ago 15 replies

Hi All, I have an image sensor module which has an UART output format. Now, I want to get it work and transport the image data to PC for...

Hi All, I have an image sensor module which has an UART output format. Now, I want to get it work and transport the image data to PC for testing! What need I do to get it? The sensor works at least 460KBaud. I need the fast way to get it work, any suggestion would be great appreciated! Thanks! Jacky


Providing a clock with an MCU

Started by galapogos in comp.arch.embedded12 years ago 11 replies

Hi, I'm trying to communicate with a smart card via iso7816 by emulating the T=0 protocol using a generic MCU's UART interface. One problem...

Hi, I'm trying to communicate with a smart card via iso7816 by emulating the T=0 protocol using a generic MCU's UART interface. One problem I'm having is providing a clock to the smart card(~3.5712MHz) w/o the use of a seperate crystal. Obviously using the GPIO pins would be too slow, and the UART channel doesn't have a SCLK out. It's also impossible to get a divisor for the MCU's clock si...


UART SPI MCF5282

Started by Bjoern Braun in comp.arch.embedded15 years ago 2 replies

Hello all, i have some problems with the UART and the SPI modules of the MCF5282. What do i have to do to get them running. I work with the...

Hello all, i have some problems with the UART and the SPI modules of the MCF5282. What do i have to do to get them running. I work with the senTec evaluation Board COBRA5282 and a gcc GNU - Compiler. The Compiler is installed on the host and is running well. The Motorola dBug - Software on the Evaluation Board is also running well. Steps that I have done: - Creating a Header - Fi...


IAR Workbench Kickstart to CCE V3.1

Started by manohar2008 in comp.arch.embedded10 years ago

Hi, Using IAR workbench Kickstart V4 IDE i wrote a code for UART commmunication, by which i am sending some variables, this code...

Hi, Using IAR workbench Kickstart V4 IDE i wrote a code for UART commmunication, by which i am sending some variables, this code is perfectly working.But when i transferred the same code to CCE V3.1 Professional I am getting some junk values. Is it required to do any changes in the Source code or any changes in the settings of CCE V3.1 for Proper function of UART(not getting any...


Inter 'Board' Communication

Started by azraiyl in comp.arch.embedded9 years ago 14 replies

I've a 'Main' Board that needs to communicate with 4 other processors on other boards with at least 1 MiByte/s. A prefer to use the...

I've a 'Main' Board that needs to communicate with 4 other processors on other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have an A/D-Bus aswell. My first idea was to take a quad UART an put it on the 'Main' board. Problem is that they are all expensive. Any other idea? ---------------...


Problem with UART

Started by mimran in comp.arch.embedded13 years ago 1 reply

I m trying to run a simple UART program on EZ USB FX2. This program continously transmits the char 'A'. This is compiling fine in Keil. But when I...

I m trying to run a simple UART program on EZ USB FX2. This program continously transmits the char 'A'. This is compiling fine in Keil. But when I run it and see it on oscilloscope, the data rate is not exact what i have set it to 9600 baud. Moreover, the data bits and start stop bits are inverted . So I have to send inverted data (A xor 0xff) to get actual character A. The program is as follows:...


UART timing

Started by Ross Marchant in comp.arch.embedded14 years ago 14 replies

Hi all, If a UART baud rate is out by 1.6% will this cause errors? i.e. if the baud rate is 9600 +- 1.6% will a receiver get any erroneous...

Hi all, If a UART baud rate is out by 1.6% will this cause errors? i.e. if the baud rate is 9600 +- 1.6% will a receiver get any erroneous bytes? What about if the receiver has some kind of auto-baud... I would guess that if the transmitter baud rate is a little slow then the receiver might get an overrun errors and try for a slower rate? Ross


msp430f2013 Timer_A UART

Started by Anonymous in comp.arch.embedded13 years ago 1 reply

Hey there, I'm trying to make a simple project work. There's a demo: MSP430F20xx Demo - Timer_A, Ultra-Low Pwr UART 2400 Echo, 32kHz...

Hey there, I'm trying to make a simple project work. There's a demo: MSP430F20xx Demo - Timer_A, Ultra-Low Pwr UART 2400 Echo, 32kHz ACLK from TI, it does work but I wanted to use p1.2&p1.6 ports instead of p1.1&p1.5 (TA1 instead of TA0) so I changed lines RXD EQU 002h ; RXD on P1.1 TXD EQU 020h ; TXD on P1.5 with RXD ...


Problems interfacing PIC UART to PC Serial Port

Started by zerang shah in comp.arch.embedded15 years ago 25 replies

Hello, I am working on a design that requires interfacing a PIC microcontroller to the rs232 serial port of a PC. I am using the UART of the...

Hello, I am working on a design that requires interfacing a PIC microcontroller to the rs232 serial port of a PC. I am using the UART of the PIC16F628 but I am having problems: I can not get my PC to recognize the serial data sent by my PIC. For testing purposes I hooked up a palm pilot to my PC serial port and tried to echo characters using Hyper Terminal - it worked fine. However I ca...


MS Hyperterminal UART Communication

Started by sundar_1984 in comp.arch.embedded12 years ago 19 replies

Hi All, I am trying to communicate with a black box reciever with its onchip uart tuned to 115200 bps, 8 data bits, and 1 stop bit. I am...

Hi All, I am trying to communicate with a black box reciever with its onchip uart tuned to 115200 bps, 8 data bits, and 1 stop bit. I am sending a text file of size 105KB to the reciever from my PC through the Hyperterminal but with a character delay of 1 ms. If i dont keep that character delay, i dont get the required acks back from the reciever. And sending with a 1ms delay takes about 28 min...


parity/stopbits issue on 16550 in vxWorks

Started by bo in comp.arch.embedded9 years ago

I'm having great difficulty getting a 16550 UART to transmit parity/2 stop bits. I'm using vxWorks6.4, Workbench2.6 tools for an MVME5100 (74xx...

I'm having great difficulty getting a 16550 UART to transmit parity/2 stop bits. I'm using vxWorks6.4, Workbench2.6 tools for an MVME5100 (74xx processor board). I get no errors returned on the ioctl() calls and the options read back equal the options set--but the UART is not transmitting parity bit and not transmitting the 2nd stop bit (in other words, the only change from the default values tha...