This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: SPI Interface between F28069 DSP and a different DSP

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE

Hello,

I am building a circuit that controls the pre-charge of the capacitor. The circuit basically closes a pre-charge relay for first 3 seconds enabling pre-charge and after 3 seconds, it open this signal and powers the contactor relay for high current to flow through cap directly. I want to know if I can use any digital micro controller that identifies a fault (by checking voltage drop at 3 seconds to be within required range) and if there is a fault, it should communicate with F28069 DSP and stop the program. If there is no fault, the logic board with F28069 can start working (enabled). Can this communication between the microcontroller 1 (precharge circuit) and F28069 happen through SPI? I would appreciate if you can also provide any link or document that talks about this kind of information (interfacing the two micro controllers). 

Thanks 

  • Sri,

    Yes! this is exactly what embedded communication peripherals are there for. The SPI is a very simple module that can be used and is very well documented. If you have the LaunchPad, you can run any of our examples included in c2000ware. There are a few for SPI. Please also read through the SPI chapter of the F28069M TRM (SPRUH18). This does give a brief overview of the SPI module and the different modes.

    I am curious if you can use the onchip ADC with comparator functions to detect the voltage drop and halt the system. This would save you on the cost and complexity of having two MCUs on the board, especially if the second MCU is only monitoring the voltage.