comments on a/d converter so far


Closed Thread
Results 1 to 3 of 3
  1. #1
    cammo's Avatar
    cammo Guest

    Default comments on a/d converter so far

    This is what i got so far for the project which im doing using
    a pic16f870 microcontroller.
    It is a heartbeat monitor which increments the counter everytime
    an analogue signal from the heart is registered.This is the
    first part where im only reading each heartbeat and incr. the
    counter. Am i on the right track or way off? also imstill confused
    about how to go about making an interrupt that after a minute the
    value in the counter will be displayed,any tips will be helpful.
    __________________________________________________ ____________

    bsf status, rp0
    clrw
    movwf ADCON1 ;Setting up analogue inputs
    movlw 01h ;Choosing RA0
    movwf TRISA ;as analogue input
    bcf status, rp0
    ;
    ;
    heartb btfsc porta,0 ;Testing for pulse if no pulse skip next instr
    goto moni ;Goto monitor the no of heartbeats
    goto heartb
    ;
    moni incf count,1 ;Counting the no of heartbeats
    call dly ;calling a 1 millisec delay
    goto heart

    ;One millisecond delay so that the pulse has gone low again.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    The problem we have here is that you're using Assembler and this is a PICBasic forum... if you had PICBasic, you could simply use the COUNT command and count the number of pulses in a set perod...

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    cammo,

    in addition to what Melanie has already said:

    If you really think this is something to be posted on a PicBasic forum
    then it should go to the Off Topic section.

    You have a total of 4 posts on this forum.
    Your posts are in 3 different threads
    and in two different categories

    and they are all about the same thing.

    Do you really think this is necessary ?
    Last edited by NavMicroSystems; - 25th March 2005 at 18:48.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. A/D converter problem
    By netstranger.nz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th September 2009, 07:56
  2. Replies: 9
    Last Post: - 31st July 2008, 08:56
  3. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57
  4. A/D converter with pic16f84, i need a help
    By micro in forum General
    Replies: 0
    Last Post: - 13th December 2005, 21:17
  5. Re Cs5532 A/d Converter
    By massquip in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th April 2004, 16:31

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