Hi to all, I always use heart bit led to indicate every things fine or there is an error etc. and noticed that my heart bit led routine is slowing down ADC conversion I have it on 2 channels. now I am wondering if there is better routine that I used it. I didn't use any delay that way will be no delay. here is the code I came up. I use 16f876a and it is setup on timer1 interrupt. I use ccs compiler and i is global int. // Is PIC Alive or what? #INT_TIMER1 void alive_isr() { if ( td_status == OK ) { // Single Blink to indicate OK switch(i) { case 0 : alive_led_on; i++; break; case 1 : alive_led_on; i++; break; case 2 : alive_led_on; i++; break; case 3 : alive_led_on; i++; break; case 4 : alive_led_on; i++; break; case 5 : alive_led_off; i++; break; case 6 : alive_led_off; i++; break; case 7 : alive_led_off; i++; break; case 8 : alive_led_off; i++; break; case 9 : alive_led_off; i++; break; default : i=0; }// end of switch } else { // Double Blink to indicate error switch(i) { case 0 : alive_led_on; i++; break; case 1 : alive_led_off; i++; break; case 2 : alive_led_on; i++; break; case 3 : alive_led_off; i++; break; case 4 : alive_led_off; i++; break; case 5 : alive_led_off; i++; break; case 6 : alive_led_off; i++; break; case 7 : alive_led_off; i++; break; case 8 : alive_led_off; i++; break; case 9 : alive_led_off; i++; break; default : i=0; }// end of switch }// end of if } my question is what is the best way of indicating single blink led or double blink led that is not going to take lots of resources. thanks Andre -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist