Search Engine www.edaboard.com

Delay Hitech

Add Question

16 Threads found on edaboard.com: Delay Hitech
hi pic hi tech c program take from here . program was working but one letter after next letter moving is not continuously not moving some delay gap is come.then next letter come .i need continuously up to down vertically moving or vice versa .any one having vertical c progr
The files delay.h and delay.c is for hitech c for PIC18F!!! In this case, you only comment or remove the #include delay.h, because it not exist in pic for PIC12/16F and your program works, because the #define _XTAL_FREQ 8000000 Change too the _delay_ms(100); to __delay_ms(100); (2 (...)
Using hardware timer or delay counter? Is your crystal oscillator High speed type, ceramic resonator; did you select the correct capacitors with the type of crystal in use?
Which compiler is used??? Try using 19us OFF and 6us ON!!! = 25us or 1/40000 = 0,000025s If in c, use delay routine...
I use like in hitech and works... Maybe the #define statment is like hitech c!?!? /* hitech C for PIC12F629*/ #include // Required to interface with delay routines #ifndef _XTAL_FREQ // Unless already defined assume 4MHz system frequency // This definition is required to calibrate __delay_us() (...)
with this code further u can develop yourself /***** uC Series : PIC16F877A *****/ /***** Prog Lang : Hi-tech C *****/ #include unsigned long delay; void mc_init(); void main() { mc_init(); delay=500; while(delay--); do { RC0=1; // pointing single pin to toggle PORTB=0XFF; // e
Hi i am writting program for rtc (ds 1307) to display it in lcd using pic 16f877a controller .i read ds 1307 datasheet it stated that if we want to write in timekeeper register then we should give BCD value . 50 sec in dec is written as 01010000 in bcd so it requires 8 free bit in a register to update but in sec register it has one clock halt bit(C
Are you calling the delay function from inside an interrupt?
Hi, I don't do C, but saw this example code for a 877 chip that might help you ...? // INTEXT.C MPB 10-4-07 // Demo external interrupt RB0 low interrupts foreground output count #include " 16F877A.h " #use delay(clock = 4000000) #int_ext // Interrupt name void i
i have written code for my servo motor which is hitech HS-442..using atmega16..but with this code it is taking only 12 positions..i need to control the angles..what shud i do with this code??. #include #includedelay.h> float num1=0.1; int main() { DDRB=0xFF; PORTB=0x00; int i; while(1) { for(i=1;i<=10;i++)
Hello people ! I ve been studying the timers and interrupts for a while, but I am not sure if I have understood right. And I haven't made a conclusion from the datasheet. After flashing a led with just a delay, I want to test it again using an interrupt with Timer 0, for example. TMR0 serves as a simple counter and is first example that our code i
you can see the post generate time delay using pic
I need an example of ADC for ´PIC16F883 in hitech .c language or if you can give me all the program i have a GP2D12 sensor 0.5 - 3 V if the sensor signal is up than 1 V (1ft or less) i need Rb0 high for XX seconds then RB0 low delay RB1 high for XX seconds then RB1 low delay LOOP repeat or whatever... please i need (...)
This one is apparently HD44780 compliant one. Code written for HD44780 LCD should work on it as well, however, you'll have to tweak the delay code and the contrast pin.
Hi, Just make sure in your code that if you are shifting one channel to another channel give some delay to get accurate analog value. Regards Chanchal Chauhan
Hi, The reason for the numerous errors is due part by the fact the C file was written for the hitech PIC compiler, however the delay.c file was not included. So you'll have to write your own delay routines.The MPLAB requires a different header file, something like: #include Hence the code at the beginning of the