'A/D IN SLEEP MODE'
I am trying to do an A/D conversion with the PIC16C74 in SLEEP mode. I find
that the MPSIM indicates that the step directly after the "SLEEP" cammand
will be processed infinitely ie the PC is not being incremented, and the
rest of my programme will never be executed. I'm not sure wether the MPSIM
has a bug or my software is at fault. I have set the GIE and PEIE bits in
the INTCON reg as well as the ADIE bit in the PIE1 reg. The ADIF bit is also
clear. If anyone can think of something that I might be doing wrong or can
perhaps send me some sample code I'd really appreciate it. It is quite
urgent as it is for my undergrad thesis.
Thanks a stack for helping a student in need!!
Chow for now
>Actually the key is to use the RC osc with the A/D in sleep mode!
I was aware of using the RC osc to clk the A/D. But the A/D is
not listed as a peripheral that can wake up the processor from sleep
mode on my spec. sheet (section 14.8). I regurgiated this fact in a previous
message. However, in the A/D section it does state a A/D interrupt
can wake up the processor from sleep mode.
B&B Electronics (http://www.bb-elec.com)
ph (815)433-5100 x220
More... (looser matching)
- Last day of these posts
- In 1995
, 1996 only
- New search...