Neyolight
Full Member level 5
Hi All
I have a very simple question that I "kind of" know the answer to. But I would like to see what you guys think.
I have a series of digital data for example 001110001100000111100. I want to count how many 0 to 1 transitions are present in the data. For the data set in the example, I should get 3.
The simples way to do this is to store current data if its 0 and check if the next data coming in is 1. This is the theory behind it but what is the fastest and most efficient way to implement it ?
Although I havent started implementing this yet but when I do I would be using a PIC micro.
Thanks
I have a very simple question that I "kind of" know the answer to. But I would like to see what you guys think.
I have a series of digital data for example 001110001100000111100. I want to count how many 0 to 1 transitions are present in the data. For the data set in the example, I should get 3.
The simples way to do this is to store current data if its 0 and check if the next data coming in is 1. This is the theory behind it but what is the fastest and most efficient way to implement it ?
Although I havent started implementing this yet but when I do I would be using a PIC micro.
Thanks
Last edited: