Amit, You can use __bi s _SR_register(CPUOFF) to turn the CPU (bis = Bit Set) and __bi c _SR_register(CPUOFF) to turn the CPU back on (bic = Bit Clear). You can have a look at this small project I did with ADC. The project interfaces LM35 with ADC. There's also timer involved. Feel free to send a DM if you need any assistance. Teja
↧