logo elektroda
logo elektroda
X
logo elektroda

Interfacing MAX197 ADC with PIC18F452: No Interrupt Generated After Conversion

51 7
ADVERTISEMENT
  • #1 21664624
    Abolfazl K873
    Anonymous  
  • ADVERTISEMENT
  • #2 21664625
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #3 21664626
    Abolfazl K873
    Anonymous  
  • #4 21664627
    Todd Hayden
    Anonymous  
  • ADVERTISEMENT
  • #5 21664628
    Kanhu Padhy
    Anonymous  
  • #6 21664629
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #7 21664630
    Abolfazl K873
    Anonymous  
  • #8 21664631
    Mark Harrington
    Anonymous  

Topic summary

The discussion addresses interfacing the MAX197 12-bit analog-to-digital converter (ADC) from Maxim with the PIC18F452 microcontroller, focusing on the issue of no interrupt being generated after ADC conversion. The user reports following the datasheet and connecting the devices via 13 pins but fails to detect interrupts. Suggestions include verifying the A/D clock pin configuration to ensure proper internal clock operation, checking the timing of the microcontroller's polling loop relative to ADC acquisition and conversion times, and confirming correct control signal sequencing: triggering conversion by toggling the WR pin low-to-high, monitoring the PIC18F452's interrupt pin (pin 33) for a low state indicating conversion completion, and managing the Read pin (pin 16) to load data onto the bus. Emphasis is placed on creating a flowchart or algorithm before coding to facilitate debugging and understanding of the process. The user shares updated schematics and flowcharts, running the microcontroller at 10 MHz but still not sensing interrupts. Additional remarks question the necessity of using an external 12-bit ADC when the PIC18F452 includes a built-in 10-bit ADC with multiple channels. Concerns are also raised about sharing files via external links due to security risks. Overall, the discussion highlights the importance of correct hardware signal timing, proper interrupt handling, and thorough software planning when interfacing external ADCs with microcontrollers.
Summary generated by the language model.
ADVERTISEMENT