Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me with configurations for the code ( PWRT on or off)?

Status
Not open for further replies.

firemaker

Newbie level 5
Joined
Jan 7, 2005
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
105
pic configurations .

HI ALL ,
these lines were taken from awritten code which i want to burn into pi16f84a, but really i need to know the configurations for the code ( PWRT on or off ?)

; DEVICE PIC16F84A,HS_OSC,WDT_ON,PROTECT_OFF
processor 16F84A ; Use these
#include "p16f84a.inc" ; for 16F84A

; DEVICE PIC16C54,HS_OSC,WDT_ON,PROTECT_OFF
; processor 16C54 ; Use these
; #include "p16c5x.inc" ; for 16C54

__config H'3FF6'
; __config (_CP_OFF & _WDT_ON & _HS_OSC)
__idlocs H'0251' ;version 2.51
radix dec

thanX,
 

Re: pic configurations .

Hi,

in all my PIC projects I set PWRT on this gives a slight delay after reset (around 72 mS) but it makes sure that the oscillator has stabilized before enabling the processor.

best regards
 

Re: pic configurations .

It's a good idea to have PWRT on.
The WDT should be on only if you clear it periodically in the code.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top