This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640: Input Edge-Count Mode Questions

Part Number: CC2640

Assuming the system-clock is 48MHz (external 24MHz clock signal), I have some questions on the rising-edge detection for the CC26x0 devices.
From the Technical Reference Manual:

For rising-edge detection, the input signal must be high for at least two system-clock periods following the rising edge. Similarly, for falling-edge detection, the input signal must be low for at least two system-clock periods following the falling edge. Based on this criteria, the maximum input frequency for edge detection is ¼ of the system frequency.

[1] Is there any timing diagram showing an example of this, with the system-clock and the timing from an edge happening, to the count register getting updated?
[2] If falling-edge detection is not a care-about, how much time after the input signal falling edge is needed to detect the next rising edge? Does this  ¼ of the system frequency limit still apply?

P310 of the attached Renesas MCU user manual gives such an example. RL78/G13 User's Manual: Hardware
 In this example, they show the "system-clock" as f_mck.
After a rising edge on the external timer input, the f_mck has a rising edge ->
on the next rising edge, it triggers the "edge detected" signal (= count clock),
and then on the falling edge of that 2nd f_clk pulse, the value in the count register changes.

From the above, it looks like Renesas is using one system-clock period (two system clock rising edges) to detect a rising-edge event.
Because of this, it looks like assuming a 32MHz system-clock (f_mck), they can detect up to 1/2 the f_mck, or in this case, up to 16MHz.

But our solution needs two system-clock periods to detect an edge, so we can only do up to 12MHz, right?

Darren

  • Hi,

    Thanks for the question.

    I have passed this on to the HW experts for their insight.

    Regards,
    Toby

  • Hi Darren,

    I think the source of your confusion is that the maximum frequency square wave that the CC2640 can detect is 1/4 of the system clock

    We know that it takes 2 system clock cycles for the CC 2640 detect the high input (1/2 of the input wave's period) and 2 system clock cycles to detect the low input (the other 1/2 of the input wave's period), then it takes 4 system clock cycles to detect the full period. Unless I misunderstand how their part works, this is no different from the timing diagram of the Renesas part you've linked. The Renesas part should also only be able to detect a maximum of 1/4 the system clock frequency as well.

    As for your more specific questions:

    [1] Is there any timing diagram showing an example of this, with the system-clock and the timing from an edge happening, to the count register getting updated?

    No unfortunately I don't know of any diagram that we have that accomplishes this.


    [2] If falling-edge detection is not a care-about, how much time after the input signal falling edge is needed to detect the next rising edge? Does this ¼ of the system frequency limit still apply?

    As I understand, assuming you've already detected a low, it would take 2 system clock periods to detect the next rising edge. So, I would say the 1/4 of the system frequency limit still applies, because in order to detect a rising edge, you need to know that the past input was low (2 clock cycles needed) and the current input is high (2 clock cycles)