Mp3car Home Page The mp3Car.com Forums The mp3Car.com Store The mp3Car.com Blog About mp3Car.com    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Power Supplies

Notices

Reply
 
Share Thread Tools Display Modes
Old 11-30-2003, 01:26 PM   #1
Newbie
 
Join Date: Aug 2003
Posts: 27
Question 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
Nellor is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 11-30-2003, 02:21 PM   #2
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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
Ricky327 is offline   Reply With Quote
Old 11-30-2003, 03:10 PM   #3
Newbie
 
Join Date: Aug 2003
Posts: 27
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
Nellor is offline   Reply With Quote
Old 11-30-2003, 09:38 PM   #4
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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
Ricky327 is offline   Reply With Quote
Old 12-01-2003, 03:35 PM   #5
Newbie
 
Join Date: Aug 2003
Posts: 27
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
Nellor is offline   Reply With Quote
Old 12-01-2003, 06:13 PM   #6
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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.
Ricky327 is offline   Reply With Quote
Old 12-01-2003, 06:59 PM   #7
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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"

Last edited by Ricky327; 12-01-2003 at 08:29 PM.
Ricky327 is offline   Reply With Quote
Old 12-02-2003, 12:37 PM   #8
Newbie
 
Join Date: Aug 2003
Posts: 27
Quote:
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
Nellor is offline   Reply With Quote
Old 12-02-2003, 07:20 PM   #9
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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
Ricky327 is offline   Reply With Quote
Old 12-03-2003, 02:49 PM   #10
Newbie
 
Join Date: Aug 2003
Posts: 27
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
Quote:
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
Nellor is offline   Reply With Quote
Old 12-04-2003, 09:51 AM   #11
Maximum Bitrate
 
Join Date: May 2003
Location: UK
Posts: 585
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
Jamez_Warner is offline   Reply With Quote
Old 12-04-2003, 08:16 PM   #12
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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.
Ricky327 is offline   Reply With Quote
Old 12-04-2003, 08:24 PM   #13
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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
Ricky327 is offline   Reply With Quote
Old 12-04-2003, 08:28 PM   #14
Raw Wave
 
Join Date: Jun 2003
Location: London UK
Posts: 1,818
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.
Ricky327 is offline   Reply With Quote
Old 12-05-2003, 01:53 AM   #15
Newbie
 
Join Date: Aug 2003
Posts: 27
PERFECT!!

Manuel
Nellor is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inquiring Info on ITPS Power Sequencer? Squeeky Power Supplies 58 11-24-2003 08:24 AM
ITPS auto power sequencer is out, need few testers andrewb Power Supplies 10 11-15-2003 08:13 PM
auto power on ideas?!?!? detz General Hardware Discussion 9 08-07-2002 01:19 AM
Getting power to the controller cruzc_99 LCD/Display 2 08-22-2001 10:47 AM
ATX auto power on jumpoint General Hardware Discussion 5 01-25-2000 03:56 AM


All times are GMT -5. The time now is 12:03 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics