converting programs~


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    15

    Unhappy converting programs~

    attached along with this msg is a PIC16F877A program.
    It is bio-related program for a hospital.
    Brief description
    Patient in hospital may suffer from slp walking disorder.
    So this program is for an alarm to be raised when the pressure in the shoe increases(when the patient walks, in other words, there is pressure sensor at the shoe sole.)

    Can anyone help convert it for use in PIC 18F4520/18F4420?
    Attached Files Attached Files

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sanguine View Post
    attached along with this msg is a PIC16F877A program.
    It is bio-related program for a hospital.
    Brief description
    Patient in hospital may suffer from slp walking disorder.
    So this program is for an alarm to be raised when the pressure in the shoe increases(when the patient walks, in other words, there is pressure sensor at the shoe sole.)
    Can anyone help convert it for use in PIC 18F4520/18F4420?
    I'm sure a lot of people could help with that. The program looks very simple.
    Questions is...can you answer any of the questions in the other thread about the '442?
    AND, how willing are you to try and learn to do the programming yourself vs. somebody else completely rewriting the code for you.

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


    Did you find this post helpful? Yes | No

    Default

    This assumes that the patient is going to put on shoes or slippers before they sleep-walk. They don't... they go wandering in bare feet...

    The best method is for the patient to wear a wrist ID (of the kind they already fit in hospitals) with a proximity alarm tag (similar to the sort they have in stores to prevent you from stealing merchandise). The alarm is sounded as soon as they go through the main door out of their room or hospital ward. This also allows for the patient to get up normally and go to the bathroom without sounding an alarm (nobody sleepwalking as yet has flushed themselves down a toilet!).

  4. #4
    Join Date
    Jul 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Red face

    yes ill reply to that previous thread.
    And true, of course i'm very fine with learning it all over, converting myself~
    but the thing is if i were to convert myself, i at least will need to know what the program is about. You see, we are given this program coded in PIC 16 and all i need to do is to copy paste into the MPLAB, load into the ICD and thn get it running. But since we need to convert the codes due to the availability of PIC 18, i'll need at least someone to help me get started.
    I'm not writing a program myself in this case, i'm given a program written by someone else and i really just need someone to tell me what the various codes mean and then try to make appropriate amendments.
    not really looking for people to spoon feed me~

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sanguine View Post
    not really looking for people to spoon feed me~
    Quite frankly, that's exactly what it looks like...
    What were you planning on doing this in? assembly? PBP? C?

  6. #6
    Join Date
    Jul 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    ah well...my bad..=X
    It's done in MPLAB IDE

  7. #7
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post

    Quote Originally Posted by Melanie View Post
    This assumes that the patient is going to put on shoes or slippers before they sleep-walk. They don't... they go wandering in bare feet...

    The best method is for the patient to wear a wrist ID (of the kind they already fit in hospitals) with a proximity alarm tag (similar to the sort they have in stores to prevent you from stealing merchandise). The alarm is sounded as soon as they go through the main door out of their room or hospital ward. This also allows for the patient to get up normally and go to the bathroom without sounding an alarm (nobody sleepwalking as yet has flushed themselves down a toilet!).
    Too true. An RFID wrist tag is common place in many nursing homes and hospitals to aid with wandering residents, sadly some with Alzheimer's. In my last job I was employed as a field / bench technician to install and service a wireless nurse call system operating on 27 and 304MHz. Top system. I worked with RFID-based wrist tags, door alarms, pressure sensors, displays, repeaters, dialers. Depressing job.

  8. #8
    Join Date
    Jul 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I know that...but the O/P doesn't want to be spoon fed, so I figured he/she might be able to find that tidbit in the datasheets.
    yea...i DUN want to be spoon fed but that much of information i manage to think of myself. By the way, I'm learning to use a pic16F877 now since my lecturer got me one. Learning the MPLAB IDE ver 7.50.
    AND SKIMASK.. im a 18 yr girl who is an extreme noob in programming.
    I'm only taught for 1-3 month for my MCT module?
    I dun think i can be as pro as you are...if not i would'nt have asked for help here! if that is spoon feeding to you then be it. I'm very fine with it.

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sanguine View Post
    yea...i DUN want to be spoon fed but that much of information i manage to think of myself. By the way, I'm learning to use a pic16F877 now since my lecturer got me one.
    Which is a fair distance from a PIC18F442/452...

    Learning the MPLAB IDE ver 7.50.
    Also outdated, latest version is 7.61 (maybe 7.62 by now)

    im a 18 yr girl
    Don't matter...

    who is an extreme noob in programming.
    Then pick up an 'extreme noob' type project and work your way up.

    I dun think i can be as pro as you are...
    Time will tell now won't it...

    if not i would'nt have asked for help here! if that is spoon feeding to you then be it. I'm very fine with it.
    Good, because I haven't seen anything that you have written yet...just copies of stuff you want converted.
    Show us something that YOU have written, and when it doesn't work, ask the question Why...
    Last edited by skimask; - 12th July 2007 at 15:47.

Similar Threads

  1. Help converting DS1993 to DS2433+
    By isaac in forum General
    Replies: 0
    Last Post: - 29th August 2008, 14:34
  2. Replies: 5
    Last Post: - 26th March 2006, 19:26
  3. Converting Stamp code
    By paul.mcallister in forum General
    Replies: 1
    Last Post: - 8th February 2005, 11:48
  4. converting long integer
    By jra in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th September 2004, 17:02
  5. Need help converting to PB Pro from Mbasic Pro
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 11th February 2004, 07:43

Members who have read this thread : 0

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