LPC_TIM1->TCR = 0x02; LPC_TIM1->IR = 0x02; LPC_TIM1->CTCR = 0; LPC_TIM1->TC = 0; LPC_TIM1->PR = 0; LPC_TIM1->MCR = 0x18; while(ISO7816_READ_DATA_BIT); // wait on high state LPC_TIM1->TC = 0; // clear Timer Counter LPC_TIM1->TCR = 0x01 ;// start Timer while(!ISO7816_READ_DATA_BIT); // wait on low state oneBitTime = LPC_TIM1->TC; // pulse width LPC_TIM1->TCR = 0x02; // stop Timer |