??? 05/06/05 15:09 Read: times |
#93066 - Big problem Responding to: ???'s previous message |
Arun V said:
I have no idea what the input to this C program will be. Even if i assume that I have to give inputs manually / or by specifying a input function, for the C program, I am confused as to how this input will be taken by the 8051 simulator. This is a stupid assignment, obviously set with the intent of tripping you up. Though I held the code in my little space, I haven't used it in anger, and besides, I am a Pascal programmer I can only suggest you take the code and give it some input from the UART, using the ascii value of a character as the input number, so you could use ascii '1','2','3','4' etc, as they would appear to your program as 31H,32H,33H etc. A square wave would then be a sequence like 1,1,1,1,9,9,9,9,9,9,1,1,1,1,1,1,9,9,9,9,9 The output, frankly, could be anything you like - it seems to me no-one is going to be any the wiser if you just put out a sequence of random numbers. The only way I can see to get out of this is to write a PC based code in 'C' and then attempt to cross-compile it on your 8052 compiler. My professor wants the work in a day and say even if i manage to write the code i will not able to compile them and convert them to 8051 compatible hex format coz the softwares i have do not support more than 4kb of code. Its obvious your professor is a complete idiot, and not worthy of the title. You cannot write and compile a program which you have no means to test. Maybe thats the test ? You have nothing to lose by telling him to his face that you have examined the problem in some detail and it cannot be done unless he can present a half-decent specification. Of course, he is probably wrong, and you COULD get something working in only 4K. There is an ancient Intel app. note that explains in assembler how to perform a DFT, but I do not know where. Sorry Arun, its not that I won't help, its just that I can't, especially given the lack of a spec. Steve |
Topic | Author | Date |
Help with 8051 code for FFT | 01/01/70 00:00 | |
asking the impossible | 01/01/70 00:00 | |
Big problem | 01/01/70 00:00 | |
Hex Code for this program | 01/01/70 00:00 | |
4k ? | 01/01/70 00:00 | |
Steve... | 01/01/70 00:00 | |
Eh ? | 01/01/70 00:00 | |
Keil... | 01/01/70 00:00 | |
Something doesn't quite make sense | 01/01/70 00:00 | |
Coz... | 01/01/70 00:00 | |
What's the problem then? | 01/01/70 00:00 | |
Keil trial | 01/01/70 00:00 | |
Try Compiling it on Keil Once... | 01/01/70 00:00 | |
Here you go | 01/01/70 00:00 | |
Thanx | 01/01/70 00:00 | |
Here you go too | 01/01/70 00:00 | |
Thanx again.... | 01/01/70 00:00 | |
@Frieder | 01/01/70 00:00 | |
Arrays ? | 01/01/70 00:00 | |
Perseverance | 01/01/70 00:00 | |
Not really![]() | 01/01/70 00:00 |