Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | Comparing two clock signals

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Comparing two clock signals - TA1T - Sep 25 8:28:00 2003



I would like to input a clock signal into a gpio pin on the dsp56f827
which has been generated from timer_A2. (Timer A2 physically wired to
the GPIO pin)

I then want to compare the clock signal input to the GPIO, to a clock
signal on timer_A3.

If the signals have the same frequency - Then light an led
If the signals have the same amplitude - Then light another led

Currently i am able to generate the clock signal on timer_A2 and
receive it through a port D GPIO pin. The clock signal is input in
the following way:

while(1) {

temp = (Word16)periphMemRead(&ArchIO.PortB.DataReg);
/* read portB data register */

data[0] = 0x0001 & temp;
/* place signal input into port D pin0, to data[0] */

}

Basically what happens is that data[0] is constantly updated with the
new value received by the GPIO pin.

I then need to compare this signal with a signal on timer_A3.

Can people give me some ideas on how i could now compare the signals
as this problem is really getting me bogged down?




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