Search
Try Notion
Interrupt with ePWM
Approach 2 (Using Interrupt)
Reference:
Approach 2 is designed to eliminate data skew by having a main clock (BISSC_CLK) and a phase shifted clock (SPICLK), the SPICLK is fed into SPI block which act as a non-skew clock for the biss data to be buffered (BISSC_DIN). One the SPI buffer is filled, an interrupt is generated to store the buffer and allow the next data to be extracted. Note: BISS data is around 23bits
Attempt
PWM1 acts as BISSC_CLK, PWM2 acts as SPICLK
ePWM will generate an interrupt as certain amount of pulses.
Interrupt block (Using this method to toggle between PWM IDLE or Pulsing for SPI(In later stage))
Issues:
Interrupt happens every 6th pulse, as observed the interrupt can't be serviced in time
PM Bissc Library can't be acquired in Simulink