Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Is it possible to send 0x000 via usart?

Status
Not open for further replies.

shaun_c_m

Junior Member level 2
Joined
Oct 12, 2007
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,518
is it possible to send 0x000 via usart?

im using the 9 bit mode on the 16f877, but with all bits set to 0 the module seems to consider the buffer empty and doesnt send any data.

is it possible to trigger the module by using another command like a swapf or add?

thanks
 

0x000 via usart

Any movwf to the TXREG register will initiate a transmit.

9bit mode is pretty much not for RS232, you'll need special software on the PC end if that's what you're trying to talk to. I'm not sure the a standard PC UART supports 9 bit.
 

Re: 0x000 via usart

If you need to send 0x0000, you need to transmit 16bis->2bytes

Simple transmit 2 bytes and in the receptor put it in the right place in memory.

I had a similar problem, I needed to send 16bit unsigned integers to a PC, I simple send the 2 bytes(from PIC RAM) by RS232 to a PC, and in the PC soft I put the 2 bytes in RAM addresses of a unsigned int.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top