Did you use an interupt routine? can you post the code you used?