04-30-2012 02:07 AM
i need to design a master slave logic .Master is my chip and the slave will be VI,and also it supports serial comunication i don't know how to select the slave(which is VI) Chip has 4 pins which will be connected to the slave so atmost 4 slaves can be connected. Do i need to use any NI hardware for communication/Selecting the Slave?
04-30-2012 02:30 AM - edited 04-30-2012 02:32 AM
Hi karthikk,
you seem to mix up hardware and software questions in a big pot...
"Master is my chip and the slave will be VI,and also it supports serial comunication"
What is "it"?
"i don't know how to select the slave(which is VI)"
It will be much easier when you call the VI "master" and your chip to be "slave"...
"Chip has 4 pins which will be connected to the slave so atmost 4 slaves can be connected."
What has the pin count to do with the max number of connected devices?
"Do i need to use any NI hardware for communication/Selecting the Slave?"
You don't need any hardware for "selecting a slave", as you said the VI will be the slave. To select a VI you don't need hardware...
Well, you will need hardware to communicate with your "chip". But it doesn't need to be hardware from NI.
In general you have to provide more information.
- "serial communication" can be done in a lot of different ways/designs/speeds/options. Give precise information!
- Be clear about master/slave. Typically the PC is the master, who initiates the communication...
05-03-2012 12:33 AM
Hi GerdW,
Actually i don't know where to start as iam new to Labview.Below is my Design Requirements
a>i will be using only 4 pins to select slave.so max i can connect 4 slaves(we can connect any number of slaves but in our design we will be having dedicated 4 pins to select the slave)
c>I have one Serial data line so depending on the slave we select, the data will be transmitted to the slave
Below is the use case:
If EN0 (Select pin) is high then Slave1 will be selected and the data is transmitted to the Slave1
the above case will be same for the remaining pins.
Baud rate:19200bps
Q1>How to select the Slave's which is implemented in VI through ENx(x=0-3) pins provided in the Chip?
Q2>I don't know in "how many different ways the serial communication can be implemented in Labview"
Q3>I thought as chip is selecting/sending the data to slave and also the clock it will be
acting as master.If the Labview is acting as master then how to establish communication with the chip.
I will be very grateful to you if you can help on the same.
05-03-2012 02:21 AM
Hi karthikk,
you still mix up hardware and software questions without giving any relation between them...
a) With 4 pins you may easily select 16 slaves. When you need an additional CS signal you still have 3 pins to select 8 devices...
c) Where do you want to connect that "serial data line" to the computer?
Q1) That's what I complain about. You don't tell us, which hardware is available to actually connect your "chips" to the computer. To output some "real" signals out of the computer you will need some additional hardware...
Q2) See question 1. You don't say which hardware is available...
Q3) You talk about some hardware unknown to us. We cannot help on that basis...