cancel
Showing results for 
Search instead for 
Did you mean: 

parallel interface on stm32f407

sanjib
Associate III
Posted on November 12, 2014 at 11:55

Hello

I'm wondering how to create a parallel interface on the STM32F4Discovery Board, if possible. As far as the application, I would like to connect the Discovery to BLACK FIN DSP (BF592)

I was suggested to do by FSMC .. but I don't know how to do that. does any body can help me with basic code of understanding as well as with the link from which  I can download the FSMC folder from the standard peripheral library.
27 REPLIES 27
sanjib
Associate III
Posted on December 15, 2014 at 18:41

Hi All

Any idea?
Posted on December 15, 2014 at 19:16

I am not aware of timing diagram of the signals the DSP expects.

Yes, and this is why I asked you to create one, ie make something that does not yet exist.

So i need to follow this simple protocol....or I have to do it manually.

Honestly if it were simple, and you did it manually, it would perhaps have taken an hour, a month ago to bit-bang the bus. If you had started there, and had a diagram of the signals, we would have a clearer insight it to what exactly was wired where (a schematic, not prose), and whether there was opportunity to use the FSMC and with what settings.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
Posted on December 17, 2014 at 07:05

I have attach the timing diagram of the signals the DSP expects, this will include pulse sequences and durations, and periodicity expected of those signals.

The gpio pin connection is given below

+-------------------+--------------------+------------------+------------------+

+ PPI pins assignment +

+-------------------+--------------------+------------------+------------------+

| PD0 <-> FSMC_D2 - PPI2

| PD1 <-> FSMC_D3 - PPI3

| PD4 <-> FSMC_NOE (not connected so far floating )

PD3 <-> FSMC_clk- PPI_Clk

| PD8 <-> FSMC_D13- PPI13

| PD9 <-> FSMC_D14- PPI14

| PD10 <-> FSMC_D15- PPI15

| PD6 <-> FSMC_NWAIT- ADSP_PPI_FS2_INTR

| PD5 <-> FSMC_NWE - ADSP_PPI_FS1_INTR

| PD14 <-> FSMC_D0 - PPI0

| PD15 <-> FSMC_D1 - PPI1

|PE7 <-> FSMC_D4 - PPI4

|PE8 <-> FSMC_D5 - PPI5

|PE9 <-> FSMC_D6 - PPI6

| PE11 <-> FSMC_D8 - PPI8

| PE10 <-> FSMC_D7 - PPI7

|PE12 <-> FSMC_D9 - PPI9

| PE13 <-> FSMC_D10- PPI10

| PE14 <-> FSMC_D11- PPI11

| PE15 <-> FSMC_D12- PPI12

________________

Attachments :

PPI_timing.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzvw&d=%2Fa%2F0X0000000bRB%2FqiRP2.VqgRKYs2PaRktEfsYn15Y7nLYXX2fgZHTaYVg&asPdf=false

PPI_timing2.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzc3&d=%2Fa%2F0X0000000bRA%2FYb_2nWQbz74HlKh5mIsoZHdl2UO5dfxQ7V5Q.MUCbOg&asPdf=false
sanjib
Associate III
Posted on December 17, 2014 at 16:21

Hi clive

please assist
Posted on December 17, 2014 at 18:23

Ok, so that seems to be a diagram directly out of the manual rather than one that expresses your understanding of the signalling required.

Doesn't look ideal for FSMC usage, would suggest you bit-bang the protocol using GPIO method.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
Posted on December 18, 2014 at 13:49

I tried with FSMC as jan suggest but coudn't get boot the DSP. As per my understanding with the timing diagram of DSP . You suggest to do with gpio but hw should I do that any idea. I have attached the code tries with FSMC ....

sanjib
Associate III
Posted on December 18, 2014 at 13:50

I tried with FSMC as jan suggest but coudn't get boot the DSP. As per my understanding with the timing diagram of DSP . You suggest to do with gpio but hw should I do that any idea. I have attached the code tries with FSMC ....

sanjib
Associate III
Posted on December 20, 2014 at 06:31

How to communicate without FSMC . I mean with gpio pins Please help