To hopefully assist you in identifying why my code doesn't put the MCU into sleep after the execution of the 1st interrupt service, I am including here the pinouts in my current configuration. These are the same pinouts I had for the powere consumption summary of 4 cases I previously posted.
Code:
'------------------------- 16F690 Port Assignments ----------------------------
' I/O pin connections to the PIC16F690 MCU are as follows:
' PORTA.0 (19) RA0 connected as ICSPDAT when used for ICSP & also to a low
' battery monitor R/C circuit for normal ops.
' PORTA.1 (18) RA1 connected as ICSPCLK when used for ICSP.
' PORTA.2 (17) RA2 connected to external Flush contact limit switch which
' connects to ground when activated and serves as On-change Interup
' During testing connects to a grounded momentary-on switch on the
' PICkit2 board to simulate external limit switch On-change Interup
' PORTA.3 (04) RA3 connected during testing to an external flow meter to detect
' flow meter pulse inputs.
' During testing it connects to a grounded momentary-on switch
' on the PICkit2 board as a clock input to TMR0 for counting of
' pulses and as an overflow interrupt.
' PORTA.4 (03) RA4 connected to pin 6 of the ICSP header for use in programming.
' PORTA.5 (02) RA5 not connected.
' PORTB.0 ( ) RB0 not connected.
' PORTB.1 ( ) RB1 not connected.
' PORTB.2 ( ) RB2 not connected.
' PORTB.3 ( ) RB3 not connected.
' PORTB.4 (13) RB4 connected via a 10 ohm resistor to power the Wireless option.
' PORTB.5 (12) RB5 connected to Hall Effect sensor circuit #2.
' PORTB.6 (08) RB6 connected to Hall Effect sensor circuit #1.
' PORTB.7 (09) RB7 connected to pin R/T SEL on the TRM-XXX-LT transceiver.
' PORTC.0 (11) RC0 connected as an output to an LED & is on when the valve
' is opened.
' PORTC.1 (12) RC1 connected as an output to an LED & is on when battery is low.
' PORTC.2 (13) RC2 connected as an output to relay RL1 that actuates the
' + latching line of a solenoid to open the valve.
' During program testing on the PICkit2 demo board it is connected
' to an LED to show when the pulse is sent.
' PORTC.3 (14) RC3 connected as an output to relay RL2 that actuates the
' - latching line of a solenoid to close the valve.
' During program testing on the PICkit2 demo baord it is connected
' to an LED to show when the pulse is sent.
' PORTC.4 (15) RC4 not connected.
' PORTC.5 (16) RC5 connected to pin PDN on the TRM-XXX-LT transceiver.
' PORTC.6 (17) RC6 connected to pin RSSI on the TRM-XXX-LT transceiver.
' PORTC.7 (18) RB7 connected to pin R/T SEL on the TRM-XXX-LT transceiver.
' -----[ Device Declaration ]----------------------------------------------
' For MSASM assembler use following:
@ __config _INTRC_OSC_NOCLKOUT & _BOR_SBODEN & _WDT_OFF & _MCLRE_OFF & _CP_OFF
Bookmarks