Not had any time at all to work on this - so we knocked this together last night to give budding coders something to have a crack at
pls no questions - if you now what you are doing all your answers will be on this page
This hasn't really been tested and may need adjusting - but it basically controls d0 and a15 similar to the matrix for flashing your tsop
TBH i dont know why this hasnt been released to the scene before now as the code is really really simple
| CODE |
;CONNECT PIC PIN 8 TO GROUND ;CONNECT PIC PIN 1 TO 5 VOLTS ;CONNECT PIC PIN 2 TO D0 ;CONNECT PIC PIN 3 TO A15 ;D0 WILL BE GROUND AT BOOT FOR HALF A SECOND THEN WILL GO OPEN ;A15 WILL BE GROUND AT BOOT AND STAY GROUND FOR 50 SECONDS
; CODE XBOX V1.555 ; 12C508
INAD EQU 00H TRMO EQU 01H PC EQU 02H STATUS EQU 03H FSR EQU 04H OSSCAL EQU 05H GPIO EQU 06H COUNT EQU 07H COUNT1 EQU 08H COUNT2 EQU 09H COUNT3 EQU 0AH
#DEFINE Z STATUS,2 #DEFINE C STATUS,0
ORG 00 MOVWF OSSCAL GOTO START_
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; LONG_ D_ CLRF TRMO S_ NOP NOP NOP BTFSS TRMO,7 GOTO S_ DECFSZ COUNT GOTO D_ RETLW 00 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; START_ CLRF GPIO MOVLW B'10000111' OPTION MOVLW B'11001111' TRIS GPIO BCF GPIO,5 ;PIC PIN 2 D0 BCF GPIO,4 ;PIC PIN 3 A15 MOVLW .8;D0 TIMING VARIABLE AJUST THIS FOR D0 O/C FROM GROUND TIME MOVWF COUNT;LOWER NUMBER WILL REDUCE TIME FROM D0 TO O/C CALL LONG_
MOVLW B'11101111' TRIS GPIO
MOVLW .255;A15 TIMING VARIABLE AJUST THIS TO AJUST A15 TIME FROM GROUND MOVWF COUNT;LOWER NUMBER WILL REDUCE THE TIME UNTIL A15 IS O/C CALL LONG_ MOVLW .255 MOVWF COUNT CALL LONG_ MOVLW .255 MOVWF COUNT CALL LONG_ MOVLW .255 MOVWF COUNT CALL LONG_ MOVLW .255 MOVWF COUNT CALL LONG_ MOVLW .255 TRIS GPIO LAST NOP GOTO LAST END
|
some info that this code was based on (found on xboxhacker.net)
Programming the Onboard TSOP using a X2PRO or X2LITE.
This can be done and has been done on 1.0 boxes.
1) Connect TSOP Write lines (See matrix instructions)
2) Ground A15 (T1 on the matrix instructions)
3) Program X2Pro with EvoxMatrixTSOP bios
4) Turn power on and after 1/2 second turn DIP switch 4 off
5) Wait for EvolutionX to come up
6) Remove A15 Ground
7) Use EvolutionX to Flash a 1 meg bios to TSOP
Make sure your Evox xbe is named and placed somewhere that the EvoxMatrixTSOP bios can find it. I used a CD-RW with Slayer's 2.0 disk and Flashed 4974 onto the TSOP.
Look at the TSOP Flash Matrix Instructions floating around for pin locations etc.
This works with both the PRO and LITE but ONLY on 1.0 boxes until a EvoxMatrixTSOP bios is released for 1.1.
BTW, After you remove the A15 ground but before you flash the TSOP, if you use EvolutionX to backup your Box, you will have a copy of the orignal bios from your box. But you must do steps 1-6 first before you do the backup or you will just backup the X2.
This post has been edited by Ubergeek: Apr 5 2003, 08:22 AM