??? 12/21/04 01:04 Read: times |
#83555 - finally ! Responding to: ???'s previous message |
Things have more or less stabilised....I'll be working with the p87c52 since there are a lot of pieces available with my guide....also i'll use the a276308a eprom with it and a 74hct573 latch..
I'm going to get the pcb done today..... Andy i wanted to know if the coding i write should in anyway be altered since the program is stored in external eprom...or is it enough just to ground the EA pin.. This is the simple code i have written to toggle output every 5 ms...Also i want to confirm is PORT 0 and PORT 2 can be used or are they sacrificed because the carry address/data.. thank you, /*toggle output every 5ms */ #include <at89x51.h> main() { TMOD = 0x01; /* TIMER0 at Mode 1 */ while (1) { TH0 = (65536 - 4608) / 256; /* 5ms */ TL0 = (65536- 4608) % 256; TR0 = 1; /* start timer */ P1=0xFF while (!TF0) /* wait for overflow */ { } TR0 = 0; /* stop timer */ TF0 = 0; /* clear timer overlow flag */ TH0 = (65536 - 4608) / 256; /* 5ms */ TL0 = (65536- 4608) % 256; TR0 = 1; /* start timer */ P1=0x00 while (!TF0) /* wait for overflow */ { } TR0 = 0; /* stop timer */ TF0 = 0; /* clear timer overlow flag */ } } -rahul |
Topic | Author | Date |
eprom | 01/01/70 00:00 | |
None! | 01/01/70 00:00 | |
RTFM! | 01/01/70 00:00 | |
p87c52sbpn with a276308a | 01/01/70 00:00 | |
WHAT ? | 01/01/70 00:00 | |
As josé and neil said | 01/01/70 00:00 | |
cruel and unusual | 01/01/70 00:00 | |
Gimme | 01/01/70 00:00 | |
No need to even search! | 01/01/70 00:00 | |
No need to even search! | 01/01/70 00:00 | |
Derivatives | 01/01/70 00:00 | |
thanks people ! | 01/01/70 00:00 | |
You need to do this | 01/01/70 00:00 | |
Data sheets | 01/01/70 00:00 | |
i am a lot better now ! | 01/01/70 00:00 | |
reset controllers | 01/01/70 00:00 | |
please correct me | 01/01/70 00:00 | |
SEARCH | 01/01/70 00:00 | |
Your are correct | 01/01/70 00:00 | |
website? | 01/01/70 00:00 | |
How to find stuff | 01/01/70 00:00 | |
sdcc compiler | 01/01/70 00:00 | |
External or internal | 01/01/70 00:00 | |
74138 | 01/01/70 00:00 | |
Bible Time | 01/01/70 00:00 | |
Bible Time - again | 01/01/70 00:00 | |
change of processor | 01/01/70 00:00 | |
Reading Time | 01/01/70 00:00 | |
no internal rom | 01/01/70 00:00 | |
What ? | 01/01/70 00:00 | |
Why not? | 01/01/70 00:00 | |
external address/data bus | 01/01/70 00:00 | |
Yes, that IS true. | 01/01/70 00:00 | |
Supersonic goalposts! | 01/01/70 00:00 | |
finally ! | 01/01/70 00:00 | |
How to post code | 01/01/70 00:00 | |
External storage of code | 01/01/70 00:00 | |
Some other references![]() | 01/01/70 00:00 |