New: Extremely fast Digital Comparator Component Available.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

I have uploaded a new Digital Comparator component (DCmp) that is almost as fast (1/2 BUS_CLK frequency) as the Infineon version but uses significantly less PSoC resources.  It also can perform SIGNED comparisons!

DCmp-V2-0-component-Upgrade-to-DCmp-with-optional-HW-inputs 

Here's a quick look at some of the features compared to the Infineon component.

Method

Infineon Digital Comparator

CONSULTRON DCmp

Input load

HW

HW, DMA or CPU

Threshold load

HW

DMA or CPU

Number of simultaneous inputs

1

1 or 2

Number of simultaneous comparisons

1

1 or 2

Simultaneous comparison outputs

1 HW

1 to 6 HW types

Data Widths

1- to 32- bits

1- to 32- bits

Comparison output glitch filter

No (async)

Yes (load signal sync)

Relative PSoC resource allocation*

>=(1/3)x@8-bits

>=(2/9)x@16-bits

>=(2.5/13)x@24-bits

>=(3/17)x@32-bits

(1/1)x @ 1- to 8-bits   + 1 Datapath
(1/1)x @ 9- to 16-bits + 2 Datapath
(1/1)x @ 17- to 24-bits + 3 Datapath
(1/1)x @ 25- to 32-bits + 4 Datapath

Relative Comparison Speed

Fastest (async) (~10ns)

Extremely fast using HW(1/2 BUS_CLK cmps/sec)

Very fast using DMA (>4M cmps/sec)

Signed comparisons

No

Yes

 

Check it out.

I suggest this thread be used to share ideas how to use this component in creative ways.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
0 Replies