??? 07/13/08 07:06 Read: times |
#156659 - Have you tried the simulator? Responding to: ???'s previous message |
Have you tried your code in the simulator? As posted, your code is difficult to read and there are a number of suspect lines. You do this a lot: (4.548e6/frequency). Remember you're only using integer operations, so will the result be what you expect? Keil has function for 'atol' ascii to long conversion and probably a gets function to get a string from the serial port. This should simplify your code a bit. When posting code, use the 'insert code' button so that the code formatting is kept. |
Topic | Author | Date |
serial communication | 01/01/70 00:00 | |
Have you tried the simulator? | 01/01/70 00:00 | |
Some Comments might help | 01/01/70 00:00 | |
what happened to indentions ??? | 01/01/70 00:00 | |
Readability | 01/01/70 00:00 | |
there is a famous story | 01/01/70 00:00 | |
My head hurts | 01/01/70 00:00 | |
6 Ways to Write (& post) More Comprehensible Code | 01/01/70 00:00 | |
Re: 6 Ways to Write (& post) More Comprehensible | 01/01/70 00:00 | |
a personal opinion | 01/01/70 00:00 | |
Problem aided by bigger screen... | 01/01/70 00:00 | |
key word 'modest' I totally agree | 01/01/70 00:00 | |
Blank Lines: My Opinion | 01/01/70 00:00 | |
Avoided? Feed the wolves with him![]() | 01/01/70 00:00 |