Quote Originally Posted by Darrel Taylor View Post
T
<br>[*]Remove the inputs from any of the pins that you can.
Compile and load this program ...
Code:
ASM  ; 16F690
  ifdef PM_USED                  ; For PM assembler
    device  INTRC_OSC_NOCLKOUT   ;   Oscillator Selection
    device  FCMEN_OFF            ;   Fail-Safe Clock Monitor
    device  IESO_OFF             ;   Internal External Switchover
    device  BOD_OFF              ;   Brown-out Detect
    device  CPD_OFF              ;   Data Code Protection
    device  PROTECT_OFF          ;   Code Protection
    device  MCLR_OFF             ;   Master Clear Reset
    device  PWRT_OFF             ;   Power-up Timer
    device  WDT_OFF              ;   Watchdog Timer

  else                            ; For MPASM assembler
cfg=      _INTRC_OSC_NOCLKOUT     ;   Oscillator Selection
cfg=cfg&  _FCMEN_OFF              ;   Fail-Safe Clock Monitor
cfg=cfg&  _IESO_OFF               ;   Internal External Switchover
cfg=cfg&  _BOR_OFF                ;   Brown-out Reset
cfg=cfg&  _CPD_OFF                ;   Data Code Protection
cfg=cfg&  _CP_OFF                 ;   Code Protection
cfg=cfg&  _MCLRE_OFF              ;   Master Clear Reset
cfg=cfg&  _PWRTE_OFF              ;   Power-up Timer
cfg=cfg&  _WDT_OFF                ;   Watchdog Timer
  __CONFIG  cfg

  endif
ENDASM

END   ; Enter Comma (sleep forever with no hope of waking)
[/list]
I copied this code into my MicroCode Studio editor, assembled it with PICBasic Pro compiler, programmed it into my 16F690 that is installed in a PICkit2 Low Pin Development Board, and then tried to run the program. I get the following Assembler errors:
"Overwriting previous address contents (2007)
Symbol not previously defined (_FCMEN_OFF)
Symbol not previously defined (_IESO_OFF)
Symbol not previously defined (_BOR_OFF)
SYmbol not previously defined (_CPD_OFF)"

I presumed this was because I had the _config file commented out in the 16F690.INC file, so decommented it and tried again. Same errors ocurred. Any suggestions.
Question: If I get this program to run, what will that tell me? Are you saying that with the 16F690 programmed this way I can then measure the power consumed when running and it will tell me the lowest possible power for the 16F690 before adding any other code??