EmbeddedRelated.com
The 2024 Embedded Online Conference

How to erase LPC2129 -UART FIFO

Started by rk in comp.arch.embedded17 years ago 1 reply

Hi The code written for rx data in LPC2129-uartO U0LCR = 0x83; U0DLL = 39; // baud rate = 9615 @ pclk =...

Hi The code written for rx data in LPC2129-uartO U0LCR = 0x83; U0DLL = 39; // baud rate = 9615 @ pclk = 6mhz U0FCR = 0x07; //FIFO enable U0LCR = 0x03; //Rx data as 8 bits, no Parity, 1 Stop bit while(!(U0LSR & 0x01)); //executed untill U0RSR full while(U0LSR & 0x01) { ch3[x] = U0RBR; x++; ...


RS485 guard-time

Started by pozz in comp.arch.embedded8 years ago 6 replies

I just noticed a nice feature of SAM C2x microcontrollers from Atmel. It is the RS485 support, i.e. one pin (TE) goes high when the UART is...

I just noticed a nice feature of SAM C2x microcontrollers from Atmel. It is the RS485 support, i.e. one pin (TE) goes high when the UART is transmitting and goes immediately low when the last byte was really shifted out, including stop bits. There is an additional feature that Atmel named "guard time". " For RS485 mode, the guard time is programmable from 0-7 bit times and defines t...


Dummy questions from a newbie regarding how to use DMA

Started by pozz in comp.arch.embedded8 years ago 12 replies

Until now I never used a microcontroller with an embedded DMA controller, so I always use the CPU to move data from memory to memory, from...

Until now I never used a microcontroller with an embedded DMA controller, so I always use the CPU to move data from memory to memory, from memory to peripheral, from peripheral to memory. The micro usually have only a two-byte hardware FIFO (the byte currently shifting in and the previous completely received byte). So I often implement a sw FIFO buffer for receiving data from UART. In ...


printing register values from exception handler...

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

Hi, I am using ECOS on ARM946. I have registered exception handlers for undefined instruction, data abort and pre-fetch abort, but i am...

Hi, I am using ECOS on ARM946. I have registered exception handlers for undefined instruction, data abort and pre-fetch abort, but i am unable to think of routine which can be useful for debugging in case of exception. I can think of printing register values of other modes to UART. Printing registers of other modes can help in finding cause of exceptions using program counter stack point...


Need recommend a MCU that is to creat jpg file.

Started by Boki in comp.arch.embedded18 years ago 9 replies

Dear All, Looking for a suitable MCU. For create jpg file. The MCU will collect "RAW" data ( point[1] (x,y) = 10,10 ; point[2] (x,y) =...

Dear All, Looking for a suitable MCU. For create jpg file. The MCU will collect "RAW" data ( point[1] (x,y) = 10,10 ; point[2] (x,y) = 20,20 ........ ) from UART. Each pair of data means a (x,y) point. ( and I want to draw it as black in screen) So, the MCU will collect the information. ( of course, need some basic protocol control, but I think it doesn't cost too many MIPS ) So,...


Address decoding within SOC

Started by joshc in comp.arch.embedded17 years ago 4 replies

Within an SOC that has multiple processors connected via AXI buses, where does the address decoding logic reside? If there are peripherals like...

Within an SOC that has multiple processors connected via AXI buses, where does the address decoding logic reside? If there are peripherals like a UART that are shared between the processors, would they have to be memory mapped at the same address in the address space of both processors? This is why I am asking where the address decoding logic resides. Thanks.


Logic Analyzer needed

Started by djordj in comp.arch.embedded16 years ago 6 replies

I'm looking for a logic analyzer with I2C/SPI/UART decoder capabilities (even CAN if possible) and I've found some portable USB devices that may...

I'm looking for a logic analyzer with I2C/SPI/UART decoder capabilities (even CAN if possible) and I've found some portable USB devices that may fill my needs. Here are two of them: Intronix LOGICPORT - http://www.pctestinstruments.com/ DigiView DV1-100 - http://www.tech-tools.com/dv_dv1.htm USBee Ax-Pro or DC - http://www.usbee.com/products.htm (but they cost much more, even if DX got...


How do i interface with the processor and acheive 10 Mbps?

Started by Anonymous in comp.arch.embedded15 years ago 6 replies

I found that many RS485 transceivers can transmit data at the rate of 10 Mbps. My application requires that speed to communicate for a short...

I found that many RS485 transceivers can transmit data at the rate of 10 Mbps. My application requires that speed to communicate for a short distance (2 feet or 0.5 metres or so). Processors have UART which can transmit at 115kbps and not more. How do i acheive 10Mbps when the normal 32 bit processors could transmit at only 115kbps? I found one application note "AN3884-how fast can u go...


kernel programming serial uart problem

Started by gxatzipavlis in comp.arch.embedded18 years ago 6 replies

hello ppl i have programed a kernel module for linux to communicate with devices through serial port. I don't use the linux serial layer...

hello ppl i have programed a kernel module for linux to communicate with devices through serial port. I don't use the linux serial layer abstraction cause i want to have a time-check timeout for byte to byte in the communication. So i use the inb,outb commands in my module. The problem is that my module is only running in my PC (amd athlon 1000 chipset via kt133a). in all other pc's althou...


RS485 bus with "non-true" fail-safe transceivers

Started by pozz in comp.arch.embedded11 years ago 7 replies

I have manu SN75176 (www.ti.com/lit/ds/symlink/sn75176a.pdf) that I'd like to use to create a 2-wires RS485 bus with 10 nodes. However this...

I have manu SN75176 (www.ti.com/lit/ds/symlink/sn75176a.pdf) that I'd like to use to create a 2-wires RS485 bus with 10 nodes. However this transceiver isn't true fail-safe, so the receiver, if enabled, has an undefined output (with wrong data received from the UART) if the inputs are open or shorted. This is a 2-wires bus, so only one node transmits at one time. After transmitting ...


Efficient debug log

Started by pozz in comp.arch.embedded7 years ago 14 replies

I usually prints some messages on a free UART used as a debug port. They are very useful during debugging to understand the flow of...

I usually prints some messages on a free UART used as a debug port. They are very useful during debugging to understand the flow of execution. Most of the time, I don't compile the debug log facility in release build. I sometimes need to disable messages from some modules and enable messages from other modules under debugging. Moreover I sometimes need to enable/disable less important m...


adding USB Flash feature to existing product (Vinculum? experience?)

Started by Peter Dickerson in comp.arch.embedded16 years ago 13 replies

I'm looking into adding support for USB Flash sticks to a current design, perhaps even for retrofit. The product volumes are in the small...

I'm looking into adding support for USB Flash sticks to a current design, perhaps even for retrofit. The product volumes are in the small thousands a year. The product has an expansion connector that has power, a few GPIOs and a UART or SPI. Currently this connector is used to add a serial printer or a few other things. Now I'd like to add USB flash. Actually, no I wouldn't, but thats wh...


One USB device, Two tasks

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

I have only one USB device port in my development board (running Linux), no Ethernet, no UART. I would like to use the USB device port as an...

I have only one USB device port in my development board (running Linux), no Ethernet, no UART. I would like to use the USB device port as an interface by parsing and responding to the commands from the external users. I also need this USB port to output debuging information. Here is my proposed solution: 1. Create virtual ethernet ports via the USB device. 2. Run GDB Server at the board s...


8051 problem with serial port and timer

Started by MP in comp.arch.embedded18 years ago 3 replies

Hi everybody, I am using a AT89C51ED2 in my design and I have a problem with its timer and UART simultanous function. Timer and serial port work...

Hi everybody, I am using a AT89C51ED2 in my design and I have a problem with its timer and UART simultanous function. Timer and serial port work fine seperatly but when they are gathered in one code, timer ISR stops functioning. here is sample of the code written in keil. #include /* special function register declarations */ #include /*


RS232 Voltage Levels

Started by Charles Jean in comp.arch.embedded18 years ago 40 replies

I've got a datasheet for a chip that takes an RS232 serial input with a protocol of 9600,N,8,1. It indicates the voltage level at this input is...

I've got a datasheet for a chip that takes an RS232 serial input with a protocol of 9600,N,8,1. It indicates the voltage level at this input is hardware-selectable to either +/- 12V(as found from a PC serial port), and either normal or inverted TTL level(0-5V). I plan on feeding this chip a TTL level serial stream by bit-banging it rather than using a UART. I am familiar with the polarities ...


Low memory footprint UART-based text user interface

Started by Ang Zhi Ping in comp.arch.embedded10 years ago 20 replies

I am looking for a textual user interface library on the Nios II microcontroller running on an FPGA. The Nios controller talks to a host...

I am looking for a textual user interface library on the Nios II microcontroller running on an FPGA. The Nios controller talks to a host computer via serial port. The code running on the Nios II should be memory efficient, i.e. ~ 4 KB, and should provide basic user interfaces like menus navigable using arrow keys (or is it possible using mouse clicks on the serial console?) and dialog bo...


serial large data storage for micros.

Started by Don McKenzie in comp.arch.embedded17 years ago 15 replies

Does anyone know of any serial interfaced (RX/TX) 1Mb-ish, (or larger) flash ram storage systems for micros? Needs a simple file like indexed...

Does anyone know of any serial interfaced (RX/TX) 1Mb-ish, (or larger) flash ram storage systems for micros? Needs a simple file like indexed system, so data chunks can be written, retreived, and deleted. Much like a hard drive system. I know a USB ram drive will do this, but I would like something to interface easily to any micro with a uart. Thanks in advance, Don... Don Mc...


Why UART data is getting corrupted?

Started by T Obulesu in comp.arch.embedded5 years ago 6 replies

I'm getting a strange issue. We have a Atmega 128 controller board that keeps on polling 15 Atmega8 based ultrasonic sensors. They are...

I'm getting a strange issue. We have a Atmega 128 controller board that keeps on polling 15 Atmega8 based ultrasonic sensors. They are connected in RS 422 model where all Tx pins of 15 sensors are connected together and in-turn connected to the Rx of the Atmega 128 controller and all Rx pins of 15 sensors are connected together and finally connected to the Atmega 128..


Linux serial port dropping bytes

Started by Derek Young in comp.arch.embedded16 years ago 113 replies

Hi all, I'm using an Arcom Viper PXA255 single board computer running Linux, and I'm trying to receive bytes over the built-in RS-422 serial...

Hi all, I'm using an Arcom Viper PXA255 single board computer running Linux, and I'm trying to receive bytes over the built-in RS-422 serial port at 921.6 kbps. The received packets are 1500 bytes long. The UART is a 16C2850 (dual port version of the 16C850 with 128 byte FIFO). Everything works fine at low speeds, but if the packet rate increases, I start to lose bytes. I believ...


Simulating Microblaze Core + C Code + VHDL defined peripherical

Started by Xabier Iturbe in comp.arch.embedded17 years ago

Iam designing a system consisting of: Microblaze Core RS232 Uart Lite SPI controller The SPI controller will communicate with an ADC...

Iam designing a system consisting of: Microblaze Core RS232 Uart Lite SPI controller The SPI controller will communicate with an ADC converter placed outside of FPGA. In order to modelize the system, previous to implement it, I have included an VHDL model of the converter. I don=B4t know what is the best way to simulate the system whole.. ModelSim is a harware simulator and I think t...



The 2024 Embedded Online Conference