Search Engine

And Wdt And Pic

Add Question

Are you looking for?:
pic wdt , wdt pic , wdt pic , wdt pic
25 Threads found on And Wdt And Pic
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 (...)
Zip and post the complete XC8 project files.
Nothing to do with the problem but I ask why you are putting the watchdog reset in a function. With only one instruction it makes more sense to embed the _asm line directly into the program. As it is, you add unnecessary extra code to perform the call, return and possibly memory manipulation to reach the function. If it is for clarity when reading
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 (...)
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
Hi, You have Set the Watchdog On in the Config line so no need to repeat it again in your main code. The SwdtEN bit is only used in your code when the Watchdog has been placed OFF by the Config line. With the 4520 the Watchdog Prescaler is also set by the Config parameters. Below are the Config parameters and options. You have (...)
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 (...)
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 (...)
There's an explanation about fuse programming in the mikroC manual's bootloader chapter. Review it and you should understand what happens.
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 (...)
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 (...)
Dear all could you please send me about code Hi-tech example that can send and receive SMS with GSM module. Thanks in advance:smile:
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 (...)
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 (...)
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 (...)
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 (...)
Hi, Try this and see what happens: #include #pragma config OSC = HS #pragma config wdt = OFF //Watchdog Timer off #pragma config LVP = OFF //LVP off void main(void); void lcdcmd(unsigned char value); void lcddata(unsigned char value); void MSDelay(unsigned int time); #define rs PORTEbits.RE0 #define en PORTEbits.
Hi I used AT98c51 and Atmel AVR and pic I recommend pic for every one. It is much more easier. Thanks
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 (...)
Everything on wdt and BOR (and other RESET issues) is clarified in this publication: Regards, IanP
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.
Right, and if want more information o pic microcontrollers u should go to where u have plenty of datasheets and application notes.
It is always a good idea to post ccs related questions also in their forum but do not forget to mention your compiler version and cpu type: best regards
hi traxonja, Currently I use 12F675 chip + 315MHz AM transmitter module as my design. I use wdt to wake up the pic to detect the input and then goes into sleep again after detection.. I think the problem of battery draining too fast maybe due to the power hungry AM transmitter module.Thanks. if you have an extra pin you