UART NETWORK

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:42 am

i wanted to post this in hopes that it may help someone in future, this project is a concect to network uart, this is a simple example project but could be complex as well, the 16f1938 on the green board housing the lcd sends commands to the top three chips on the breadboard, it sends a chip address followed by an instruction, only the chip with the correct address will respond to the message, when the addressed chip receives the message, it processes it and sends back two bytes through the uart multiplexer which are assembled by the master as a 16 bit answer to the master chip, ... since rs232 tx idles high the multiplexer reacts to only the changes and transmits it to the master on one wire..... if a chip doesnt respond in 83m/s it sends message to next chip in the data process.... as long as there is not a corrupted message the muliplexer operates proper, if this is a concern then another interrupt can be added to the muliplexer chip to zero the variables and clear the output high..... suggestions and comment welcome :idea: BELOW IS PROJECT OVERVEIW
Attachments
UART EXAMPLE.JPG
(247.74 KiB) Downloaded 2556 times
These users thanked the author brandonb for the post (total 2):
medelec35 (Sun Aug 05, 2012 10:54 am) • DavidA (Mon Aug 06, 2012 12:48 pm)
Rating: 10.53%
 

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:52 am

picoscope waveform of master commanding chip#1 to send rpm data...followed by chip#1 sending data as 100hz
Attachments
PICO UART CAPTURE.jpg
(119.48 KiB) Downloaded 2554 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:53 am

master chip program on green board with lcd
Attachments
metrodashfour.fcf
(59.71 KiB) Downloaded 231 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:54 am

slave chip#1 (rpm) program
Attachments
rs232_sending rpm.fcf
(22.93 KiB) Downloaded 219 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:54 am

slave chip#2 pulsewidth program
Attachments
rs232_sending pulsewidth.fcf
(24.03 KiB) Downloaded 206 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:55 am

slave chip#3 'hg vaccum program
Attachments
sending_map.fcf
(19.71 KiB) Downloaded 216 times

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 8:56 am

tx 3x multiplexer chip program
Attachments
1840_3x_rs232_multiplexer.fcf
(13.64 KiB) Downloaded 215 times

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: UART NETWORK

Postby Spanish_dude » Sun Aug 05, 2012 12:57 pm

Is that a portable frequency generator ? (bottom right of the image)
Nice project.

Nicolas

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: UART NETWORK

Postby brandonb » Sun Aug 05, 2012 7:41 pm

Is that a portable frequency generator ? (bottom right of the image)
yes its a dso nano v2 with benf v2.62 software, i use this scope/signal generator more often than my pico 3423, on the signal generator portion it does 10hz-1Mhz 0-100% duty

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: UART NETWORK

Postby Spanish_dude » Sun Aug 05, 2012 7:44 pm

Nice little device :o

User avatar
DavidA
Matrix Staff
Posts: 1060
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 275 times
Contact:

Re: UART NETWORK

Postby DavidA » Mon Aug 06, 2012 12:48 pm

nice project :)