How do we simulate the Timer Capture in C167 using Keil simulator(MicroVision 2.10).We are trying to generate the pulse using signal function to feed the CxIO pin & in the program we have configured the T10CON to capture the pulse on pin P20. How do we simulate this as the program requires P20 pin as input ,while the signal function(to generate pulses) expects P20 to be configured as output pin. Can u also brief with the exactSFR setting to be followed for implementing the Timer Capture.
Signal Code : int i; while(1) { DP2 = 0x0001; printf("Port High"); P2.0 = 1; for( i = 0; i<100;i++) printf("Port Low"); P2.0 = 0; for( i = 0; i<50;i++); twatch(200000); DP2 = 0x0000; } DP2 = 0x0000; /* Timer SFR Configuration */ T01CON = 0x4B; DP2 &= 0xFFFE; CCM0 = 0x0B; CC0IE = 1; T01CON |= 0x4B ; CC0IR = 1; T0IC = 0x53; T0R = 1; /* We have configured the following ISR's*/ void CC0INT(void) interrupt 0x40 { ++count; printf("Hello %d\n", count); } void T0INT(void) interrupt 0x20 { ++count; }