??? 04/25/07 13:24 Read: times |
#137927 - I used 1 sec delay Responding to: ???'s previous message |
Andy Neil said:
Look at the diagram: you obviously need a 1-second "clock" that controls everything; then you just need to count the clock "ticks" and toggle each pin on the appropriate count... I used Timer0 for 1sec delay and with that i can toggle P1.0 for each overflow. But i could not do the same for other ports. this is the problem i face. I tried incrementing a register for 1sec delay and toggling the ports by reading it. But couldnt find a suitable Solution. Erik, Thanks for that link on PCA. But as the rating says its really a homework assignment given to me by an employer. I was told to develop a ASM code for it. regard's Suresh. |
Topic | Author | Date |
timing sequence generation using AT89S52 | 01/01/70 00:00 | |
Can you count? | 01/01/70 00:00 | |
I used 1 sec delay | 01/01/70 00:00 | |
This is a typical PCA job | 01/01/70 00:00 | |
PCA?![]() | 01/01/70 00:00 | |
start with assembler code generated from C | 01/01/70 00:00 | |
or rather try this highly pathological C code :^) | 01/01/70 00:00 | |
Use the Timer | 01/01/70 00:00 |