Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | How to function GPIO as IIC bus

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

How to function GPIO as IIC bus - º£¶« Ñî - Dec 21 1:25:00 2004

Since 6414 do not have dedicate IIC port,i want to use the GPIO pin,and
program it to function as IIC port.
Does anyone can give me some advice or some example code,any
help getting started will be greatly appreciated.





______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: How to function GPIO as IIC bus - Jeff Brower - Dec 22 22:49:00 2004

º£¶« Ñî-

> Since 6414 do not have dedicate IIC port,i want to use the GPIO pin,and
> program it to function as IIC port.Does anyone can give me some advice
> or some example code,anyhelp getting started will be greatly appreciated.

Do you mean I2C port? If so, it may not be a good idea to use GPIO pin. It would
take some software MIPS -- similar problem as with "software UART". You can find
many comments on C6x group about software UART and the issues that people faced.

A better approach may be small, low-cost Philips I2C controller or similar device.
Then you can hook the I2C controller to EMIFB, SPI (McBSP), etc.

-Jeff






(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: How to function GPIO as IIC bus - Paul - Dec 23 2:01:00 2004

Thanks for your advice.Actually,on my board,i use the DSP to initialize
the video decoder SAA7115 via the GPIO when power on.So,it does't
cost any software MIPS,when the initialize has been done,the I2C port
need't to work any more.

Jeff Brower <j...@signalogic.com> wrote:

º£¶« Ñî-

> Since 6414 do not have dedicate IIC port,i want to use the GPIO pin,and
> program it to function as IIC port.Does anyone can give me some advice
> or some example code,anyhelp getting started will be greatly appreciated.

Do you mean I2C port? If so, it may not be a good idea to use GPIO pin. It would
take some software MIPS -- similar problem as with "software UART". You can find
many comments on C6x group about software UART and the issues that people faced.

A better approach may be small, low-cost Philips I2C controller or similar device.
Then you can hook the I2C controller to EMIFB, SPI (McBSP), etc.

-Jeff





______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: How to function GPIO as IIC bus - Jeff Brower - Dec 23 11:52:00 2004

Paul-

> Thanks for your advice.Actually,on my board,i use the DSP to initialize
> the video decoder SAA7115 via the GPIO when power on.So,it does't
> cost any software MIPS,when the initialize has been done,the I2C port
> need't to work any more.

With video / audio codec, network switch, etc -- any device where one-time
or infrequent initialization is needed -- GPIO is good solution.

My suggestion was for active I2C bus, where communication takes place
frequently and is used for data transfer.

-Jeff

> Jeff Brower <> wrote:
>
> º£¶« Ñî-
>
>> Since 6414 do not have dedicate IIC port,i want to use the GPIO pin,and
>> program it to function as IIC port.Does anyone can give me some advice
>> or some example code,anyhelp getting started will be greatly
>> appreciated.
>
> Do you mean I2C port? If so, it may not be a good idea to use GPIO pin. It
> would
> take some software MIPS -- similar problem as with "software UART". You
> can find
> many comments on C6x group about software UART and the issues that people
> faced.
>
> A better approach may be small, low-cost Philips I2C controller or similar
> device.
> Then you can hook the I2C controller to EMIFB, SPI (McBSP), etc.
>
> -Jeff


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )