Pic16f84 based pulse Counter


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2008
    Posts
    2

    Default Pic16f84 based pulse Counter

    I am new to microcontrollers I want to know how this code is working? and is free from errors or not.. I am implementing this to get some practical knowledge of microcontrollers
    Attached Files Attached Files

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by anzarsalam View Post
    I am new to microcontrollers I want to know how this code is working? and is free from errors or not.. I am implementing this to get some practical knowledge of microcontrollers
    Don't know...and probably never will...
    http://www.picbasic.co.uk/forum/showthread.php?t=1742
    How about some hardware description?
    Can you make an LED blink under PIC control?

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi, Ski

    How are you ???

    mmmmh, stupid question ! I sould have given you the link before ...

    http://web-ee.com/schematics/medical/heartbeat-monitor/

    ...

    I really am a mother for you ...

    Regards
    Alain

    PS : Hope it works ! I'm a bit afraid of a "wall brick" supply defect ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Wink

    Of course! I should've known to Google it before asking posing such a silly statement!
    Well, since the code is written for a 16C84 and the O/P asked about a 16F84, I'm not sure if it'll work or not. I still stand by my original statement that the O/P might want to get his/her feet wet with blinky LED first and building up to this project, as always...

    To the O/P : If the person 'published' this schematic along with this source code, I would say that the chances of it working as advertised are very good. Why would somebody post something like this if he/she knew it didn't work?

  5. #5
    Join Date
    Jul 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    I have made led blinky, have made counter *simple upto 10
    can make led chaser

    shortly can set any any pin.. and play with o/p have studied and understannd 25 out of 37 commands of this programmer

    but I am having problem.. how this controller give output on seven segment display

    any suggestion?

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by anzarsalam View Post
    I have made led blinky, have made counter *simple upto 10
    can make led chaser

    shortly can set any any pin.. and play with o/p have studied and understannd 25 out of 37 commands of this programmer

    but I am having problem.. how this controller give output on seven segment display

    any suggestion?
    Use lookup command. build a table using numbers representing the output of the port driving the 7 segment display. each segment is lettered, a b c d e f g, h for the dot, so if the port = 0, 1, 2 etc the lookup table has those values represented as the value of the 7 segment display example: zero on the display has segments a b c d e f , all lighted your port output if hooked up this way,segment a= port?.0, b=port?.1, c=port?.2,d=port?.3, e=port?.4, f=port?.5, g=port?.6, h=port?.7 . . . . . zero would be 00111111 or $3F, one would equal 00000110 or $06 two would equal 00111011 or $3B . . .etc etc so the lookup table would read . . $3F,$06,$3b, . . . .
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Replies: 9
    Last Post: - 26th October 2009, 19:38
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  3. Need help with a pulse counter project PIC18F2620
    By blackrider in forum Schematics
    Replies: 1
    Last Post: - 29th April 2009, 00:08
  4. Replies: 3
    Last Post: - 13th September 2008, 17:40
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts