| ??? 09/28/09 13:04 Read: times |
#169220 - IF-ELSE problem Responding to: ???'s previous message |
That whole set of if-else statements can be compressed into:
ADCOCON2 = 0x40 + (ch-1); This will give you equal execution times for each channel. That is, doing channel 10 will not need the previous 9 channel tests. --Rich |
| Topic | Author | Date |
| ADuC848: Trouble of reading all 10 ADC channels, pleas help! | 01/01/70 00:00 | |
| Watchdog? | 01/01/70 00:00 | |
| Yes, it's watchdog reset problem! | 01/01/70 00:00 | |
| Style | 01/01/70 00:00 | |
| IF-ELSE problem | 01/01/70 00:00 | |
| Re: IF-ELSE problem | 01/01/70 00:00 | |
| still rather clunky! | 01/01/70 00:00 | |
| Re: still rather clunky! | 01/01/70 00:00 | |
| read all 10 ADC channels at once | 01/01/70 00:00 | |
| Re: read all 10 ADC channels at once | 01/01/70 00:00 | |
| Refresh | 01/01/70 00:00 | |
| Re: Refresh | 01/01/70 00:00 | |
| That slow? | 01/01/70 00:00 | |
Re: That slow? | 01/01/70 00:00 |



