Page 1 of 1

UART Issues

Posted: Thu Aug 18, 2011 9:05 am
by GadgetBoy
Hey guys,

Im trying to use the zigbee board and the rs232 board to get some data to the PC but im using the 16F88 and it only has one UART.How can i solve this problem?its for wireless data aquisition

Re: UART Issues

Posted: Fri Aug 19, 2011 1:11 pm
by GadgetBoy
Helo? :?:

Re: UART Issues

Posted: Fri Aug 19, 2011 4:21 pm
by Sean
Hello,

The Flowcode RS232 component can be used in hardware and software mode.

Software mode uses general purpose I/O and delays to create a bit-banged UART. The TX and RX pins are allocated in the component Connections panel.

Flow control and other properties are supported.

Multiple software RS232 components can be added to a flowchart, limited only by available I/O.

Zigbee will use the hardware UART by default. The RS232 board can be used with a software RS232 component.

Re: UART Issues

Posted: Thu Sep 01, 2011 12:57 pm
by GadgetBoy
hey

i tried to use the software TX/RX but didnt work..heres my program perhaps you can see whats wrong with it

Re: UART Issues

Posted: Thu Sep 01, 2011 2:40 pm
by DavidA
Hello,

Could you please post on the Flowcode V4 forums as the file you attached is a Flowcode V4 file.

Help on how to do this is available here:

http://www.matrixmultimedia.com/support ... f=29&t=602

Re: UART Issues

Posted: Thu Sep 01, 2011 3:18 pm
by Sean
I have downloaded your program to a 16F88 and it appears to be working.

The chip is configured correctly
The transmit signal can be seen on RA1 using an oscilloscope.
The correct text is displayed in Hyperterminal when transmitted via an EB015, RS232 E-block.

Re: UART Issues

Posted: Mon Sep 05, 2011 11:00 am
by GadgetBoy
Hi,

I measured the voltage on the chip and get a 5v everytime i push the reset button but hyperterminal isnt displaing any text.It only displays text when i use the UART1 TX/RX setting

Re: UART Issues

Posted: Mon Sep 05, 2011 11:06 am
by Benj
Hello,

Are you using the RS232 E-block? Could it be that the patch system is not set up correctly on the E-block to allow the signals to be routed through to the Max chip correctly. What jumper settings and patch wires are you using?

Re: UART Issues

Posted: Mon Sep 05, 2011 11:16 am
by GadgetBoy
So everything seems fine until the A Port..How is your EB015 configured?

Re: UART Issues

Posted: Mon Sep 05, 2011 11:18 am
by GadgetBoy
Hi,

Im using jumper settings A and 2.Not using any patch wires

Re: UART Issues

Posted: Mon Sep 05, 2011 11:21 am
by Benj
Hello,

Jumper settings A and 2 will not work for your port A connections. Please refer to the last page of the EB015 device datasheet for settings on how to patch the signals across.

Basically for a non standard UART eg your software one you need to use jumper setting D and then use single core wire to pass the signals from your software UART pins to the RX and TX signals on the board. If you also need Flow control then you will have to do the same for these signals also.

Re: UART Issues

Posted: Mon Sep 05, 2011 11:28 am
by GadgetBoy
Hi,
thanx for the help its working now :D