Announcement

Collapse
No announcement yet.

ITPS-Auto Power Sequencer as Shotdown Controller

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ITPS-Auto Power Sequencer as Shotdown Controller

    Hello,

    I want to use the ITPS-Auto Power Sequencer as Shutown Controller.

    This should normally no problem but I have not time to learn who I can
    change the the HEX code for the PIC microcontroller.
    Hex Code

    I need the following functions:
    If I press a button (0->12V) which is connected to the ignition wire the
    pc should start immediately(without the 4 seconds delay).

    If I press the button (0->12V) a second time the pc should shutdown immediately (without the 5 seconds).

    Can anyone change that code?
    I hope I am not the only one who ist intrested in this function.

    Thank you in advance.

    Manuel

  • #2
    Hmm not so sure what you are trying to do here. How you gonna connect this button to the igniton line? Are you just reprogramming the ITPS?

    Are you gonna add another button? so you can turn your PC on or off immediately? if thats the case just use your normal PC button...they do exactly what you wanted

    Its the BUTTON bit thats confusing me

    Comment


    • #3
      Yes, I want only reprogramm the ITPS.

      The one side of the button is connected to 12V- and the other side to the ignition wire.

      Thats all. Nothing more.

      The problem with the current HEX code is that you must have everytime 12V- connected to the igniton wire. When you remove 12V- from this wire the ITPS switch the pc off.

      I hope you know what I mean!!

      Things to change:
      12V- to ignition wire (only for a short time) ----> ITPS ON ----> PC ON
      No voltage on the ignition wire ------> the pc stays ON
      12V- to ignition wire (only for a short time) ----> ITPS OFF ----> PC OFF

      The red text is the new function.

      So you can connect your battery voltage direct to the ITPS and the ITPS switch a power supply.
      Battery--->ITPS--->Powersupply (Opus....)---> Motherboard (PC)

      With the button on the ignition wire you can switch the whole system on or off.

      Manuel

      Comment


      • #4
        OK i get it now, so you just want to put a push switch to replace the car ignition line.

        The push button will then turn on/off your PC without delay?

        Hmm...alot of codes need to be wiped out.

        Im only learning to program the PIC 12F675 and I have no experience with the 12C508 at all so I cant really help you.

        Trust me its not hard to learn it at all, have a go doing it yourself. The hardest part to understand is to setup the chip for your required function.

        The problem is the 12C508 can only be programmed once, so you may want to download the simulator from the microchip website and have a play around.

        Acording to the ASM file you attached the target is 12F629 I though they uses 12C508? verify this.

        Hope that helps anyway

        Comment


        • #5
          The target is 12F629 and on my ITPS is also this microcontroller.
          Why a 12C508 microcontroller?

          ASM file:

          "
          LIST p=12F629 ;Target processor
          #include "P12F629.INC" ;Header file for target processor
          "

          Changing the delay is easy:

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

          .XXX / 2 x 400ms --> then you have the time in seconds

          I know that it is not diffucult to learn but the time.....

          Manuel

          Comment


          • #6
            The power.pdf on their sites uses 12C508. I guess you got the newer version.

            Anyway give me a day or 2 Ill post the whole source code as I dont have the time right now.

            Comment


            • #7
              Ok Ive done most of it...

              I need to know if you still want to use the PC power button to power up or down the PC...or do you just want a the ITPS to turn on and off without pushing the PC power button?

              I meant :

              push button > turn power on
              push button again > turn power off

              I asked this because some people here have setup their PC so that it come on straight away when the power is applied to it, no need to press any button. The pc is then just shut off by cutting the power...bad idea but some people does it this way.

              If you still want to do a proper shutdown using the PC button let me know.

              UPDATE :

              I hope you are aware that you still must supply a constant 12V to the ITPS.

              Also Im not too sure how you guys connect the ITPS to the power button of the PC...looking at the circuit diagram theres 2 output GPIO2 and GPIO4, Im assuming one of them is a constant "HIGH" or constant "LOW"

              Comment


              • #8
                or do you just want a the ITPS to turn on and off without pushing the PC power button?
                Yes, thats it. One button to switch the whole system.

                The ITPS is connected to the power button switch on the mainboard.
                I know that I need a constant 12V power supply. The ITPS is only my shutdown circuit for the power supply and the pc.

                Here two pics from my ITPS and the Installation Guide:

                http://www.blaue-leuchte.de/webimages/DSC02015.JPG
                http://www.blaue-leuchte.de/webimages/DSC02018.JPG

                Manuel

                Comment


                • #9
                  What I meant was are you still gonna connect the J2 (labelled MBON# and MBON2# on the circuit diagram) on the ITPS into the PC motherboard?

                  Ok my fault I didnt ask the question properly...my plan was just to apply the power to your motherboard when turning on and then cut the power when turning off. The ITPS will not do anything else, it just toggle the power on and off to your motherboard controlled by the push button. I got an impression this is what you wanted since you wanted on and off with no delay...it didnt make sense that you wanted this

                  Some people do this, hard on and off and no proper shutdown. If this is the case then I have done it already.


                  If you do want the sequence like this :

                  YOU push BUTTON and release - YOU want the PC to bootup
                  ITPS turn power rail on - ITPS apply battery power to the PC
                  ITPS wait 1 sec - ITPS wait for PC to settle down on receiving battery power
                  ITPS trigger PCBUTTON - ITPS bootup the PC
                  .
                  .
                  .
                  YOU push BUTTON again and release - YOU want PC to shutdown
                  ITPS trigger PCBUTTON - ITPS shutdown the PC
                  ITPS wait 45 sec - ITPS wait for PC to shutdown
                  ITPS turn power rail off - ITPS remove battery power to the PC
                  .
                  .
                  .
                  ITPS repeat cycle


                  For the PC to work properly ITPS must apply the battery power to the PC 1 second atleast before ITPS push the PCBUTTON. I think we are getting confused with the PC powering on/off with the battery power into the PC...they are different things And also with the push BUTTON and the PC power BUTTON.


                  BUTTON = your push button
                  PCBUTTON = pc power button
                  12V = power going into the PC

                  PC powering up should be called PC booting up

                  I hope thats clearer

                  Comment


                  • #10
                    Hi,

                    I think it was a mistake from me.
                    I will only reduce the delay times not set them to 0. So the PC can start normally and shutdown normally.
                    For example:
                    "
                    ONDELAY power on delay 0.6 or 1 seconds
                    ONDELAY2 wait 0.6 second until push button
                    BUTTON push button for 400 ms
                    OFFDELAY shut down 0.6 s after ignition off
                    HARDOFF hard off after 45 seconds
                    "

                    That's what I mean
                    If you do want the sequence like this :

                    YOU push BUTTON and release - YOU want the PC to bootup
                    ITPS turn power rail on - ITPS apply battery power to the PC
                    ITPS wait 1 sec - ITPS wait for PC to settle down on receiving battery power
                    ITPS trigger PCBUTTON - ITPS bootup the PC
                    .
                    .
                    .
                    YOU push BUTTON again and release - YOU want PC to shutdown
                    ITPS trigger PCBUTTON - ITPS shutdown the PC
                    ITPS wait 45 sec - ITPS wait for PC to shutdown
                    ITPS turn power rail off - ITPS remove battery power to the PC
                    .
                    .
                    .
                    ITPS repeat cycle
                    Thank you in advance!!!
                    Manuel

                    Comment


                    • #11
                      anyone know any cheap programmers for a pic12f629 - and whats the difference between a 12f and 12c? am I right in thinknig one is programmable and one is a one time program?
                      James
                      www.digital-car.co.uk - The UK CarPC Forum

                      Comment


                      • #12
                        As far as I know C is the older type. I remember using 16C84...now you can only buy the 16F84

                        C and F can be Flash or OTP device...12C508 = OTP, 16C84 = FLASH.

                        Comment


                        • #13
                          ONDELAY power on delay 0.6 or 1 seconds
                          ONDELAY2 wait 0.6 second until push button
                          BUTTON push button for 400 ms
                          OFFDELAY shut down 0.6 s after ignition off
                          HARDOFF hard off after 45 seconds



                          DONE

                          ONDELAY = 0 sec, no need for a delay.
                          ONDELAY2 = 1 sec, minimum of 1 sec delay should be enough for the motherboard to settle down
                          BUTTON = 0.5 sec
                          OFFDELAY 0 sec, no need for a delay
                          HARDOFF = 45 sec

                          I done a delay routine of 0.5 sec...this does all the delay in the controller. So all the delay are 0.5 sec steps.

                          I have tested it on 16F675, and it seems working all ok. I shall clean it up with all comments and post the source code by saturday. so stay tuned

                          Comment


                          • #14
                            anyone know any cheap programmers for a pic12f629

                            You can build one quite cheap...look around on the web. Most have built it around dtait design.

                            Comment


                            • #15
                              PERFECT!!

                              Manuel

                              Comment

                              Working...
                              X