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

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C6x | GPIO as clock output

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

  

Post a new Thread

GPIO as clock output - iddq...@gmail.com - Jun 15 21:06:24 2008



HI

Does anyone know how to use GPIO pin to be a clock output?
I have try to set the "GPIO high----GPIO low_____GPIO high----GPIO low_____" to
simulate the clock output. But that always give me some extra overheads that makes the clock
unreliable. As you know the accuracy of the clock is important. Anyone have any idea how to use
GPIO pin as clock output? All suggestions are welcome. Any help would be appreciated.

Thanks
Peter
------------------------------------

OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x



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

Re: GPIO as clock output - jai kumar - Jun 16 6:51:29 2008

Hi ,
   Configure one Timer for your desired (Frequency/2)  interval .  Enable
the Timer interrupt .
For every T/2 , timer interrupt handler function will be called . In the
handler function  ,toggle your GPIO pin status.
Toggling GPIO pin values will not add much overheads if your required clock
frequency is not that high .

- Jai

On Mon, Jun 16, 2008 at 8:48 AM, <i...@gmail.com> wrote:

>   HI
>
> Does anyone know how to use GPIO pin to be a clock output?
> I have try to set the "GPIO high----GPIO low_____GPIO high----GPIO
> low_____" to simulate the clock output. But that always give me some extra
> overheads that makes the clock unreliable. As you know the accuracy of the
> clock is important. Anyone have any idea how to use GPIO pin as clock
> output? All suggestions are welcome. Any help would be appreciated.
>
> Thanks
> Peter
>



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

Re: GPIO as clock output - Jeff Brower - Jun 16 14:05:22 2008

Peter-

> Does anyone know how to use GPIO pin to be a clock output?
> I have try to set the "GPIO high----GPIO low_____GPIO high----GPIO low_____"
> to simulate the clock output. But that always give me some extra overheads
> that makes the clock unreliable. As you know the accuracy of the clock is
> important. Anyone have any idea how to use GPIO pin as clock output? All
> suggestions are welcome. Any help would be appreciated.

Suggest to use the TIM1 pin for this.  The TIMn pins are connected to onchip timer
circuitry output, and they also have drive characteristics more suitable for use as a
clock.  The TIM0 pin is not a good idea, as TIMER0 is used by DSP/BIOS.

Using a GPIO pin for a clock is a bad idea.  GPIO pins are not intended for this.  As
you've discovered, tightly controlled timing of output signals is not possible.

-Jeff

------------------------------------

OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x



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