??? 08/11/05 21:26 Read: times |
#99226 - A new idea! maybe the right one Responding to: ???'s previous message |
I've been doing alot of reading and thinking. I think maybe I've been looking into this problem a bit too deeply and that it shouldn't be as difficult as I had first assumed. The whole purpose of the program is to read the values I get from the encoders.
If my sensor is connected to P3.4, then this sensor can just count the number of pulses, and then I can possibly read the value of TIMER 0, so it can tell me the actual count. could i use something like this to read the pulses counted? REPEAT: MOV A,TH0 MOV R0,TL0 CJNE A,TH0,REPEAT Will the value counted, then appear on my computer screen? But then how can I work out the number of pulses counted per second? I know I have to use TF0 to detect the overflow, but does anyone have any idea what this code is going to look like. I think I may not need to configure the serial cable after all, am I right about this? |
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 |