We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Please, I need configure the counter1 for counter events, but using keil-debug it does not work. The counter1 configure is:
void RPM_INIT (void) { EA=1; TR1=TF1=0; TMOD=(TMOD&0xF0)|0xd0; TH1=TL1=0; EX1=1; IT1=1; }
The configuration in the debug is OK, TR1=1, but the counter not increment for pulses in P3.3 (INT1). Any ideas where the problem is? Thanks, Fernando
Perhaps you meant:
TMOD=(TMOD&~0xF0)|0xd0;