F28M35 Simulink ePWM block

조회 수: 16 (최근 30일)
TZU-I  Huang
TZU-I Huang 2018년 8월 28일
댓글: TZU-I Huang 2018년 9월 3일
Hi all
I am new to this device and blocks associated with it and I have read the block description page. I am trying to do some ADC in and PWM outs. But for all the examples the ePWM blocks are orange and with an input port of "WA", however if I drag the exactly same block from the library the block will not have any input port even if all the settings are the same. I believe the input is to drive the ePWM clock.
Please help me, the image is attached below.
Thanks.

답변 (1개)

Vineeth Nair
Vineeth Nair 2018년 8월 31일
To get the "WA" input port  , open block parameters ->Under counter compare tab-> set the "Specify CMPA via" parameter to - Input port. Note that, this is not the port to drive ePWM clock. To know more about the ePWM block, its timer properties etc. you can go to this link .
  댓글 수: 3
Vineeth Nair
Vineeth Nair 2018년 9월 3일
1. Priority of ADC's can be changed. In Configuration parameters-> Hardware implementation -> Select required Hardware board. Under Target hardware resources->There are settings for ADC, where priority can be set to high priority. By default it's in round robin mode.
2.Here you can also see settings for clocking. The clock frequency can be changed here. Attaching screenshot of these settings tabs.
TZU-I  Huang
TZU-I Huang 2018년 9월 3일
Thanks for the ADC part, I wasn't awarded of that. I will make my second question more clear, below is a screenshot of F28M35, I underlined tow sections, 4 general purpose timers for M3 core and 3 32-bit timers for C28 core. Is there any way to set up those timers for periodic interrupts?
Thanks

댓글을 달려면 로그인하십시오.

태그

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by