making use of the semiperiod info
first I need to understand the meaning of C28xCAP_o2. Which I think that I do after reading the following:
The status flag outputs are
0 -- The FIFO is empty. Either no captures have occurred or the previously stored capture(s) have been read from the stack. (The binary version of this flag is 00.)
1 -- The FIFO has one entry in the top register of the stack. (The binary version of this flag is 01.)
2 -- The FIFO has two entries in the stack registers. (The binary version of this flag is 10.)
3 -- The FIFO has two entries in the stack registers and one or more captured values have been lost. This occurs because another capture occurred before the FIFO stack was read. The new value is placed in the bottom register. The bottom register value is pushed to the top of the stack and the top value is pushed out of the stack. (The binary version of this flag is 11.)
The timing of my sample time will be critical.
I think that I will be unable to use a standard block to calculate the current from the PWM output. Time to look at how I can write a user defined block.
0 Comments:
Post a Comment
<< Home