ecioarm pin connection

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

ecioarm pin connection

Post by saschech@gmx.de »

Hello Team

Where i found the correct " pin connection name " e.g. IRQ0 = pin .... ecio pin at91......??
The picture on the ecio.pdf and chip inside flowcode are different and dont show these.
Where i can downlod a wiring-diagram from the ecioarm?

Regards Wolfgang

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ecioarm pin connection

Post by Benj »

Hello Wolfgang,

Can you tell me which pins differ between the Flowcode chip diagram and the ECIO datasheet and I will get the problem sorted.

Below is the map from the Board_ECIO.h file that controls how the I/O are mapped onto the SAM7S device.

#define PORTA0 ( 1<<24 )
#define PORTA1 ( 1<<26 )
#define PORTA2 ( 1<<11 )
#define PORTA3 ( 1<<10 )
#define PORTA4 ( 1<<9 )
#define PORTA5 ( 1<<8 )
#define PORTA6 ( 1<<6 ) /* TX0 */
#define PORTA7 ( 1<<5 ) /* RX0 */

#define PORTA (PORTA0|PORTA1|PORTA2|PORTA3|PORTA4|PORTA5|PORTA6|PORTA7)

#define PORTB0 ( 1<<23 )
#define PORTB1 ( 1<<20 ) /* AD3 */
#define PORTB2 ( 1<<31 )
#define PORTB3 ( 1<<15 )
#define PORTB4 ( 1<<14 ) /* SPI */
#define PORTB5 ( 1<<13 ) /* SPI */
#define PORTB6 ( 1<<25 )
#define PORTB7 ( 1<<12 ) /* SPI */

#define PORTB (PORTB0|PORTB1|PORTB2|PORTB3|PORTB4|PORTB5|PORTB6|PORTB7)

#define PORTC0 ( 1<<17 ) /* AD0 */
#define PORTC1 ( 1<<18 ) /* AD1 */
#define PORTC2 ( 1<<19 ) /* AD2 */
#define PORTC3 ( 1<<7 )
#define PORTC4 ( 0 ) /* N/A */
#define PORTC5 ( 0 ) /* N/A */
#define PORTC6 ( 1<<22 ) /* TX1 */
#define PORTC7 ( 1<<21 ) /* RX1 */

#define PORTC (PORTC0|PORTC1|PORTC2|PORTC3|PORTC4|PORTC5|PORTC6|PORTC7)

#define PORTD0 ( 1<<4 ) /* I2C */
#define PORTD1 ( 1<<27 )
#define PORTD2 ( 1<<28 )
#define PORTD3 ( 1<<29 )
#define PORTD4 ( 1<<3 ) /* I2C */
#define PORTD5 ( 1<<2 ) /* PWM */
#define PORTD6 ( 1<<1 ) /* PWM */
#define PORTD7 ( 1<<0 ) /* PWM */

#define PORTD (PORTD0|PORTD1|PORTD2|PORTD3|PORTD4|PORTD5|PORTD6|PORTD7)

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: ecioarm pin connection

Post by saschech@gmx.de »

Hello Benj

I mean first for ecrm40: http://www.matrixmultimedia.com/datashe ... O-60-2.pdf
and inside flowcode (show picture) there is pa2/pa11/PWM0.....

If i want work with eg. IRQ0 what pin is connect with a switch?

My port d0 to d7 are my data-bus;can i change the pwm and i2c pins to e.g. portC ore portA?

Regards Wolfgang
Attachments
pin con..gif
(79.16 KiB) Downloaded 2049 times

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: ecioarm pin connection

Post by saschech@gmx.de »

Hello Benj

All what i want , understand , if i selekt a Flowcode makro > the pin from the ecioarm for start the function (or output for pwm.....)
interrupt makro > selekt IRQ0 > pin????
interrupt makro > selekt IRQ1 > pin????
pwm.....
int on port b....
for ad macro i can show the pins.


Regards Wolfgang

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ecioarm pin connection

Post by Benj »

Hello Wolfgang,

The ECIO is hard wired and I wouldn't really advise changing the board.h file as it could lead to all kinds of confusion and incompatibility. Eg you could reassign the connections of PortD but the physical PA ARM pin is still hardwired to its destination.

IRQ0 is pin PA20 which on the ECIOARM is PortB1.

IRQ1 is pin PA30 which on the ECIOARM is not brought out and is dedicated to USB detection.

Only one PWM component can be added to your program at the moment and this only allows 2 channels to operate. We hope to improve this functionality in the future.

On the ECIO these channels are

1 - Port D7
2 - Port D6

I have asked that the ECIO diagram is updated with the IRQ0 label on RB1 and also to remove the IRQ1 interrupt from the selection list because the pin is unavailable.

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: ecioarm pin connection

Post by saschech@gmx.de »

Hello Benj

Please excuse,but the pins are not correct.
After i test the IRQ0and IRQ1 with all portpins,it works in simulation
irq0 with portd-6 = pin47 on chip
irq1 with portd-3 = pin41 on chip

portb1 on hardware is connect with pin16

Is there not a circuit diagram wich show the correct plugging ?

Please help me

Regards Wolfgang

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ecioarm pin connection

Post by Benj »

Hello Wolfgang,

Here is the ARM device and its relative connections. I will have a look into why the interrupt pins are on PortD. Maybe we have done something to reassign them on the device.
ECIOARM.JPG
(122.11 KiB) Downloaded 2026 times

Post Reply