I need more gpio

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

I need more gpio

Postby niqingliang2003 » Mon Jul 20, 2015 12:23 pm

hello, the board has 48 gpios, but I need more, mainly for two camera, for motor.

1. I found only one I2C in PEC_POWER, where is the other one provided by zynq?

2. can I connect the PEC_SOUTH/PEC_NORTH to zynq directly? maybe through modifing configuration of Epiphany?
niqingliang2003
 
Posts: 5
Joined: Mon Jul 20, 2015 10:53 am

Re: I need more gpio

Postby tnt » Mon Jul 20, 2015 8:11 pm

No, south and noth pec are not GPIOs, they're dedicated e-links interface.

However the GPIOs that you have are _really_ fast. Allowing time multiplexing or usage of better protocols.

You mention camera : which ones ? For instance, the rpi camera can be connected to this board using only 6 fast GPIOs.

For the motors, how are you driving them ?
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: I need more gpio

Postby niqingliang2003 » Tue Jul 21, 2015 7:24 am

tnt wrote:No, south and noth pec are not GPIOs, they're dedicated e-links interface.

However the GPIOs that you have are _really_ fast. Allowing time multiplexing or usage of better protocols.

You mention camera : which ones ? For instance, the rpi camera can be connected to this board using only 6 fast GPIOs.

For the motors, how are you driving them ?


for motor: every motor driver chip need 4 pin, one is for pwm (speed), one is for direction, and two is for microstepping.
for camera: I'm using ov's parallel camera, data need 8/10bit, 1 frame sync, 1 line sync, 1 clock, 1 iic clk, 1 iic data, and so on.

indeed, more other chips, e.g. sensor, switch ...

what is rpi camera? Raspberry Pi camera ?

where is the other i2c?
niqingliang2003
 
Posts: 5
Joined: Mon Jul 20, 2015 10:53 am

Re: I need more gpio

Postby tnt » Tue Jul 21, 2015 11:05 am

Yes, I meant the RPi camera. In addition to the 6 high speed line they have I2C and a couple of slow IO (enable/powerdown and led control, nothing critical). But all those slow lines could be multiplexed / shared.

For the motors, the direction and microstep selection could also be serialized. You could use a few daisy chained 74HC595 to have a high number of output for those slow signals and just keep the PWM speed control as a direct connection. Same things for any 'slow' sensor (things like bumper detector), you could serialize them, or use an I2C GPIO controller.

The other I2C isn't routed to any pin, all the MIO pins are taken. But it's available inside the FPGA itself through EMIO if you want and from there you can route it to any of the 48 GPIOs.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: I need more gpio

Postby niqingliang2003 » Tue Jul 21, 2015 11:56 am

tnt wrote:Yes, I meant the RPi camera. In addition to the 6 high speed line they have I2C and a couple of slow IO (enable/powerdown and led control, nothing critical). But all those slow lines could be multiplexed / shared.

For the motors, the direction and microstep selection could also be serialized. You could use a few daisy chained 74HC595 to have a high number of output for those slow signals and just keep the PWM speed control as a direct connection. Same things for any 'slow' sensor (things like bumper detector), you could serialize them, or use an I2C GPIO controller.

The other I2C isn't routed to any pin, all the MIO pins are taken. But it's available inside the FPGA itself through EMIO if you want and from there you can route it to any of the 48 GPIOs.


Very Thanks! I'll consider the serial-parallel solution.
niqingliang2003
 
Posts: 5
Joined: Mon Jul 20, 2015 10:53 am

Re: I need more gpio

Postby voyager » Wed Sep 16, 2015 8:34 pm

Hi
I have the same problem with desktop version! want to connect an adc chip with 14 pairs lvds port but my parallella has only 12 pairs! I need just two pairs more :D and embedded version price is high! how could we manage this problem? Any suggestion would be appreciated!
tnx
voyager
 
Posts: 8
Joined: Wed Sep 16, 2015 8:01 pm


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 3 guests

cron