Announcement

Collapse
No announcement yet.

HH2 Option 1 source code

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

  • #16
    Hooray it works
    I took Altra's ASM code and compiled it to a hex file in MPLAB v8.76
    with no errors reported.

    Then I burnt the pic chip using a JDM programmer (burner)
    and the Win pic880 v3.64f software, no errors reported

    and connected a variable resistor (10K) between the Vcc and Vdd with the wiper connected to pin 7 on the pic chip.

    And blow me down, it seems to have worked.

    Here are some wave forms from the Tx pin 6, and sample pins 2/3. and the delay between them.

    Here is the pulse on pin 6
    Attached Files

    Comment


    • #17
      Here is the pulse on pin 2 and the same on pin 3, they look the same

      very short pulse.
      Attached Files

      Comment


      • #18
        This shows pin 6 the tx pulse pin at the top of screen, compared to pin 3 the first sample pin, with pot at minimum delay.
        Attached Files

        Comment


        • #19
          This shows pin 6 and pin 3 with pot at half way, thats half the maximum delay.
          Attached Files

          Comment


          • #20
            Maximum delay, you will see the pulse has moved by 3 cm's
            Attached Files

            Comment


            • #21
              Pin 2 sample 2, pot set to minimum delay
              Attached Files

              Comment


              • #22
                Pin 2 sample 2, pot set to maximum delay
                Attached Files

                Comment


                • #23
                  Originally posted by 6666 View Post
                  Hooray it works
                  I took Altra's ASM code and compiled it to a hex file in MPLAB v8.76
                  with no errors reported.

                  Then I burnt the pic chip using a JDM programmer (burner)
                  and the Win pic880 v3.64f software, no errors reported

                  and connected a variable resistor (10K) between the Vcc and Vdd with the wiper connected to pin 7 on the pic chip.

                  And blow me down, it seems to have worked.

                  Here are some wave forms from the Tx pin 6, and sample pins 2/3. and the delay between them.

                  Here is the pulse on pin 6

                  Nice !!

                  Thanks for the info , great if there is succes !

                  Best regards

                  Ap

                  Comment


                  • #24
                    6666,

                    Good that you got it working. I reversed sample 1 and 2 in software to give
                    me a positive response on the output of the threshold amp. If you are using
                    Carl's original HH2 circuit then use my code which JLK modified.

                    Regards
                    Mark

                    Comment


                    • #25
                      Hi Altra
                      thanks for your code
                      yours is the only code that I have been able to make work

                      not sure if I have a couple of dud pic chips,
                      I burnt the JLK code but the pic is dead,
                      got to retry the other JLK code in new pic chip.

                      Comment


                      • #26
                        Does anybody have a hex file from Carls source code ?

                        and could anybody please tell me what version of MPLAB
                        was in use in Nov 2009 when Carl was experimenting with this?
                        thanks

                        Comment


                        • #27
                          Had a little win today
                          I have figured out what version of mplab was in use in 2009, seems it was Ver 8.00
                          anyhow have installed it and run carls asm code through the compiler
                          and this hex code popped out with no reported errors
                          I have yet to burn a pic and see if it works
                          stay tuned





                          :020000000E28C8
                          :10000800FF000308F0000408F1000A08F2007E0867
                          :10001800F3005128663084000030FE004730FF00AE
                          :100028001F208000840A0408703A03192328FF0A55
                          :100038000319FE0A14287E088A007F0882008317A5
                          :100048007C3084007E302A208301322864008001BD
                          :10005800840A04060319003404062B2883160F1794
                          :100068008F160F168F110F1439280F1D3C283D28A5
                          :100078003928D1209020AA20DF2083126608810029
                          :100088000B1145280E2882340034F034FF343734FD
                          :10009800FF34F034FF349B34FF3483120B116608AD
                          :1000A800023E810085106E08F401F4076F08F5011F
                          :1000B800F507C020831285146808F401F40769085D
                          :1000C800F501F507C020831285126C08F401F407C6
                          :1000D8006D08F501F507C020831285166A08F4013A
                          :1000E800F4076B08F501F507C020831205126C08A8
                          :1000F800F401F4076D08F501F507C0208312051611
                          :10010800E8207308FE0072088A00710884007008ED
                          :100118008300FF0E7F0E09000310831600300318BA
                          :1001280001309F00031083120030031801309F0034
                          :100138001F1383161F139F121F1683129F138316F4
                          :100148001F1483129F111F111F1008008312901093
                          :100158009012101603100030031801308F0003109E
                          :100168000030031801308E001013901183160C1004
                          :10017800831210140C1008000F30F4070318F50A46
                          :100188000030F50775088F0074088E000C10CC2815
                          :100198000C1CCF28D028CC28080085108512051201
                          :1001A8000515051483128B170B1307309900851456
                          :1001B80085160516080083128B1683168112811185
                          :0A01C8000111811401140800080061
                          :02400E00F4308C
                          :00000001FF

                          Comment


                          • #28
                            The chip took the hex file ok
                            just got to test it.

                            Comment


                            • #29
                              Hello 6666

                              That's great work from you !! So removeing the newer Mplab version and replace it for the older version 8.00, than you can load Carls C code and compile it to a hex ?

                              Thanks for this update !

                              Best regards.

                              Ap

                              Comment


                              • #30
                                Hi Ap

                                its alive, it works

                                I can see pulses from carl's code
                                will post pictures asap.

                                Comment

                                Working...
                                X