Uart and M16C

Started by Luke Phoenix in comp.arch.embedded15 years ago 8 replies

Hi, I'm trying to understand a part of a C-program written for the M16C. This part of code should send a string through the uart. The previous...

Hi, I'm trying to understand a part of a C-program written for the M16C. This part of code should send a string through the uart. The previous code builds the string (an unsigned char array) to be sent. It manipulates every byte, then put it into the array, and then sent it byte after byte in the for-loop. [...] tmp = InfoToBeSent > > 8; //What does this mean? tmp = tmp & 0x0F; if


Emulating 1-wire interface with a microcontroller

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

Hi, I have a microcontroller with GPIO, I2C and UART, and I'm trying to emulate a 1-wire interface so that the microcontroller appears as an...

Hi, I have a microcontroller with GPIO, I2C and UART, and I'm trying to emulate a 1-wire interface so that the microcontroller appears as an i- button to another ASIC. I'm wondering if it would be easier to use either of the serial channels(UART or I2C) or should I just emulate it with GPIO? Would also appreciate any tips/help on how to emulate, and 1-wire standards, since I'm new to 1-...


8051 UART timing

Started by rowan.bradley in comp.arch.embedded8 years ago 6 replies

Does anyone know the exact timing of the internal UART on an 8051 based microprocessor (actually it's a Dallas 80C320)? As I understand it,...

Does anyone know the exact timing of the internal UART on an 8051 based microprocessor (actually it's a Dallas 80C320)? As I understand it, when transmitting, the TI bit sets a the _beginning_ of the stop bit of the byte. So if you wait for the TI bit to go true, and immediately write another byte to SBUF, does this immediately start transmitting the start bit of the new byte, cutting short the st...


Problems on Quad UART TL16C554A

Started by eldesign in comp.arch.embedded12 years ago 1 reply

We are trying to use the TL16C554A quad uart The transmission rate we are interested is quite low: 4800bps We used the fifo polled mode as...

We are trying to use the TL16C554A quad uart The transmission rate we are interested is quite low: 4800bps We used the fifo polled mode as well as the fifo interrupt mode by programming the registers as described in the Datasheet. 1) In fifo polled mode we check the lsbit in the LSR 2) In Fifo interrupt mode we check the IIR bit 3 with a threshold set to 14. In both the use we lo...


USB Connection between MCU and Mobile Phone

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

I am working on a wireless transceiver to pair with a mobile phone. I already have a Java midlet that can receive data via the USB cable...

I am working on a wireless transceiver to pair with a mobile phone. I already have a Java midlet that can receive data via the USB cable (It receives serially using UART though). I am using the Nordic nRF24LU1 transceiver which has a built-in 8051 MCU. How do I configure the MCU to send data through its attached USB port via UART so that I can pair it together with the mobile phone and do serial...


AT91SAM7S256-128-64-321 USB and USART usage (clocking)

Started by jaac in comp.arch.embedded13 years ago 2 replies

Hi, I want to know if it is possible to use at the same time the USB and UART peripheral on the AT91SAM7S256-128-64-321, with zero error on...

Hi, I want to know if it is possible to use at the same time the USB and UART peripheral on the AT91SAM7S256-128-64-321, with zero error on the UART part. The clocking scheme is what concerns me. As far as I understand you have the main clock MCK from an external crystal (or clock signal). Is MCK derived directly, I mean, does MCK have the same frequency as the external crystal? The UAR...


Problems using uart in H8s. Rx level doesn't down to zero

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

Hello. I'm having a problem with a H8S MCU ( 2328) uart I use to comunicate witch a GSM module. First I was using a Atmel MCU instead of the...

Hello. I'm having a problem with a H8S MCU ( 2328) uart I use to comunicate witch a GSM module. First I was using a Atmel MCU instead of the H8S and all was working fine. But when I have replaced the Atmel with the H8S the communication dosen't works. I have seen thant the problem is that when the GSM module tries to respond to the H8s, the signal level ( H8S-Rx ) doesn't reach to zero ...


facing Problem while writing UART driver

Started by rahul in comp.arch.embedded13 years ago 4 replies

hi. I am writing the keyboard driver (using the UART and RS232 protocol). There is an Receive Fifo And one Flag register.when there is an data...

hi. I am writing the keyboard driver (using the UART and RS232 protocol). There is an Receive Fifo And one Flag register.when there is an data in receiver fifo the Flag get changed. i am reding the reading the receiver fifo depend on the Flag register (if the receive flag set).but on debugger when i see the Flag register the Flags are not changing? for example : "when the flag which tell t...


microblaze firmware + UART handshaking blues

Started by Anonymous in comp.arch.embedded11 years ago 14 replies

Hi, I am currently working on a microblaze v6.00 core on FPGA and am developing an algorithm. This is what I am doing 1) matlab on PC...

Hi, I am currently working on a microblaze v6.00 core on FPGA and am developing an algorithm. This is what I am doing 1) matlab on PC sends data to microblaze (FPGA) via UART. RS232 hardware handshaking is deployed here. 2) the algorithm runs on microblaze to process the input data 3) microblaze sends the data back to matlab on PC. the setup I am working on works perfectly on a p...


MSP430: BSL mode - UART transmit pin

Started by JerryS in comp.arch.embedded12 years ago 2 replies

Hello: In several MCUs of the MSP430 family, during the bootstrap loader mode, the normal UART Tx/Rx transmit/pins aren't used. Instead, other...

Hello: In several MCUs of the MSP430 family, during the bootstrap loader mode, the normal UART Tx/Rx transmit/pins aren't used. Instead, other pins are alloted for BSL transmit and receive. Would you know if the normal Tx transmit output pin goes in high-impedance mode during the BSL mode? Also, is there any register bit or pin offering information on "normal" vs "BSL" status? Th...


need help in uart programming in Ceva base board (ceva xs1200)

Started by swami in comp.arch.embedded11 years ago

hi, i am doing uart programing in ceva base board (ceva xs1200).dsp processor. just sending text from hyperterminal to ceva and view the text...

hi, i am doing uart programing in ceva base board (ceva xs1200).dsp processor. just sending text from hyperterminal to ceva and view the text back in hyperterminal. i did loopback test in pc side.its ok. i can also get the character which i write in i/o memory(tx/rx buffer) in ceva side too.memory mapped I/O model.but the status reg is not getting updated(tx-full/empty,rx-full/empty).so i...


UART receive ISR receives 1st 2 bytes twice

Started by galapogos in comp.arch.embedded13 years ago 22 replies

Hi, I'm trying to read data from a smart card via a Toshiba 16bit MCU's UART interface set at a slow 4+K baudrate. My receive ISR however...

Hi, I'm trying to read data from a smart card via a Toshiba 16bit MCU's UART interface set at a slow 4+K baudrate. My receive ISR however seems to pull out the 1st 2 bytes of the transmission from the receive buffer twice. i.e., when the smart card sends 0x1, 0x2, 0x3, ..., 0xa, My receive ISR will receive 0x1, 0x2, 0x1, 0x2, 0x3, ...,0xa. I've checked the I/O line with a logic analyzer an...


16550 UART Initialization Routine

Started by Eric in comp.arch.embedded11 years ago 2 replies

16550 UART Initialization Routine I'm having a little trouble trying to get my 16550 to Receive Characters. I can get it to transmit Bytes,...

16550 UART Initialization Routine I'm having a little trouble trying to get my 16550 to Receive Characters. I can get it to transmit Bytes, but it will not receive bytes. My Initialization Routine is as follows: LCR=0x80; // Set Baud Rate Divisor Latch to 1 DLM=0x00; // Set Baud Rate divider DLL=0x1b; LCR=0x03; // Set Divisor Latch to 1 and 8bit word length MCR=0x00; FCR=0x07; //Enab...


ColdFire MCF5474, mcfserial.c, and RTS / CTS flow control.

Started by Bill in comp.arch.embedded12 years ago

We are using the ColdFire MCF5474 with the second internal UART connected to the second internal UART of a ColdFire MCF5232. Both UARTs are setup...

We are using the ColdFire MCF5474 with the second internal UART connected to the second internal UART of a ColdFire MCF5232. Both UARTs are setup for RTS / CTS flow control. We are using Linux BSP (linux-2.6.10) on the MCF5474 side and no OS on the MCF5232 side. The code in mcfserial.c enables RXRTS in Mode Register 1 and enables TXCTS in Mode Register 2 when CRTSCTS is set. This is correct...


AT91SAM7S Debug Port

Started by Ian Mcbride in comp.arch.embedded14 years ago 1 reply

What are the considerations regarding use of the two-wire debug UART for other purposes, such as driving a serial printer?

What are the considerations regarding use of the two-wire debug UART for other purposes, such as driving a serial printer?


Tiny and cheap little USB to UART bridge

Started by PICUser in comp.arch.embedded14 years ago 12 replies

Check out: http://www.customidea.com/hr-usbuart.php VCP drivers for windows work great and its stand alone you just need to connect TX/RX...

Check out: http://www.customidea.com/hr-usbuart.php VCP drivers for windows work great and its stand alone you just need to connect TX/RX and ground.


Board with min 8k RAM

Started by Jens Gydesen in comp.arch.embedded5 years ago 5 replies

Hi, I am looking for a uControllerboard: - 8k RAM or more - 192k FLASH or more - Two UART - 3mm mounting holes - Preferable CPU could be...

Hi, I am looking for a uControllerboard: - 8k RAM or more - 192k FLASH or more - Two UART - 3mm mounting holes - Preferable CPU could be AVR, ARM, what can you recommend? Regards Jens


$0.03 microcontroller

Started by Clifford Heath in comp.arch.embedded6 months ago 103 replies

OTP, no SPI, UART or I²C, but still... Clifford Heath

OTP, no SPI, UART or I²C, but still... Clifford Heath


small can-micro

Started by Anonymous in comp.arch.embedded14 years ago 7 replies

hello, i'm looking for the smallest (smd)can-microcontroller available on the market. It should have at least an a/d-converter, uart and spi...

hello, i'm looking for the smallest (smd)can-microcontroller available on the market. It should have at least an a/d-converter, uart and spi (. I am also looking for a small (smd) can-interface and tranceiver. thanks in advance, heiko


C8051F060 UART problem

Started by freekyidea in comp.arch.embedded14 years ago 4 replies

I tried to use c0851F060's UART0,but I found there is no output signal from tx0 and rx0(I using crossbar to mapping tx0 rx0 to P_0,P_1),I don't...

I tried to use c0851F060's UART0,but I found there is no output signal from tx0 and rx0(I using crossbar to mapping tx0 rx0 to P_0,P_1),I don't know why?,so can anyone remind me that any passable wrong I colud make?