Register
Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default Question and Request for HPL Orange5 Scripts

    Last edited by richiebb; 23rd April, 2018 at 03:59 PM.


  2. #2
    Top Poster

    Join Date
    Feb 2015
    Posts
    144
    Thanks Thanks Given 
    186
    Thanks Thanks Received 
    239
    Thanked in
    84 Posts

    Default

    congratulations on what you are doing
    here are scripts, some have mistakes
    can you fix it I will be grateful to you
    Attached Files Attached Files
    Last edited by neverseenpotato; 9th April, 2018 at 11:14 AM.

  3. The Following 6 Users Say Thank You to neverseenpotato For This Useful Post:

    datapage (18th April, 2021), gilbert250 (30th October, 2023), ives muniz (15th April, 2024), ledong (17th April, 2018), richiebb (9th April, 2018), yahia1908 (10th April, 2018)

  4. #3
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    Quote Originally Posted by neverseenpotato View Post
    congratulations on what you are doing
    here are scripts, some have mistakes
    can you fix it I will be grateful to you
    The scripts are correct!, Probably created for other versions of Orange (previously)
    I will give you an example.



    RED : show route, CHIPtype->file->script
    GREEN : shows the code block that does the job of calculating the code
    everything before the green block is the reuse of the chip file BR9010.hpl that is in the folder C:\Program Files\"ORANGE_DIR_PATH"\HPL
    which is the configuration of the mentioned chip

    solution?!...... update the chip configuration!!


    ; DEH.hpl

    ; Orange programmer module CarRadio ; CHIP=Rohm BR9010,64x16
    SOCKET=2
    PINO=CS,2
    PINO=CLK,0
    PINO=DI,1
    PINO=WC,3
    PINO=RBI,4
    PINI=DO,1
    CDELAY=2
    [INIT]
    R5=$VERSION
    R5=&0FFF000H,R5=>>12
    R7=280,R7?!R5{EXIT}
    WC=1,RBI=1,CS=1,CLK=0
    [READ]
    CS=0
    CONST=10101000B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=ADR(0,7){DI=I,CLK=1,CLK=0}
    DI=1,LOOP=DATA(0,15){CLK=1,I=DO,CLK=0}
    CS=1
    [WRITEINIT]
    WC=0,CS=0
    CONST=10100011B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=(7,0){CLK=1,CLK=0},CS=1
    [WRITE]
    CS=0,CONST=10100100B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=ADR(0,7){DI=I,CLK=1,CLK=0}
    LOOP=DATA(0,15){DI=I,CLK=1,CLK=0}
    P=10000,CS=1
    [WRITEEND]CS=0,CONST=10100000B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=(7,0){CLK=1,CLK=0}
    CS=1,WC=1

    [Code]
    ADR=0,R5=DATA,ADR=1,R6=DATA
    R5=&0FF00H,R5=>>8,R7=R5,R5=&00FH,R5=<<4
    R7=&0F0H,R7=>>4,R5=+R7,R5=<<12
    R7=R6,R8=R6,R7=&00F0H,R6=&0000FH,R6=<<8
    R8=&00F00H,R8=>>8,R6=+R7,R6=+R8,R5=+R6
    PRINT=("Код: %04lx",R5)


    everything marked in blue should be replaced by

    ; BR4090.hpl ;file is the one that uses the orange 5

    ; Orange programmer module v3.3
    ; (c) 2000 Alex Plusov, Victor Makcimov
    ; CHIP=Rohm BR90X0 series
    ; CHIP=BR9010,64x16;BR9020,128x16;BR9040,256x16

    ; tested BR9020F

    SOCKET=2

    PINO=CS,2 ;1
    PINO=CLK,0 ;2
    PINO=DI,1 ;3
    PINO=WC,3 ;6
    PINO=RBI,4 ;7 input - not used
    PINI=DO,1 ;4

    CDELAY=2 ; one set delay (1 MHz Max!)

    [INIT]
    WC=1,RBI=1,CS=1,CLK=0

    [READ]
    CS=0
    R0=10101000B
    LOOP=(7,0){DI=R0[I],CLK=P} ; start+READ opcode

    LOOP=(0,7){DI=ADR[I],CLK=P} ; out adr
    DI=1
    LOOP=(0,15){CLK=1,DATA[I]=DO,CLK=0} ; read data word
    CS=1

    [WRITEINIT]
    WC=0 ;enable write
    CS=0
    R0=10100011B
    LOOP=(7,0){DI=R0[I],CLK=P} ; EWEN opcode
    LOOP=(7,0){CLK=P} ; empty
    CS=1

    [WRITE]
    CS=0
    R0=10100100B
    LOOP=(7,0){DI=R0[I],CLK=P} ; start+WRITE opcode

    LOOP=(0,7){DI=ADR[I],CLK=P} ; out adr
    LOOP=(0,15){DI=DATA[I],CLK=P} ; write data word

    P=10000 ; tE/W 10 ms max
    CS=1

    [WRITEEND]
    CS=0
    R0=10100000B
    LOOP=(7,0){DI=R0[I],CLK=P} ; EWDS opcode
    LOOP=(7,0){CLK=P} ; empty
    CS=1
    WC=1



    you must do this in all scripts that do not work.

    CFG File Explanation

    Last edited by richiebb; 11th April, 2018 at 02:24 PM.


  5. The Following 3 Users Say Thank You to richiebb For This Useful Post:

    ives muniz (15th April, 2024), ledong (17th April, 2018), neverseenpotato (19th April, 2018)

  6. #4
    Top Poster

    Join Date
    Feb 2015
    Posts
    144
    Thanks Thanks Given 
    186
    Thanks Thanks Received 
    239
    Thanked in
    84 Posts

    Default

    Hi,
    yes,scripts are correct and work with old Omega.These are remande for Orange 5 but some of them make errors.Thank you very much for the corrected script,i'm going to try to remake the others with similar errors.
    Your tutorils for coding are really useful.
    Can you make a script,which changes the VIN and fixed crc - for example rd4.Thanks

  7. The Following User Says Thank You to neverseenpotato For This Useful Post:

    richiebb (19th April, 2018)

  8. #5
    Banned

    Join Date
    Jan 2010
    Location
    Trstenik - Thun
    Posts
    1,235
    Thanks Thanks Given 
    225
    Thanks Thanks Received 
    707
    Thanked in
    447 Posts

    Default

    Quote Originally Posted by richiebb View Post
    The scripts are correct!, Probably created for other versions of Orange (previously)
    Quote Originally Posted by richiebb View Post
    I will give you an example.

    solution?!...... update the chip configuration!!


    ; DEH.hpl

    ; Orange programmer module CarRadio ; CHIP=Rohm BR9010,64x16
    SOCKET=2
    PINO=CS,2
    PINO=CLK,0
    PINO=DI,1
    PINO=WC,3
    PINO=RBI,4
    PINI=DO,1
    CDELAY=2
    [INIT]
    R5=$VERSION
    R5=&0FFF000H,R5=>>12
    R7=280,R7?!R5{EXIT}
    WC=1,RBI=1,CS=1,CLK=0
    [READ]
    CS=0
    CONST=10101000B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=ADR(0,7){DI=I,CLK=1,CLK=0}
    DI=1,LOOP=DATA(0,15){CLK=1,I=DO,CLK=0}
    CS=1
    [WRITEINIT]
    WC=0,CS=0
    CONST=10100011B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=(7,0){CLK=1,CLK=0},CS=1
    [WRITE]
    CS=0,CONST=10100100B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=ADR(0,7){DI=I,CLK=1,CLK=0}
    LOOP=DATA(0,15){DI=I,CLK=1,CLK=0}
    P=10000,CS=1
    [WRITEEND]CS=0,CONST=10100000B
    LOOP=CONST(7,0){DI=I,CLK=1,CLK=0}
    LOOP=(7,0){CLK=1,CLK=0}
    CS=1,WC=1

    [Code]
    ADR=0,R5=DATA,ADR=1,R6=DATA
    R5=&0FF00H,R5=>>8,R7=R5,R5=&00FH,R5=<<4
    R7=&0F0H,R7=>>4,R5=+R7,R5=<<12
    R7=R6,R8=R6,R7=&00F0H,R6=&0000FH,R6=<<8
    R8=&00F00H,R8=>>8,R6=+R7,R6=+R8,R5=+R6
    PRINT=("Код: %04lx",R5)


    everything marked in blue should be replaced by

    ; BR4090.hpl ;file is the one that uses the orange 5

    ; Orange programmer module v3.3
    ; (c) 2000 Alex Plusov, Victor Makcimov
    ; CHIP=Rohm BR90X0 series
    ; CHIP=BR9010,64x16;BR9020,128x16;BR9040,256x16

    ; tested BR9020F

    SOCKET=2

    PINO=CS,2 ;1
    PINO=CLK,0 ;2
    PINO=DI,1 ;3
    PINO=WC,3 ;6
    PINO=RBI,4 ;7 input - not used
    PINI=DO,1 ;4

    CDELAY=2 ; one set delay (1 MHz Max!)

    [INIT]
    WC=1,RBI=1,CS=1,CLK=0

    [READ]
    CS=0
    R0=10101000B
    LOOP=(7,0){DI=R0[I],CLK=P} ; start+READ opcode

    LOOP=(0,7){DI=ADR[I],CLK=P} ; out adr
    DI=1
    LOOP=(0,15){CLK=1,DATA[I]=DO,CLK=0} ; read data word
    CS=1

    [WRITEINIT]
    WC=0 ;enable write
    CS=0
    R0=10100011B
    LOOP=(7,0){DI=R0[I],CLK=P} ; EWEN opcode
    LOOP=(7,0){CLK=P} ; empty
    CS=1

    [WRITE]
    CS=0
    R0=10100100B
    LOOP=(7,0){DI=R0[I],CLK=P} ; start+WRITE opcode

    LOOP=(0,7){DI=ADR[I],CLK=P} ; out adr
    LOOP=(0,15){DI=DATA[I],CLK=P} ; write data word

    P=10000 ; tE/W 10 ms max
    CS=1

    [WRITEEND]
    CS=0
    R0=10100000B
    LOOP=(7,0){DI=R0[I],CLK=P} ; EWDS opcode
    LOOP=(7,0){CLK=P} ; empty
    CS=1
    WC=1



    you must do this in all scripts that do not work.
    Your thread is very helpful ,thank you for that!


    these new scripts can be made much simpler

    Capture.jpg
    Last edited by mikroel; 23rd April, 2018 at 01:05 PM.

  9. #6
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    Quote Originally Posted by mikroel View Post


    It can be made much simpler

    Capture.jpg
    Thanks mate I did not know that in this language they can include files.


  10. #7
    Banned

    Join Date
    Jan 2010
    Location
    Trstenik - Thun
    Posts
    1,235
    Thanks Thanks Given 
    225
    Thanks Thanks Received 
    707
    Thanked in
    447 Posts

    Default

    Quote Originally Posted by richiebb View Post
    Thanks mate I did not know that in this language they can include files.
    Also,it will be very interesting to show how we can make .HPX file form .HPL

  11. #8
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    I'm new with this language, but from what I was researching, only those who participated in the cncLabs project know what encryption is like


  12. #9
    Banned

    Join Date
    Jan 2010
    Location
    Trstenik - Thun
    Posts
    1,235
    Thanks Thanks Given 
    225
    Thanks Thanks Received 
    707
    Thanked in
    447 Posts

    Default

    Quote Originally Posted by richiebb View Post
    I'm new with this language, but from what I was researching, only those who participated in the cncLabs project know what encryption is like
    I have made many scripts for airbag,dash and radio, but all is in .hpl format .




    Sent from my iPhone using Tapatalk

  13. #10
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    Quote Originally Posted by mikroel View Post
    I have made many scripts for airbag,dash and radio, but all is in .hpl format .




    Sent from my iPhone using Tapatalk
    ask him: zalupentiy


  14. #11
    Banned

    Join Date
    Jan 2010
    Location
    Trstenik - Thun
    Posts
    1,235
    Thanks Thanks Given 
    225
    Thanks Thanks Received 
    707
    Thanked in
    447 Posts

    Default

    Quote Originally Posted by richiebb View Post
    ask him: zalupentiy

    he know how to make .hpx files?

    in the mean time here one more NEW script for radio ULVWNFZ20

    Capture1.jpg

  15. #12
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    Quote Originally Posted by mikroel View Post
    he know how to make .hpx files?

    in the mean time here one more NEW script for radio ULVWNFZ20

    Capture1.jpg
    yes mate.
    He worked on the CnCLab project for orange5.
    His name is Pavel Mazur and also known as Pavel-Pervomaysk


  16. #13
    Banned

    Join Date
    Jan 2010
    Location
    Trstenik - Thun
    Posts
    1,235
    Thanks Thanks Given 
    225
    Thanks Thanks Received 
    707
    Thanked in
    447 Posts

    Default

    Quote Originally Posted by richiebb View Post
    yes mate.
    He worked on the CnCLab project for orange5.
    His name is Pavel Mazur and also known as Pavel-Pervomaysk
    Maybe he would like to share some manual for making scripts or sample scripts and for .hpx


    Sent from my iPhone using Tapatalk

  17. #14
    DK Veteran
    richiebb's Avatar
    Join Date
    Aug 2015
    Location
    Argentina
    Posts
    1,315
    Thanks Thanks Given 
    3,361
    Thanks Thanks Received 
    3,177
    Thanked in
    894 Posts

    Default

    Quote Originally Posted by mikroel View Post
    Maybe he would like to share some manual for making scripts or sample scripts and for .hpx


    Sent from my iPhone using Tapatalk
    I already asked him ...... he still does not answer


  18. #15
    DK Veteran
    zalupentiy's Avatar
    Join Date
    Nov 2014
    Location
    Canada
    Posts
    382
    Thanks Thanks Given 
    7
    Thanks Thanks Received 
    949
    Thanked in
    284 Posts

    Default

    This examples looks antion & not actual for real time.
    I didn't fart,my ass like you so much it just blew you a kiss.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.