| ??? 07/07/06 11:30 Modified: 07/07/06 11:32 Read: times |
#119800 - Some points: Responding to: ???'s previous message |
time = timercounts/921583; This divides a value that ranges from 0 to 65535 by 921583. The result will be zero. rpm = (unsigned int)(30/time); This divides 30 by zero. Your problems seem to be related to basic integer arithmetics. |
| Topic | Author | Date |
| frequency of a digital pulse | 01/01/70 00:00 | |
| Variable definitions ? | 01/01/70 00:00 | |
| Please post formatted code | 01/01/70 00:00 | |
| Some points: | 01/01/70 00:00 | |
| misconceptions cleared | 01/01/70 00:00 | |
| inappropiate response | 01/01/70 00:00 | |
| the entire problem again | 01/01/70 00:00 | |
| flag=!flag ? | 01/01/70 00:00 | |
| The value of Flag is known! | 01/01/70 00:00 | |
| I see, but I don't C | 01/01/70 00:00 | |
| It's illogical, Captain... | 01/01/70 00:00 | |
It is worse than that | 01/01/70 00:00 | |
| nope | 01/01/70 00:00 | |
| Please post formatted code!! | 01/01/70 00:00 | |
| he did follow the instructions | 01/01/70 00:00 | |
| Oh no he didn't! | 01/01/70 00:00 | |
| Argument | 01/01/70 00:00 | |
| well, I saw the indentions and - shame | 01/01/70 00:00 | |
| formatted code................. | 01/01/70 00:00 | |
| thus therefore undefined | 01/01/70 00:00 | |
| Formatted, but not the same code! | 01/01/70 00:00 | |
| 2 problems off the top | 01/01/70 00:00 | |
| a blatant understatement | 01/01/70 00:00 | |
| Implicit casting mess. | 01/01/70 00:00 | |
| commentless code is worthless | 01/01/70 00:00 |



