On Thu, 10 Apr 2008, Carl Denk wrote: > Using MPLAB 8.02 with C18 3.2 > > I have a 18f1320 that I would like to set the brown out reset to 4.5 > volts since there are several sensors (Freescale MPX5700GP-ND and LM335) > attached that want 4.75 volt minimum and would prefer that CPU doesn't > reset below that 4.5 volts. > > From the data sheet I find: > CONFIG2L register > Bits 3 -2 = BORV1: 00 for 4.5 volt > Bit 1 = BOR: 1 Brown out reset enabled > Bit 0 = PWRTEN (not) = 0 power up timer enabled > > And from 18F1320.h file: You want to be looking at the "PIC18 CONFIGURATION SETTINGS ADDENDUM" that came with the compiler, not the header file. This will show you the correct directive is #pragma BORV = 45 > 1: In MPLAB how can I verify the configuration, view CPU registers is > greyed out? Configure...Configuration bits -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist