پاسخ : ساخت ریدر 125khz برای تق های rf id
سلام . بابت انتشار تجربه و زحماتتون ممنون.
اگر ممکنه این قسمت رو یه توضیح میدید ؟
interrupt [TIM1_CAPT] void timer1_capt_isr(void)
{
if(count<150)
{
recieve_temp=ICR1L+(ICR1H*256);
TCNT1H=0x00 >> 8;
TCNT1L=0x00 & 0xff;
count++;
if(recieve_temp>1150 && recieve_temp<1300)rec_id[count]=3;
if(recieve_temp>850 && recieve_temp<1000)rec_id[count]=2;
if(recieve_temp>550 && recieve_temp<700)rec_id[count]=1;
if(count>=150)
{
timer1_flag=1;
}
}
}
سلام . بابت انتشار تجربه و زحماتتون ممنون.
اگر ممکنه این قسمت رو یه توضیح میدید ؟
interrupt [TIM1_CAPT] void timer1_capt_isr(void)
{
if(count<150)
{
recieve_temp=ICR1L+(ICR1H*256);
TCNT1H=0x00 >> 8;
TCNT1L=0x00 & 0xff;
count++;
if(recieve_temp>1150 && recieve_temp<1300)rec_id[count]=3;
if(recieve_temp>850 && recieve_temp<1000)rec_id[count]=2;
if(recieve_temp>550 && recieve_temp<700)rec_id[count]=1;
if(count>=150)
{
timer1_flag=1;
}
}
}
دیدگاه