Other Parts Discussed in Thread: HALCOGEN
Hello,
I am using TMDSRM48USB, CCS Version: 5.4.0.00091 , and HalcoGen 03.06.00
I apologize, I'm a novice working with micro-controllers but I have learned quite a bit by reading this forum as well as reading the manuals. I am working on a project that has timing requirements in regards to output. Below is the timing sequence for a sensor. I am using mibspi1 to communicate with the sensor. When SDO goes high after ADC conversion, I would like to immediately be “notified”. A solution I’m working with is to use GIO to check the state of SDO. Included is the code snippet as well as the HalcoGen configuration. I would really appreciate some feedback to know whether this is the right idea or not. And also if gioSetDirection() will have to be used.
Thank you
#include "gio.h"
gioInit();
state = gioGetBit(mibspiPORT1, PIN_SOMI);
if (state == 1)
{
// do calculations
}