EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / PIC interrupts

PIC interrupts

|

Microcontroller › PIC › PIC interrupts

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 2 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 10, 2015 at 11:22 pm #3396
    Kyle
    Participant

    How do you stop an interrupt from happening in the middle of an SPI read?

     

    I have an ADC which uses the SPI bus. But it shouldn’t be stopped once it begins reading the value, since this is the method it uses to clear the internal shift register to begin a new conversion.

     

    The problem is I need to stop the timer exaclty when the inerrupt happens, whenever it happens. Is there some way to get around this? Or can I resume reading the ADC from where it left off? Say only 12 of the 16 bits were read in and the interrupt is called, will this corrupt the data being read?

     

     

    January 12, 2015 at 5:24 am #12518
    AJISH ALFRED
    Participant

    Before start SPI communication, disable the global interrupts and  after done with the SPI communication enable the global interrupts.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • My Advanced Realistic Humanoid Robots Project March 12, 2026
  • Very Curious Issue With DS3231 RTC Clock March 12, 2026
  • Motor Getting Hot March 11, 2026
  • LM741 alternatives? March 11, 2026
  • H bridge current direction logic March 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise