uC pic

hi everybody...I would like to know if someone here work with pic and CCS. I would like to change some informations about it.
my mail is

tks

fernando

Replies

  • Harshad Italiya
    Harshad Italiya
    Please share your Source with us we will help you.
  • fernandor
    fernandor
    thank you in advance for your help

    here is my code

    I am trying count 1 seg but is not working it is counting 4 seg.
    After 4 seg appear 1 seg on lcd.
    Another problem:
    How create .cof file.
    I am trying simulate using proteus to watch the variables but the .cof file was not create.


    #include <16C77.h>
    #use delay(clock=4000000)
    #include
    int counter;
    int seg=0;
    #int_TIMER0
    void TIMER0()
    {
    set_timer0(0);
    counter++;
    if(counter == 15)
    {
    counter=0;
    seg++;
    }
    }

    void main() {
    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_256|RTCC_8_BIT);
    enable_interrupts(INT_RTCC);
    enable_interrupts(GLOBAL);
    while (1)
    {
    lcd_init();
    lcd_gotoxy(1,1);
    printf(lcd_putc, "\f tempo \n %i segundos",seg);
    delay_ms(200);
    }
    }

You are reading an archived discussion.

Related Posts

Can anyone explain the physical significance of negative resistance? When a dependent source is connected in series with a normal series circuit the equivalent resistance becomes negative , why?Does the...
Hello, can anyone tell me some of the places where all or most of the following things can be used: -> light sensor -> temperature recorder -> accelerometer -> database...
Hi, I'm hoping someone may give me a hand in something probably quite straightforward. I'm wanting to know roughly what a typical single line diagram of a typical office block...
here lieas this painting by three Taiwanese painters, which speaks about dining with 103 influential personlaities. IDentify as many as you can Famous People Painting with Wiki Links | Historical...
Hii all, For a Direct Sequence Spread Spectrum system, which is the worst type of jammer signal of these 3 jammer signal :- Pulse Jammer, Single-Tone Jammer, and Multi-Tone Jammer....