Search Engine

Pic Wdt

Add Question

41 Threads found on Pic Wdt
I think you may be confusing the wdt with a normal timer or timing routine. The wdt is a hardware timer with it's own clock that (if enabled) forces the pic to reset rather like you had powered it off and on again. It can't be used as a method of creating a delay because there is no way of resuming when time is up, it always goes back to (...)
hi milan, This may be helpful, I use for USB n the 18F2550 pic E LIST p = 18F2550, r = dec, w = -311, f = inhx32 INCLUDE "P18F2550.INC" ; MPASM Header errorlevel -302, -207 CONFIG PLLDIV=5,CPUDIV=OSC1_PLL2,USBDIV=2,FOSC=HSPLL_HS,IESO=OFF CONFIG VREGEN=ON,CCP2MX=ON,wdt=OFF,wdtPS=32768,PBADEN=OFF ,PWRT=OFF,MCLRE=ON CONFIG LPT1OSC=OFF,BOR=O
Hi.. I am trying to interface DS1307 with pic. I am trying to do that in Proteus first and then planning to implement in hardware. In my proteus model, RTC is working fine for 130 seconds exactly. After that, RTC is resetting to the time I set. Can anyone here pls throw some light on this weird problem.? I will be grateful if you can help in
There is no OPTION_REG in pic18F45K22. you can use your respective controller register that was just example.sorry my mistake i didn't mention in my last post. Watchdog Timer Enable bits: ; wdtEN = OFF Watch dog timer is always disabled. SwdtEN has no effect. ; wdtEN = NOSLP (...)
The outputs on PORTB should always be high while it is in the loop. The code is correct. I suspect the problem is the watchdog timer is running and resetting the pic every 20mS (~50Hz) or so. Each time it resets the pic it will flash the segments. Try either turning the wdt off or including a wdt reset inside the while(1) (...)
Everything seems right in your code. Some time ago i also made the same project using same method, but i wrote different code. I used pic18F248 Here is the code i used. Reciever #include # pragma config OSC = HS, OSCS = OFF # pragma config wdt = OFF # pragma config BORV = 45, PWRT = ON, BOR = ON # pragma config DEB
hello i am trying to configure wdt in pic for 16msec but after so efforts i am unable to get reset. #include"p18f4520e.h" #pragma config OSC = INTIO67 // INTERNAL OSCILLATOR IS ON #pragma config DEBUG = OFF // DEBUGGER IS OFF #pragma config wdt = ON // WATCH DOG TIMER IS OFF #pragma config LVP = OFF
I Understood two "Org" address which are "org 0x00 and "org 0x04". I try to write a program using MPASM and during simulation Th program counter will branch back to address '0x00' when it reach Address 0xFF instead of going to next code after the address 0xFF. I solve the problem by inserting Org 101 at the location where the PC do branch to uninte
In ISIS open the pic properties. In the "Advanced Properties" field choose 'Enable Watchdog timer?' and set it to 'NO' instead of 'Default'. This will totally disable the wdt regardless of the Configuration Bits in your code. You should check the code though because the 'Default' value actually reads the configuration bit of the wdt in your (...)
are you cutting down clock to minimum value while in sleep mode? because higher clock rates consumes more power.. as stated in all pic datasheets... make sure that you configure pic to operate in lower frequency while in sleep mode... you have to recalculate the wdt rate to compensate that clock time too..
i am facing problems in interfacing gsm sim 900 with pic18f4550. the code seems to have nothing wrong with it, could any one help me with it. #include #include # pragma config wdt=OFF # pragma config LVP=OFF # pragma config FOSC=HS # pragma config IESO=OFF # pragma config MCLRE=ON # pragma config PBADEN=OFF
Hello, I'm using the microcontroller pic16F877, and I need use two UART, this pic only has got one UART, so I need design a UART software. Well, I designed the UART, and before work fine, without wdt, without sleep, only receive date and send date directly. Now I need save the dates received in a char for send aft
Hi forum your opinion needed Today i programed a pic 16f877a micro controller with a program to test watch dog timer of the micro.I used mikroc serial boot loader to program micro first and the result was :micro controller program did notwork.Then i programed same micro controller with same program but this time using pikit2,and then the progra
Guys, I tried to write this code, but can't see LED blinking on pic IDE simulator Do you know why ? Thanks #include #include #pragma config FOSC = INTOSCIO_EC //Internal oscillator, port function on RA6, EC used by USB #pragma config wdt = OFF //Disable watchdog timer #define LEDPin LATDbits.LATD1 /
Are you sure your pic burner is taking fuse bits from the hex file? Did you noticed the fuse bits loaded in the programmer? Any way, just try by grounding the RB3 pin using a 10K resistor and use my code above (modified now). Also don't forget to pull up the MCLR pin also... Still if it is printing continuous U, then it may be the wdt resettin
Hello I build led matrix display based on 16F876 and have problem with resetting pic in most of the time when neon light is turn off in the room and pic is connected to PC. When PC and pic are disconnected everything is ok. Also every time PC is turn off, pic is reset or gets stuck. Here is schematic. Fuses are: (...)
Dear all this is code in Hi-tech c compliler #include <pic.h> #include __CONFIG(0x3F32); #define _XTAL_FREQ 20000000 #define BAUD 9600 void pic_init(void); void uart_init(void); void uart_transmit(char data); void uart_string(const char *s); char gsm,rec={"+CMTI"}; unsigned int counter,z; static void
Dear All, I need some help on saving current consumption while the pic MCU in SLEEP mode. I used three interrupts that is INT0, RBIF and Comparator Interrupts. I have used 6v, 4.2Ah sealed lead acid battery. I have used wdt to wake up the device every 24 Hrs. Until then I put the device in SLEEP mode. After 24 Hrs expires I have to enable compar
Hi, This is my program to interface LCD with pic DEM 2 plus (18f4520 pic microcontroller).when i m trying tgo display single charcter then its working fine but wen i want to display string some jumbled dchars r being displayed.plz help me. #include #pragma config wdt=OFF #define LCD_RS LATDbits.LATD4 // Register (...)
hi can anyone send me some example code for ADC in mikroc for pic 18f4520. thanks
Is it worth trying with the internal osc intead of xtal. Will at least proves ext osc is ok if you still get the same problems. Ok for up to 8 megs This setup works for me but you will need to change pins/osc settings etc to suit your needs #use delay(clock=4000000,RESTART_wdt) // RESTART wdt DURING DELAYS//////////// #use rs232(baud=300,parity=N
BODEN: Brown-out Detect Enable bit(4) 1 = BOD enabled 0 = BOD disabled This Bit is switching on a special circuit that will put your microcontroller pic12F675 in reset state when the voltage is below a level. This is very usefull for battery power applications !. wdtE: Watchdog Timer Enable bit 1 = wdt enabled 0 = wdt (...)
There is a different way. Use the wdt and set it to let say 1ms. Now put the pic to sleep with sleep instruction and 1ms later +/- 5% you will be woken-up. wdtcon set to 1ms. sleep that is all, 2 cycles and you can make timings between 1ms and a few minutes on some pic's. Check the wdt module for this !. (...)
I use watchdog = 1 to activate the watch dog in proton basic and i use watchdog = 0 to dactivate it Now if I use Timer0 prescaler for it how may i assign it to watch dog time? May I use Option_reg? or else 2 If i use timer) prescaler for watch dog time if wdt will reset the device if the crystal oscilator of the pic stop running?
Hi I am using pic 16f628a and am usin Proton Basic language to program it with ICPROGRA compiler. What I want to learn is that I want to activate and clear the Watch dog timer in my program Pls guide me that how may I Activate and clear wdt Regards
Dear all, In my pic 16F675 Project some time mcro stops working during electrial spikes, I used wdt to reset but sometime its wdt also not workes and circuit Needs to be restart, My project is Based on Live Pover supply made by 220 V AC to 12 volt dc by reducing down it by series capacitor shunted by a 12V/1W zener and then regul
Hi smm4k, Try this: LIST P=16F72 #INCLUDE __CONFIG _BOREN_OFF & _BODEN_OFF & _CP_OFF & _PWRTEN_OFF & _wdtEN_OFF & _wdt_OFF & _XT_OSC ;Using pic16F72 to run TMR0 from external source (RA4/T0CKI) and display on PORTB ;Every Time the input source goes from low to high, PORTB is incremented ;Compiler: MPASM (MPLAB IDE v8.
Hello Im using a pic18F4220 @ 20Mhz ceramic with C18 compiler. Im trying to do a simple test program where the pic sends out the letter 'a' to an LCD connected to PORTD (8bit nibbling! However I can not get a consistent result each time the pic is powered up. The behaviour is that sometimes the letter 'a' is displayed perfect
I have been unable to get an interrupt timer routine work on my pic 18F2550. I basically copied the code from the C18 user's guide and it is still not working properly. Any help would be appreciated. PORTA is outputting to a 7 seg display. #include #include #include void timer_isr (void); unsigned
Hello all, I had a strange issue while debugging in MPLAB. I am using pic 16F73 with HiTECH C compiler. The program counter unexpectedly resets to zero, at some point.The wdt is not enabled atall. Could you please tell me what can be the possible reason? Please the part of code where it happened, switch(DigitCount) { case 0: Ti
Start movlw b'11111111' movwf PORTB goto Start end 1. You have mentioned that you are not getting an output. If the pic is executing the code, the o/p will always be high as per your code. 2. If you have enabled wdt in the configuration fuses, the watchdog will reset the pic since you are not clearing the wdt. (...)
In the pic u will find adc,wdt,eeprom,pwm etc with a bundle. which not able at atmel. many years ago i am starting atmel , but now i comfotable with pic. like open the door.
Hai What about watchdog it enabled by default.Or disabled.Or is there any configuration bits like pic The wdt Initial state of AT90S4414/8515 is disabled at power-up and similar with Safety level 0 of ATMega8515 (FUSE bit S8515C programmed "0" and wdtON unprogrammed "1"). If you're using PonyProg typing CTR
Hai Which is the best method to reset a pic from its own software? Will a goto 00 clear the call stack? picstudent
Hi Guys, I am using this pic 16F877 and I seem to be confused with the difference between the Watchdog Timer and the BROWN-OUT RESET. Could anyone please help me out with what each of these are and what they do. Regards, Rickylo
Happy 2006 to all, I'm learning VSM simulation for pic and I'm stopped in how to simulate timer interrupts. Can anyone give me a shortcut to where learn faster, in the manuals or other doc. ? Thanks.
In any microcontroller, the watchdog is a timer that is supposed to reset the micro if it times out. The watchdog's function is thus to detect if the micro has gone "berserk" and reset it. It's similar to your computer doing something funny and your resetting it when you see there is nothing else you can do to bring it back under control. In a
Watch dog timer is resource found in the microcontroller that reset the device after a determined time if don't reset it. It's a very useful tool for avoiding system failures. Get a datasheet of any microcontroller it should help u. Added after 11 minutes: i attached a pic datasheet /De
I use internal osc. and if i set wdt to reset whole program, he is making reset, but with to long delay... Example: He should make reset if some condition is true. Condition is true(lighted diode)and then you have to wait cca 30 seconds until the true reset happens. Why is this so?
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
Is the sch for pic?