(1) use a timer interrupt, timer work requires the use of works 1;
(2) of the square wave per cycle of high level and low level time 500 ms
(3) requires the use of interrupt service routine implementation effect,
CodePudding user response:
What type of MCU?CodePudding user response:
On chip microcontroller timer T1 on P1.0 pin continuous square-wave cycle is 100 ms,(2) square wave of each cycle of high level and low level time 500 ms (the cycle of this sentence is 1000 ms=1 s)
The above two sentences have problems, whether the sentence is right,
CodePudding user response:
This function does not need to interrupt, timer configuration is achieved, but maybe want to take an examination of the interrupt, formulate a 50 ms timer interrupt, interrupt response program to take the p1.0 level,