Part Number: TMS320F28030
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
I am using f2803xcap.h file to get Timer value difference between two rising/falling edges.
My system frequency 60MHz .
My initialization is
#define ECCTL1_INIT_STATE ( CAP1POL_FALLING_EDGE + \
CAPLDEN_ENABLE + \
CTRRST1_DIFFERENCE_TS + \
EVTFLTPS_X_1 + \
EMULATION_FREE )
#define ECCTL2_INIT_STATE ( CONTINUOUS_MODE + \
TSCNTSTP_FREE + \
SYNCI_DISABLE + \
SYNCO_DISABLE + \
CAPTURE_MODE )
So, how much time stamp will I get & procedure to calculate it for 20ms( square wave input).
EventPeriod=(int32)(cap1.EventPeriod);
How much will be result in EventPeriod variable?
Thanks in advance