??? 03/10/08 19:26 Read: times |
#152100 - Opinion Responding to: ???'s previous message |
It sounds like you aren't really needing to use interrupts. It seems like you could use the continuous auto scan mode for what you want to do. This way you just setup the ADC once at the start of your code and read the ADC data registers when you want the latest conversion result. No polling needed as the results should only be a few us old. For this setup the steps are simple:
1) Initialize the ADC once with continuous auto scan enabled 2) Read data from AD0DATX, X is channel you want the values from |
Topic | Author | Date |
Problems with Code Architect and interrupts | 01/01/70 00:00 | |
where is the ISR? | 01/01/70 00:00 | |
Erik... | 01/01/70 00:00 | |
you enable an interrupt for which there is no ISR | 01/01/70 00:00 | |
I missed the ISR routine.... | 01/01/70 00:00 | |
Whoops, here is the .c file with the ADC ISR..... | 01/01/70 00:00 | |
Also forgot mention...simulation works fine | 01/01/70 00:00 | |
I found part of my problem | 01/01/70 00:00 | |
Interrupts | 01/01/70 00:00 | |
Modified.....seems right, I2C bus going nuts | 01/01/70 00:00 | |
Polling or Interrupts | 01/01/70 00:00 | |
Exactly...... | 01/01/70 00:00 | |
Opinion | 01/01/70 00:00 | |
Gentlemen....thats what I thought I had!! | 01/01/70 00:00 | |
Port config![]() | 01/01/70 00:00 | |
poll .... | 01/01/70 00:00 |