cancel
Showing results for 
Search instead for 
Did you mean: 

stmf4 with matlab coder

sen2
Associate II
Posted on November 15, 2013 at 20:18

Dear friends,

                       I'll be using stm32f4 discovery with Matlab embedded coder. Now I'm not quite sure if this is the right place to ask for Matlab help,but my queries are solely related to the hardware programming.

Now my objective is simple. I want my board adc to trigger when some external high to low pulse occurs on a gpio pin. Only thing I want to do this task on simulink. I could initialise the ADCs GPIOs, but the connection for the external trigger seems to be tricky. Yes I'm not much conversant with the embedded coder, looking forward for some help in this regard.

Thanks & regards,

Souvik
2 REPLIES 2
Posted on November 25, 2013 at 14:10

Hi Souvik,

sorry for the late answer.

I think that you can use GPIOs external interrupt to do that.

You can have a look to .../Test/ButtonAndLeds_Interrupt model example.

IRQ_Ext trig ADC_read instead of GPIO_Write.

Best regards

Pascal

sen2
Associate II
Posted on November 26, 2013 at 08:57

Thanks a lot