Skip to main content
sen2
Associate
November 15, 2013
Question

stmf4 with matlab coder

  • November 15, 2013
  • 2 replies
  • 794 views
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
    This topic has been closed for replies.

    2 replies

    Nickname12840_O
    Associate
    November 25, 2013
    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
    sen2Author
    Associate
    November 26, 2013
    Posted on November 26, 2013 at 08:57

    Thanks a lot