Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Calling Ricky327!!

  1. #1
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    65

    Calling Ricky327!!

    Hey ricky or whoever thinks they may know, I am trying to figure out what to change the OFFDELAY and HARDOFF to in the assembler code for the PIC chip of the ITPS so that they would both be in minutes instead of seconds. I would like for the shutdown to occur around 12-13 minutes after ignition is off and then the hard off to happen like 15 minutes after ignition is off. Also, once I find out how to do this I need to know what program I can feed this assembler code into to get the hex code that I need to program the PIC with. Thanks in advance. Later guys!

  2. #2
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823


    Check the PIC chip number you have on your ITPS first, its either 12C508 or 12F629.


    The source code is actually on thier website. All the delays are listed as "DEFINE"

    You can just change these values to whatever you want. Reassemble it using the free softwares from microchip.

    Then just burn it


    Ill give you all the link soon.

  3. #3
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Heres the software you need :

    http://www.microchip.com/1010/pline/...lab6/index.htm

    I believe the original code cant handle delay in minutes, so additional programming will be needed.

  4. #4
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    65
    How hard would it be to write the program to do those 2 definitions in minutes? I totally don't know anything about the actual writing of the code, just how to program the actual chip. Can you kinda walk me through writing those 2 in minutes? Thanks!

  5. #5
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Here are all the delays as found on the source code :

    ONDELAY equ .15 ;power on delay 3 seconds
    ONDELAY2 equ .5 ;wait 1 second until push button
    BUTTON equ .2 ;push button for 400 ms
    OFFDELAY equ .25 ;shut down 5 s after ignition off
    HARDOFF equ .225 ;hard off after 45 seconds

    Ok the .225 on the "HARDOFF" means 45 sec delays. The ITPS was programmed so that each decimal value is 0.2 second delays. ".225" doesnt mean 0.225, it actualy mean 225 the point just means its a decimal value.

    The maximum delay is 256 x 0.2 = 51.2 seconds. As I said modification to the code is needed if you want delays in minutes.

  6. #6
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    65
    So how would you write the code so that you can have it shut down in minutes? I am kinda in the dark here. Let me kwow. Thanks!

  7. #7
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    To be honest, I cant just tell you without studying the code carefully.

    The one I modified before, it wasnt even based on the original code. I completely rewrote it as I found it easier than to study someone else code.

    Ill let you know as soon a I have something for you.


    But why such a long HARDOFF delay of 2 mins? The HARDOFF delay kick in after the shutdown signal is sent to the motherboard.

  8. #8
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    65
    The reason is in case I wanted to go into a store for a few minutes I would want the offdelay to be like 10 minutes and then the hardoff to be like 12 or so. That's mainly why. BTW, what is the best way to get a hold of you?

  9. #9
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    65
    Ricky did you ever figure it out? I haven't heard from you in a while!

  10. #10
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Bear with me, Ill be re-coding it for PIC12F629

Page 1 of 2 12 LastLast

Similar Threads

  1. Calling all Malibu owners
    By SuperMatty in forum Off Topic
    Replies: 5
    Last Post: 02-21-2004, 05:57 PM
  2. Calling all automechanics!!!
    By mp3hombre in forum Off Topic
    Replies: 10
    Last Post: 02-13-2003, 09:30 PM
  3. Calling all FV24 owners TV out picture size problem
    By Mikesz in forum General Hardware Discussion
    Replies: 0
    Last Post: 01-05-2002, 01:14 PM
  4. Lets get technical - Calling mp3car's Engineers
    By Fosgate in forum General Hardware Discussion
    Replies: 6
    Last Post: 10-11-2001, 02:02 AM
  5. Calling anyone with 4" LCD (as sold by PartsExpress)
    By sproggy in forum General Hardware Discussion
    Replies: 0
    Last Post: 02-21-2000, 11:09 AM

Bookmarks

Posting Permissions

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