Hi.
My problem is right now, that i have figured out that i can't do this without using interrupt, but first i will tell you why and how!

The EM4095 is a RFID chip which outputs a Clock signal and a Data signal.
Then you need to get EVERY Clock pulse (HIGH, LOW), but you can't do that with a normal WHILE Loop and then a "IF PORTB.1(Clock pin) = 1" as it would take to much time, and then have you maybe lost some clock pulses.

We need to get 128 bits of Data, and it's NOT equal 128 bits of Clock Pulses, look at this table to find out why:
1. Wait on the Falling Egde on the Data-Port
2. Wait 16 Clock Pulses (HIGH, LOW) from the Clock-Port
3. Collect first data on the Data-Port "PORTB.0 and 1"
4. Wait 32 Clock Pulses (HIGH, LOW) from the Clock-Port
5: Collect second data on the Data-Port "PORTB.0 and 1"
6: Point 4 and 5 is repeated 255 times

Every Clock pulses is counted with the interrupt on PORTB.1 (the Clock-Port)!
But my problem is, that i would like to do all this without using the Interrupt method, as if i'm in a While Loop and the interrupt then see a falling edge on the Clock-Port, then it interrupt's the While Loop, and my whole code is starting from the beginning again.
Therefor i can't do anything with my code, as it would interrupt!!! Damn thing...

I'm using a PIC18F4550 to you information.

Best Regards
Thomas Jespersen