Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/10/08 14:02
Read: times


 
#152088 - I missed the ISR routine....
Responding to: ???'s previous message
Does this modified make sense? I tried it in hardware and it still doesn't not work, at all.....errrrr. I was forgetting to check the interupt for conversion completion, but its still locked up. Is this a move in the right direction or am I still out in left field? No errors or warnings during compile. Any source code needed to be seen not shown???



adc_init(); // Intialize ADC handler
    adc_start_ADC0_conversion(ADC_IMMEDIATE, ADC_AUTOSCANCONT, ADC0_CHANNEL0); //Read CH 0
    adc_stop_ADC0_conversion(); // Stop conversion of A/D  ONE SHOT READ PER CYCLE LOOP
    adc_isr(); //check to see if data conversion is complete
    adc_convert_data('0');      // Read result from conversion register


List of 16 messages in thread
TopicAuthorDate
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      

Back to Subject List