Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11

    Default Re: Making a timer using Pic16F887. How?


    up up up ko ani para maka learn sad ko

  2. #12

    Default Re: Making a timer using Pic16F887. How?

    Quote Originally Posted by homermike View Post
    Bro mao ni ako code sa TIMER, 1 second ang interval ani.. via interrupt.. and im using PIC16F877A for the MCU... and MikroC for the coding!


    void interrupt() {

    TMR0 = 1;

    //timer
    timeCnt++;
    if(timeCnt==30) { timeCnt=0;
    seconds++; }

    INTCON = 0xA0; //set T0IE, cler T0IF
    }

    void main() {

    ADCON1=0x06;
    TRISA=0x00;
    TRISB=0x00;
    TRISD=0x00;
    TRISE=0x00; PORTE=0x00;

    OPTION_REG = 0b10000111; // Assign prescaler to TMR0 and set to 1/256
    INTCON = 0x00; // disable (GIE + T0IE)

    TMR0 = 1;

    //INTCON = 0xA0; // to enable the timer interrupt
    //INTCON = 0x00; // to disable the timer interrupt

    while(1) {

    // put your codes here whatever you want to apply
    }

    }


    // post here kung unsa gusto nimo mahitabo sa imo circuit.. then we'll see what we can do... the codes above are showing how to enable the interrupt...

    been using this code to my electronic scoreboard..
    Wireless Electronic Scoreboard - YouTube

    Pwede pure assembly codes lng.. aron maka apil pud ko..hehehe

  3. #13

    Default Re: Making a timer using Pic16F887. How?

    Mas maau practice ka C bro.. pra dali ra kaau.. ni-agi nko anang assembly pro hassle kaau.. taas kaau codes.. kana nga code sample ako ghatag if sa assembly na taas kaau...

    nka kita ko sa imo post rgding PC timer with 1 coinslot and ur using 16F84A na PIC, ok kaau to bro.. i suggest u try migrate to C language kay dghan ka ug mahimo na application kay kahibaw man gyud ka...

    nndot sad to butangan ug bill acceptor bro.. same ani ako gbuhat na loading machine:
    Electronic Load Vending Machine - YouTube

    see other vidz lng nya...

  4. #14

    Default Re: Making a timer using Pic16F887. How?

    Quote Originally Posted by homermike View Post
    Mas maau practice ka C bro.. pra dali ra kaau.. ni-agi nko anang assembly pro hassle kaau.. taas kaau codes.. kana nga code sample ako ghatag if sa assembly na taas kaau...

    nka kita ko sa imo post rgding PC timer with 1 coinslot and ur using 16F84A na PIC, ok kaau to bro.. i suggest u try migrate to C language kay dghan ka ug mahimo na application kay kahibaw man gyud ka...

    nndot sad to butangan ug bill acceptor bro.. same ani ako gbuhat na loading machine:
    Electronic Load Vending Machine - YouTube

    see other vidz lng nya...
    kung gamay lang nga project, mas nindut ang assembly, para nako..
    kay masabatan jud nimo ang imung IC og datasheet..

    pero nindut gihapon ang C kay mas dali mag code..

  5. #15

    Default Re: Making a timer using Pic16F887. How?

    yes correct ka bro... but in C language, still needed man gyapon na sabton gyud ang datasheets... it is a must...
    ang nka nndot lng karn sa C language or mga C compilers kay naana dghan builtin libraries nga dli naka mag lisod ug hard code like integrating sa imo project some protocols: Serial Communication, i2c, SPI, PWM, ADC etc... kay all modules now are within that protocols/interface so dili nagyud lisod mag create sa code pra sa imo MCU...

    here are some of my projects done already... if have u heard sa PREPAID METER, we'r also participating the development...
    TXT MY CAR or SMS MY CAR - YouTube
    Electronic Load Vending Machine - YouTube
    Wireless Electronic Scoreboard - YouTube
    All Network LOAD Vending System success-load 1 - YouTube
    Smart and TnT vending machine video.MPG - YouTube

    https://www.facebook.com/TeksourcePhil

  6. #16

    Default Re: Making a timer using Pic16F887. How?

    Very nice videos sir homermike.
    Kudos to you coz you are making very nice actual commercial projects.

    On topic.
    Gamit ug C TS for faster development sa imo project as what homermike suggested.
    And you can also use assembly sa microC if you need your code to be efficient, as what stealthghost suggested.

  7.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Making beautiful photos using filters
    By PhoorDhoi in forum Photography
    Replies: 688
    Last Post: 10-16-2013, 11:44 PM
  2. Replies: 2
    Last Post: 05-21-2013, 09:52 PM
  3. For Sale: PC coin operated with timer using software
    By nogiebear_04 in forum Computers & Accessories
    Replies: 19
    Last Post: 08-25-2010, 05:10 PM
  4. Make my own credit card, How to?
    By genelleestremos in forum General Discussions
    Replies: 6
    Last Post: 06-05-2009, 01:34 PM
  5. How to make a free call using fring
    By baboy in forum Gizmos & Gadgets (Old)
    Replies: 2
    Last Post: 07-12-2007, 12:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top