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.
HI,
I m trying to implementing WDT in my project.. How to calculate watchdog timer time and what will be the maximum allowable time for WDT before resetting microcontroller??
I have seen an example program in MIKRO C help.. it simply enabled WDT and used the statement "asm CLRWDT" .. i dont...
Hi..
I have doubt..
actually i am trying to write a simple LED blinking program in EASY PIC 5..
my IC-pic16f877a, mikro c compiler...
i am using external 8Mhz oscillator.. so do i need to specify that i am using external oscillator in my program?? if so how should i define it???
because the...
Hi guys ,
Thanks to all..
fianlly it got compiled.. I have just copied and pasted the function func() above to void main()...
simple.
#include<built_in.h>
func()
{
Delay_ms(1000); //wait for 1 sec
}
void main()
{
TRISB=0;
PORTB=0;
while(1)
{
PORTB=~PORTB;
func();
}}
Regards Vinodh
Re: its not compiling (mikro c).......
hi jayanth.devarayanadurga,
is this function definition?? func() has to wait for a second.. that is what func() assigned to do..
i have googled about this also.. i think i have to cut and paste this func() above main().. correct me if i wrong..
func()
{...
Re: its not compiling (mikro c).......
hi guys,
THanks for those replies. i accept that i did some mistake.. but why don't you guys correct me showing a program as example..
please do edit my program and show me where i should have defined the function..
regards,
Re: its not compiling (mikro c).......
hi,
sorry i couldnt get you..
can u write a simple program using function like i did... or else please edit my program and post ..
thanks
Re: its not compiling (mikro c).......
hi,
now i m nt using the function anme delay, i m using func()..
still not working ...:-(
#include<built_in.h>
void func();
void main()
{
TRISB=0;
PORTB=0;
while(1)
{
PORTB=~PORTB;
func();
}}
func()
{
Delay_ms(1000); //wait for 1 sec
}
hi,
I think the acquisition time is high..
try to reduce the resistance value you are using between sensor and port.. probably below 2kohms.
correct me if i m rong..
thanks
hi,
I know i can use delay_ms inside main() but guys help me to call the function delay().
#include<built_in.h>
void delay();
void main()
{
TRISB=0;
PORTB=0;
while(1)
{
PORTB=~PORTB;
delay();
}}
delay()
{
Delay_ms(1000); //wait for 1 sec
}
ERROR i m getting is,
1) result is not defined...
Re: I m stuck with this error for 2days..help
hi
;is there
sorry i didnt type it ..
still not working..
can u anyone give me a simple program or syntax for using LCD in mikro c??
Actually if we use inbuilt functions lik Lcd_Init(), we have to mention Lcd module connections..isnt??
so if i...
hi guys
thanks for the reply..
i have found the answer..
this is PIC16F877A
and i m trying to watch timer 0 interrupt flag bit.. its is not T0IF, it is TMR0IF..
i typed INTCON.F2 instead of TMR0IF..
its compiling now..
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.