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

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

UART NETWORK

Post by brandonb »

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

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

Post by brandonb »

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

Post by brandonb »

master chip program on green board with lcd
Attachments
metrodashfour.fcf
(59.71 KiB) Downloaded 381 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

Post by brandonb »

slave chip#1 (rpm) program
Attachments
rs232_sending rpm.fcf
(22.93 KiB) Downloaded 377 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

Post by brandonb »

slave chip#2 pulsewidth program
Attachments
rs232_sending pulsewidth.fcf
(24.03 KiB) Downloaded 356 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

Post by brandonb »

slave chip#3 'hg vaccum program
Attachments
sending_map.fcf
(19.71 KiB) Downloaded 374 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

Post by brandonb »

tx 3x multiplexer chip program
Attachments
1840_3x_rs232_multiplexer.fcf
(13.64 KiB) Downloaded 358 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

Post by Spanish_dude »

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

Post by brandonb »

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

Post by Spanish_dude »

Nice little device :o

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

Re: UART NETWORK

Post by DavidA »

nice project :)

Post Reply