Skip to main content
This topic has been closed for replies.

2 replies

e239955_stm1_stmicro_com
Associate III
September 29, 2005
Posted on September 29, 2005 at 15:46

I was wondering :

EMI use port P2.0 to P2.3 to generate CS0 to CS3 (corresponding to 4 banks EMI)

So we configure GPIO as follows :

GPIO_Config(GPIO2, 0x000F, GPIO_AF_PP);

But port P2.4 to P2.7 are also used to for address bits A20 to A23.

Do we have to configure these port pins to Alternate Function ?

Why don't we configure GPIO2 like this :

GPIO_Config(GPIO2, 0x00FF, GPIO_AF_PP);

Unless that the P2.4 to P2.7 remains undefined ?

What's wrong in my deduction ?

Thx,

Manu

e239955_stm1_stmicro_com
Associate III
October 3, 2005
Posted on October 03, 2005 at 09:01

Great, I can configure EMI without the upper 4 address bits !

That's nice