Other Parts Discussed in Thread: TMS320F28027F, C2000WARE, TMS320F28027
Tool/software: Code Composer Studio
Hello, TI employees or users!
I have some issues for dealing with "TMS320F28027F". I want to design SPI with 2 different slaves using the controller.
One is for measuring voltage of the switch which is designed already(slave 1). V_switch will be converted to digital value inside of slave 1. In other words, the data which will communicate with controller is digital value. The other slave is controlling input voltage of water pump.(slave 2)
Basically, I want to design active cooling power converter. So, I will control the flow rate of the pump according to the measured V_switch.
Once V_switch exceeds our requirement, we want to increase input voltage for water pump so that flow rate will increase. As a result, switch voltage will be decreased again. Ultimately, v_switch will stay in the required range. This is my goal of the project.
So, here are my issues.
1. Chip Select
As far as I know, chip select signal enables each slave to communicate separately. That is, slave 2 doesn't work while slave 1 is communicating with master, right?
However, my slave 2 should work according to the measured v_switch, which means I have to enable both slave 1 and 2 to communicate with master at the same time.
So, could you give me an insight for fixing my issue if you have?
2. MOSI, MISO
I am still confusing these two signals. I can understand the definition but not perfectly clear so far. With respect to communication between master and slave 1 in my case, MOSI should be signal which enables ADC to work and MISO should be the read data. Is this done by automatically if I put correct signals for ADC of slave 1?
Besides, MOSI should be the pulse to order ADC work.. How can I generate this signal? I thought that I could use one of PWM signal but this pulse has different high and low time period whereas PWM has equal value.
3. SPISTE
SPISTE stands for 'Slave-Transmission-Enable' so I understood this signal as CS1. Is this correct idea?
If do, how can I make CS2 for Slave2?
Thanks for reading my issues. This is my first time to design the interface and it is new world for me to be honest.
I will really appreciate for your any comments and forgive me if my questions are stupid. Thanks again,Sirs!