Search Engine www.edaboard.com

Brownout

Add Question

97 Threads found on edaboard.com: Brownout
I think you are talking about brownout detector and watchdog timer.
Hi all, I have a question about brownout function. I know the function of brownout, but I wonder why that function is called 'brownout'. Thanks.
Hello, If i acivate "brownout protection" in the ATSAM3N00B microcontroller, then what does this do? Does it mean the micro resets itself whenever its Vcc goes below 3V? ATSAM3N00B datasheet
Hi, The codes are never industrial its the hardware components that are of industrial level; lots of parameters but most important of them is the temperature range usually (-40 to 125 degree Celsius). The other thing that makes a product industrial is extensive testing. For fail safe your code should be intelligent enough to handle exceptions and
I see 4 problems here: the XTAL has to be connected between pin 13 and 14 and not between pin 12 and 13. Where do you initialize TRISB for Porb Bit5 to be an output? After reset all ports are inputs!! You program the WDT fuse but do not clear the watchdog periodically. So your programm will be reset all 18 mS by the watchdog. You must a
Hi, I'm in trouble with adc function of 16F877A.I am using port A0,A1,A5,E0,E1,E2.When i measure voltage between ports and GND they are usually at 1 milivolt or 2 milivolts.But when i log them adc function returns 100-120 values equals to 2.0V - 2.5V.When i measure E2 it gives 50 milivolt when i dont apply voltage on it(when idle i mean)!! My devi
I use CCS-C compiler. plz help me. #include <12f675.h> #fuses INTRC_IO,PUT,NOWDT,NOPROTECT,NOMCLR, brownout #use delay(clock=4000000) //define IO pins #bit VS = 0x05.5 #bit VA = 0x05.4 #bit gpio3 = 0x05.3 #bit gpio2 = 0x05.2 #bit gpio1 = 0x05.1 #bit gpio0 = 0x05.0 #use fast_io(a) #byte ADCON0 = 0x1F #byte ANSEL = 0x9F #byte CMCON
You should enable brownout Detect and Powerup Timer to avoid these problems. Do you have an RC network connected to the Reset Pin or is it just tied to +5V? Also check the oscillator configuration (should be HS above 4 MHz) I always use 22pF capacitors on both Clkin and Clkout. best regards
juan_manuell, is your watchdog and brownout detect enabled? Do you have external inputs which are directly connected to the processor and are connected to you board via wires? I would suspect that you are catching some spikes via your inputs or supply. Check decoupling of inputs and supply. best regards
I use a simple RC circuit. VDD __ | | | R | | | o-------- MCLR | = C | GND and I always keep internal power up reset circuit on... and for PIC18F familiy, I keep the brownout reset circuit on also
Hi there, Would like to ask if you guys mind to give me some advice on how do I set up the brown out protection in the PIC 16F876. Thanks in advance... What would you like to know? You can not do more then disable or enable brownout via program fuses ... It is always a good idea to enable brownout detection i
Want to know how much electricity appliances in your house are using and how much they cost to run.Build this Energy Meter and find out. Uses Pic16F628 and ADE7756AN Active Energy Metering IC, with LCD readout. Refer:
It is a copy of well known magazine article. Software included. Description: Main Features Displays power in Watts Displays energy usage in kWh Displays measurement period in hours Displays energy cost in dollars and cents brownout detection and power switching LCD module shows several readings simultaneously Calibration for power,
Hi friends; I have 30 pic boards connected to a PC. Communication system is based on 4 wire RS 422 system. Biasing of comms line is performed using two 470 ohms to GND and + 5volt lines. Also , lines are terminated at each end. Line drivers are SN75176. Strange thing is , when I start communications , PIC is resetting , exactly at the same po
Using the 18F452 you should check RCON register on a reset you can see if the reset was caused by the watchdog. In this case your software should not initialize the ram registers you need for your system so the information is retained. You will have bad luck if the reset was caused by the brownout detector because chances are very high that y
You might be able to do somthing with a three pin brownout detector and a gate or some transistor switching to blank the pulse. Depends on the timing.
Hihi, i meet some problem on this simulator. The simulator cant simulates this code for CCS compiler delay_ms(); and this is my code : #include <16F877A.h> #fuses HS,NOWDT,NOPROTECT,brownout,NOLVP #use delay (clock=20000000) #BYTE PORTB = 6 #BYTE PORTC = 7 void main() { set_tris_c(0); set_tris_b(0); while(1){ portb =
One of the immediate solution is to use an external circuit, a wellknown brownout detect. It will monitor your +5v power supply and firmly reset your microcontroller each time when a power fail occurs. It's more suitable than the RC pair fitted on Reset pin. This way your micro won't hangup anymore, but will start fetching clean from 0000. If you
if your using a .h file the device type needs to be in the header and not in the .c files here is an example comvdd.h file ========= #include <16F877.H> << include header file #fuses HS, NOPROTECT, PUT, NOWDT, brownout, NOLVP, NOCPD #device *=16 //use 16 bit #device ADC=10 // use 10 bit adc convertions /// for a
The method has been mentioned in So post a working one here. Actually, they are similar, just a bit of change for this SIRC. Same hardware platform: PIC12F629 @ int. 4MHz RC OSC, GPIO2=IR, GPIO0=TX No any true interrupt be used, all of them by polling. SIRC.h#include <12F629.h> #FUSES
brownout voltage levels are configurable only for PIC18 datasheet of PIC16 I dont found many mentions about this... Gorkin
#if 1 #include <16f877.h> #fuses HS,NOPROTECT,NOWDT,brownout,PUT,NOLVP #ORG 0x1F00,0x1FFF {} /* Reserve memory for bootloader for the 8k 16F876/7 */ #device PIC16F877 *=16 /* Allow RAM to expand beyond 256 bytes */ #else #include <18f452.h> #fuses NOOSCSEN,HS,BORV20,NObrownout,PUT,WDT128,NOWDT,CCP2C1,NODEBUG,NOLVP,STVREN,NOPROTECT,NO
Hi, I have built a system to read temperature using the DS1621 and the PIC16F819. This PIC reads the temperature from the DS1621 through I2C and sends the data to the computer through RS-232. I am using the following code for tests (PIN_B1 and PIN_B4 are the ones used for the I2C communication): I'm using PCM 3.235 version. #include <16F819
check fuses and disable brownout reset
Dear All, Please help me for 2 problem as following: When the LPC922 MCU running, sometime this MCU can stop working. I have enable internal watchdog timer. brownout is disable. Reset Pin is disable. I think when the watchdog is enable, it's impossible the MCU can stop working. Watchdog timer with separate on-chip oscillator. I have checke
Pic16f877a i2c #Master# #include <16f877a.h> #fuses NOWDT,HS, NOPROTECT, brownout, NOPUT, NODEBUG, NOLVP #use delay(clock=20000000) #use i2c(MASTER, SDA=PIN_C4, SCL=PIN_C3, FORCE_HW) #byte PORTD = 0x08 void main() { set_tris_D(0xb11111111); OUTPUT_d(0xff); delay_ms(250); while(1) { i2c_start(); delay_
I am doing a project using the parallax 125 Khz RFID reader and I need some help with the code to compare the tag data to the data stored in memory. I am using the PIC18F458 with the CCS compiler. I am using strcmp to compare the two values, but it automatically goes to the else statement I have. Here is what I have for the RFID portion of the p
Hi! Have u disabled the brownout detect feature? If u haven't disabled it then it may cause problems if not properly configured. Regards.
Hello, I´m starting programming in C and I have a problem with my code.When I press a key in PC the program points to the begin and does not recognize the characters written.I´m using CCS C Compiler. #include <18F4620.H> // arquivo de definiç?es do microcontrolador usado #use delay(clock=10000000) // informa ao sistema o frequ?ncia de clock,
How to use a Watch Dog Timer? Am I using the WDT in a correct way?? I need a sample code for wdt in CCS C ?? Its not working only it performs task2 :| #include <16F877A.h> #fuses XT,WDT,PUT,brownout,NOPROTECT,NOLVP,NOCPD #use delay(clock=4000000, RESTART_WDT) timer0_ISR { restart_wdt() task1() } main() { setup_wdt(WDT_18MS)
Production testing of power supplies generally involve: Setpoint accuracy Load and line regulation Output noise and ripple HI-POT Possibly ground continuity There may be other tests, depending on the actual design, such as overload/ overvoltage limiting, brownout detection, etc.
Vtrip is used to monitor the voltage level it is similar to brownout detector in micro controller when ever the voltage level of the device falls below the max Vtrip it will reset the system to save any fault and to save the device
Hi, I'm having troubles trying to simulate a simple analog comparator on PIC18F4550(or 18F4553) with proteus(already tried versions 7.2 sp6 and 7.5 sp3) using PIC16F877 the same code works on proteus without a problem. the relevant code is: --start #include <18F4553.h> #FUSES NOWDT //No Watch Dog Timer #FUSES NOMCL
im using 12f675 ..with internal clock.. i am just tring to blink the led .. but im not getting the result..plzz help me if u have a DEMO code in c.i amusing hi tech c compiler,, source code is in c... this is the code i have used ..but not giving the result.... #include #define _XTAL_FREQ 4000000 // oscillator frequ ency f
Hey, I am trying to determine the time difference between two pins going HIGH. More specifically, Im using a PIC 16F690, and the two pins in question are PINC1 and PINC5. Basically, PINC1 goes high, and a very short time later, PINC5 goes high. The time difference should be less than 0.5 seconds, maybe milliseconds . Below is a code I have wr
Hi all, I am generating a PWM using PIC16F877. I had been trying out example code in CCS compiler for setting up PWM. When doing simulation using Proteus Isis, I cant see any PWM pulse from pin C2. Please help. Is it the frequency problem? Or the header file got problem? I still cant get any pulse even though had tried many value of duty cycle.
thats is some problem when i compile this source code,can anyone of u help me check what is the problem and help me edit it? #include <16F877A.h> #FUSES NOWDT //No Watch Dog Timer #FUSES XT //High speed Osc (> 4mhz) #FUSES brownout //Reset when brownout detected #FUSES NOPUT
hi.. i m writing a program in ccs coding using pic16f877a...i m using 3 variables x,y and z.. program runs successfully for x and y..but as soon as i include z in the program..OUT OF RAM appears in says to use the #separate statement..and i don't know how to use it..plz help here is my program
This Program is written for the PIC12F629 in CCS v4.012 and the I/O Pin used in this program is GPIO0=TX, GPIO1=RX, GPIO2=IR. If i want to run it on 18F252. What changes that i have to make to run on it. I/O pins and any other thing. Want to change Tx to Pin # 17 and Rx to Pin # 18 of PIC18F232 and want to put IR on Pin # 15. Please help me out
Changing the configuration bits with adding the code following line worked!!! The LED is blinking... #fuses HS,NOWDT,NOLVP,NODEBUG,PUT,brownout Thanks for your help!!!
Hello all! I am attempting to program a 16f877a for infrared. I am using a Vishay tsop1138 for recieving. and I am programing it with CCS. the code below is not my own, but can be found at: I have replaced main() with: void main () { while(1){ output_high(pin_b1); } } and h
#include <16F877A.H> #device ADC=10 #fuses HS, NOWDT, NOPROTECT, brownout, PUT, NOLVP #use delay(clock = 20000000) #include "E:\note ngaji\FYP\stuff last sem\code\led experiment\brum\Flexlcd2.c" //========================== void main(void) { int16 temp_adc; int temp; setup_adc(ADC_CLOCK_DIV_8); s
Hello all, I am trying to control the speed of an AC motor (i know it is problematic). Here is the simple code i have thus far: #include <18F2331.H> #include #fuses XT, NOWDT, NOPROTECT, brownout, NOPUT, NOLVP, NOMCLR #ocs 500 kHz int16 fanL, fanspeed; int8 portB; #INT_RB void AC_isr(){ disable_interrupts(int_R
i am connecting a main AC line to a 2 megoohm resistor for a zero-crossing circuit. This is connected to T0CKI. I am wondering the best way to go about using this input for a fan speed controller. I also have this main line connected to port B for a general interrupt-on-change. does anyone have a recommended way I should proceed on this?
Better go for usb based programmer, usbasp is one of the option. Fusebits are used to set the options like oscillator, brownout, bootloader, lockbits, etc. Be careful with fusebits or else you will need a parallel programmer to reset it
Hello guys I'm testing a simple CCS program on ISIS. I'm using a pic16F877 (20MHZ) it compiles fine but no PWM is shown in ISIS. i know the problem is on ISIS because i had a similar prog running fine on hardware. has anybody managed to show PWM on isis from a 16f877 ? thanks a lot. //#include "speed control.h" #include <16F877.h>
Basically its a "power on reset circuit" IC. I am using PIC18f252 controller, and there is an "brownout" option for power on reset should i need to connect that external IC or the pic will do that job by using "brownout" option.
Greetings! I joined this site weeks ago, but never got a notification/activation e-mail. After trying several times to contact the site management and get an account, today, finally, success!!!! I work in FPGA design for government systems. I have 10 years experience in ASIC design and development, but I still have TONS of questions. Movin
NGC and EDIF are just netlist files generated from synthisis tools. Altera generates netlist files (.vo and .vho ) useing Netlist Writer. What exactly are you wanting to do? I mean that Packaging my HDL code into some kind of file format(IP) that can be recognized by FPGA tools, so that another person can reuse the
brownout what do you mean by "Just beware they react a little differently than hardware state machines." How exactly?