??? 02/28/05 22:18 Read: times |
#88714 - Re: an answer Responding to: ???'s previous message |
Ian Bell said:
OK I get the picture. So originally you planned to use the outputs of both timers for the motor clocks but you need one timer for serial comms.
You need to create two clock outputs from one timer. The way to do this is not to use the timer output itself. Instead use the timer interrupt and in the interrupt service routine (ISR) change the state of the port pins you want to clock. You can set flags in the main code to tell the ISR which outputs to clock or not. Ian P.S. Are you studying at Plymouth Uni?? yeah im at plymouth uni! I am actually using interrupts, the way my clock works is by complementing P3.4 when the timer overflows. I could try and put my code on an ftp somewhere so it could be read to see how im doing it. |
Topic | Author | Date |
2 timers plus 9600 baud for serial | 01/01/70 00:00 | |
8751 | 01/01/70 00:00 | |
Fossil | 01/01/70 00:00 | |
recommended | 01/01/70 00:00 | |
drop in | 01/01/70 00:00 | |
Mode 3 | 01/01/70 00:00 | |
RE: fossil | 01/01/70 00:00 | |
So its a drop in replacement ? | 01/01/70 00:00 | |
if thinking is too much | 01/01/70 00:00 | |
re: so its a drop in replacement | 01/01/70 00:00 | |
The point | 01/01/70 00:00 | |
re: point | 01/01/70 00:00 | |
So... | 01/01/70 00:00 | |
processor | 01/01/70 00:00 | |
Wrong | 01/01/70 00:00 | |
solution | 01/01/70 00:00 | |
relatively ahead | 01/01/70 00:00 | |
re: | 01/01/70 00:00 | |
you might | 01/01/70 00:00 | |
re: | 01/01/70 00:00 | |
can not use a timer that is not there | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
the result of incomplete | 01/01/70 00:00 | |
Clocks | 01/01/70 00:00 | |
re: | 01/01/70 00:00 | |
Clock source | 01/01/70 00:00 | |
An Answer | 01/01/70 00:00 | |
Re: an answer | 01/01/70 00:00 | |
That one's a goner too | 01/01/70 00:00 | |
"Clock" | 01/01/70 00:00 | |
re: clock | 01/01/70 00:00 | |
simple, my dear Watson | 01/01/70 00:00 | |
re: simple | 01/01/70 00:00 | |
T89C51 RD2 | 01/01/70 00:00 | |
Plastic DIP ? | 01/01/70 00:00 | |
budget | 01/01/70 00:00 | |
Budget | 01/01/70 00:00 | |
AT89C51RD2 | 01/01/70 00:00 | |
gladly | 01/01/70 00:00 | |
re: | 01/01/70 00:00 |