Dear all,
first, happy new year!
I use the concerto board (F28M35H52C1), both core run on MCUSDK, I started from the demo project (M3 provides Ethernet communication, IPC bidirectional, C28 convert a float sent by M3)
I modified the example to send timer commands (basically, each time I recive a message, I stop a timer on C28, modify its period and restart it), in the timer tick I toggle on a led for heartbeat.
In fine, I would like to read data and process it at the imposed frequency, (to demonstrate sampling effect)
I would like to use McBSP as an SPI with 2 slave devices, I would like to use FSX as chip select for the first one, and GPIO2 for the second. basicaly in pseudo-code my function would look like this:
timer0_tick()
{
chipSelect(device_on_FSX );
send command, read answer; // get_data
send command, read answer; // convert_data
chipUnSelect(device_on_FSX);
play_with_my_data(); //...
chipSelect(device_on_GPIO2);
send command, read answer; // send processed data
chipUnSelect(device_on_GPIO2);
}
I have looked at the example mcbsp_loopback_c28
C:\ti\controlSUITE\device_support\f28m35x\v160\F28M35x_examples_Control\mcbsp_loopback\c28\mcbsp_loopback_c28.c
but it doesn't seem to use FSX at all (is it just because of the loop_back, thus no need of it, or is it because it is set automatically by the driver?)
basically, all this is to know: how could I manually access FSX?
thank you in advance for all help you may provide!
Laurent