6 years, 3 months ago.

configure nucleo F411 analog and digital pins

hi,

i'm new on mbed and i found out difficult to configure pins which are not assigned ad A or D (A0-A5 or D0-D15)

to get deep into the topic i have to do the following

7 Analog IN for reading sensors 12 DOUTs for parallel communication (means i have to transform those 7 analog sensors in 12 bits parallel communication) 12 DINs for receiving information on how to move 2 motors some other DOUTs to enable H bridge 2 PWMs for driving the motors

my questions are:

1_since i just have A0-A5 how may i transform and read PC_3 into analog in? 2_how can i transform and write for example PC_8 and PC9 as DOUTs ? and make a 12dout array with all the others? 3_how can i transform and read for example PC_5 and PC6 as DINs ? and make a 12dout array with all the others? 4_is there an instruction to read and write simultaneously 12 Digital in/out pins?

DOUTs in fig.1 drive the H bridge logic DOUTs in fig.2 are for communication purposes

thanks a lot for your help

Richie

/media/uploads/RichieHard/fig_1.png /media/uploads/RichieHard/fig_2.png

Be the first to answer this question.