??? 08/10/05 13:54 Read: times |
#99115 - I think your problem is that you are usi Responding to: ???'s previous message |
I think your problem is that you are using a "basic '51"
The "basic '51" with T0 and T1 only can not count from two inputs AND run a UART (at least not simultaneously). Trying to make double use of T1 (counter and baud) will lead to some convoluted code so I suggest you get hold of a derivative with a T2. There is a plethora of those: xxx52, xx53, xx54, xx55, 89c51Rxx, P89V51xx, P89C66x and many more. You CAN make T1 work as a counter, reconfigure T1 as a baudrate generator and then transmit, I am not saying it is not possible, but to go through that hassle to use a processor that cost 5 cents less than another with T2 - is it worth it? Erik |
Topic | Author | Date |
using the COUNTER with the SERIAL | 01/01/70 00:00 | |
I think your problem is that you are usi | 01/01/70 00:00 | |
chip being used | 01/01/70 00:00 | |
give a link | 01/01/70 00:00 | |
wahts about the direction ? | 01/01/70 00:00 | |
To Peter | 01/01/70 00:00 | |
Change chip. | 01/01/70 00:00 | |
Nope! I can't do that | 01/01/70 00:00 | |
I do not know if micro can, but it would | 01/01/70 00:00 | |
sorry | 01/01/70 00:00 | |
How do you propose to (re)program this c | 01/01/70 00:00 | |
use external interrupts | 01/01/70 00:00 | |
DEEPEST APOLOGIES!!! | 01/01/70 00:00 | |
Re DS5000 | 01/01/70 00:00 | |
ds5000 | 01/01/70 00:00 | |
Created a program! | 01/01/70 00:00 | |
read up on UART modes in "the bible" | 01/01/70 00:00 | |
A new idea! maybe the right one | 01/01/70 00:00 | |
you are running out of timers | 01/01/70 00:00 | |
using the COUNTER with the SERIAL port | 01/01/70 00:00 | |
timer2 | 01/01/70 00:00 | |
No timer 2 | 01/01/70 00:00 | |
Your problem is that you need 3 counter/ | 01/01/70 00:00 | |
erik | 01/01/70 00:00 | |
I think you have run into a mental block![]() | 01/01/70 00:00 |