Truncated match.
PICList
Thread
'A/D IN SLEEP MODE'
1995\08\21@171202
by
Norman Fick
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
Norman Fick
1995\08\23@085415
by
rdemay
>Actually the key is to use the RC osc with the A/D in sleep mode!
OOPS!
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.
Rod DeMay
B&B Electronics (http://www.bb-elec.com)
email: spam_OUTrdemayTakeThisOuT
bb-elec.com
ph (815)433-5100 x220
fax(815)434-7094
More... (looser matching)
- Last day of these posts
- In 1995
, 1996 only
- Today
- New search...