DSPRelated.com
Forums

I/O in blackfin

Started by mall...@yahoo.co.in September 11, 2007
Hi!

Actually in blackfin we are configuring the general i/o lines as input or output at a time but can't both..
Is there any chance to make them as both input and ouput at the same time..

Because, iam working in the video encoder in bf533 ezkit lite and iam working i2c protocol.
there PF1 is SDATA after data sent by the SDATA when it is configured as ouput it has to sense the ACK sent by slave... then i think it must be configured as a input line.....
I don't know clearly....,
Any help..

Thank u in adwance
Malli,

The flag pins are either inputs or outputs and cannot be made both at the
same time (of course, if set to output, you can read the pins, but you are
reading the state of the output pin). If you look at the I2C protocol, you
will see that the data line is either an input or an output (ie the CPU is
sending address/data or receiving) and not both at the same time.

You can download the I2C for BF533 EZKIT code from the following link.

http://www.analog.com/processors/blackfin/technicalLibrary/manuals/codeExamp
les.html

Hope this helps.

Regards,

George Kadziolka

Kaztek Systems

www.kaztek.com

_____

From: a... [mailto:a...] On Behalf Of
m...@yahoo.co.in
Sent: Tuesday, September 11, 2007 8:27 AM
To: a...
Subject: [adsp] I/O in blackfin

Hi!

Actually in blackfin we are configuring the general i/o lines as input or
output at a time but can't both..
Is there any chance to make them as both input and ouput at the same time..

Because, iam working in the video encoder in bf533 ezkit lite and iam
working i2c protocol.
there PF1 is SDATA after data sent by the SDATA when it is configured as
ouput it has to sense the ACK sent by slave... then i think it must be
configured as a input line.....
I don't know clearly....,
Any help..

Thank u in adwance