When I assign GRNLED_SEL=1, it affects the state of MMCPOWER.
chen
Joined: 03 Mar 2004 Posts: 11
Posted: Wed Oct 27, 2004 2:41 pm
BTW, I am using PIC18F8620 with CCSC 3.212
and I initialize MMCPOWERE =0
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
We need more information!
Posted: Wed Oct 27, 2004 3:00 pm
It would be nice to see ALL of your initialization/setup source code which includes showing the include file(s) you are using.
Also post the portion of the LISTing file around the instructions you posted so we can see what the compiler is doing.
Trampas
Joined: 04 Sep 2004 Posts: 89 Location: NC
Posted: Wed Oct 27, 2004 3:54 pm
Also read about the fast I/O if the fast I/O is not selected then setting a port's bit might change the Tris register.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Oct 27, 2004 4:07 pm
You're probably having a RMW problem. Try doing all operations
on the latch, instead of the port. That should eliminate the problem.
Change the definition of the Green LED bit to use the Latch. Example:
#bit GRNLED_SEL = LATF.2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum