SK40C connection to multiple UART device

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

SK40C connection to multiple UART device

Postby sparktzm » Sun Dec 30, 2012 4:48 pm

hi all,
i want to ask regarding connecting sk40c to multiple uart device. firstly i need to connect the sk40C to the PC via UC00A. the second device that will be connecting to the uart port is the SC08A (servo controller). how can i do that? btw anybody could suggest me other way on connecting the sk40c with the computer as i will be using the MATLAB software to sent signal to the PIC. the type of pic that are use is 16F877A. TQ
sparktzm
Freshie
 
Posts: 4
Joined: Sun Dec 30, 2012 4:41 pm

Re: SK40C connection to multiple UART device

Postby shahrul » Sun Dec 30, 2012 5:36 pm

You can use multiplexer and demultiplexer for switching TX and RX. Ex chip 74HC4052. You will have up to 4 UART.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: SK40C connection to multiple UART device

Postby sparktzm » Sun Dec 30, 2012 6:01 pm

thanks for your reply...so in order to use this i need to have the 74HC4052. can u elaborate more on how to use this as i am new to electronics. did u mean like this (tx1 and rx1) goes to pc via USB to UART Converter and (tx2 and rx2) goes to servo controller? what does selector (sel0 and sel1) function?
sparktzm
Freshie
 
Posts: 4
Joined: Sun Dec 30, 2012 4:41 pm

Re: SK40C connection to multiple UART device

Postby shahrul » Sun Dec 30, 2012 6:08 pm

sparktzm WROTE:thanks for your reply...so in order to use this i need to have the 74HC4052. can u elaborate more on how to use this as i am new to electronics. did u mean like this (tx1 and rx1) goes to pc via USB to UART Converter and (tx2 and rx2) goes to servo controller? what does selector (sel0 and sel1) function?

SEL0 and SEL1 is selector for multiplexer and demultiplexer, because the multiple UART can't use at the same time.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: SK40C connection to multiple UART device

Postby sparktzm » Sun Dec 30, 2012 6:11 pm

is that other ways of connecting the pc to the pic except by using this method?
sparktzm
Freshie
 
Posts: 4
Joined: Sun Dec 30, 2012 4:41 pm

Re: SK40C connection to multiple UART device

Postby shahrul » Sun Dec 30, 2012 6:16 pm

sparktzm WROTE:is that other ways of connecting the pc to the pic except by using this method?

You can do
1) UART software by using bit-banging method. But I'm still fail this method since 2 years.
2) Use PIC that have more than one UART ex PIC18F46K22 have 2 UART
3) Use Chipkit Max32 that have 4 UART.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: SK40C connection to multiple UART device

Postby sparktzm » Sun Dec 30, 2012 6:20 pm

so the easiest method is to use this multiplexer dan demultiplexer. just want to confirm tx1 and rx1 will go to the pc via uart converter and tx2 and rx2 goes to servo controller. is that the right method if use this multiplexer dan demultiplexer.
sparktzm
Freshie
 
Posts: 4
Joined: Sun Dec 30, 2012 4:41 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests