Menu

picaxe conversion

Help
2020-12-04
2021-02-18
<< < 1 .. 4 5 6 7 > >> (Page 6 of 7)
  • Anobium

    Anobium - 2021-02-11

    Remove the I2CStart and i2CSend (write address).

     
  • Haroen

    Haroen - 2021-02-11

    That gives in the Terminal window a "i2c ACK error" and in Saleae no pulses where recorded.

     
    • Anobium

      Anobium - 2021-02-11

      Can you post the i2c sequence. Cheers.

       
  • stan cartwright

    stan cartwright - 2021-02-11

    Thank you mkstevo and Haroen for replying.
    It's a new device to me but using Saleae "Logic 1.2.18" I get the image,
    Says connected to usb which I picked out of a list cos all I could think of.
    More complicated than I would have thought. Lots of technical stuff.
    It should be like an 8 channel dso...but cheaper.

    sorry to be a nuisance but you guys have success so who better to ask....you shouldn't have boasted about getting it working. useful links to using clone?

     

    Last edit: stan cartwright 2021-02-11
  • mkstevo

    mkstevo - 2021-02-11

    I don't know what more to say?

    Did you click the double arrow button next to Start and set it to 8Ms/S and 5 seconds? If the sample rate is set above 8Ms/S the clone device may not work correctly. Start at 8Ms/S and then try different ones once you have it working.

    After that did you set the triggers as I suggested? Not in your picture, it's showing the wrong image.

    Following that hook some data to the probes and click Start. If you've got some data being read it should be displayed after it has been captured.

    If nothing is displayed, or you get "waiting for trigger" you can't have any data, or you have the wrong probes connected to the wrong inputs or the sampling rate is too high. The Gnd of the analyser is connected to the Ground of your data source?

    You have an Analyser active in your screenshot, which may possibly be causing some issues, Click the gear next to USB FS and LS and then delete that.

    Once you get it working, play with the analysers if you need them. None I tried have worked very well for me apart from the serial decoder. Probably timing issues?

    After that, I'm lost. See if there are any more comprehensive tutorials on the Saleae website.

    I have used both Saleae Logic 1.2.18, 1.1.3, Logic2 and PulseView (Sigrok) with my clone. On both Windows and on my iMac. All have worked. Pulseview seemed a bit more difficult to set up as it needs to have the correct driver set every time I started it on my iMac, but Saleae Logic (all versions) worked once the sample rate was lowered to 8Ms/S.

    You can't have another duffer, surely?

     
  • Haroen

    Haroen - 2021-02-11

    @Anobium,

        do
          HI2CStart                      <= REMOVED
          HI2CSend(I2C_ADDRESS)          <= REMOVED
          _lAckState = HI2CAckPollState
          _li2cCount++
          if _lAckState = true then
            wait 1 ms
          End if
        loop While _lAckState and _li2cCount < 255
    

    Like I've said in Saleae no pulses where recorded and so can't post any i2c sequence.
    What should I do?

     
    • Anobium

      Anobium - 2021-02-12

      OK. Try this...

      Removing the Write address, use the Read address then add the rest of the code.

      do
            HI2CStart                      
            HI2CSend(  READ_I2C_ADDRESS)          
            _lAckState = HI2CAckPollState
            _li2cCount++
            if _lAckState = true then
              wait 1 ms
            End if
          loop While _lAckState and _li2cCount < 255
      
          then the read code.
      
       
  • Haroen

    Haroen - 2021-02-11

    Stan, I think mkstevo has a good point...

    You have an Analyser active in your screenshot, which may possibly be causing some issues, Click the gear next to "USB FS and LS" and then delete that.

    @mkstevo

    ...but Saleae Logic (all versions) worked once the sample rate was lowered to 8Ms/S.

    I use 24Ms/S without errors instead of your 8Ms/S.
    I've read about that somewhere and in a video that it could be the poor chinese USB cable and/or a dirty pcb.
    Try replacing the cable with a propper one and you can open the analyzer casing just above the wires to inspect soldering and clean the pcb with flux cleaner.

     
  • stan cartwright

    stan cartwright - 2021-02-11

    https://sourceforge.net/p/gcbasic/discussion/579126/thread/1fe0a785f5/2e7b/attachment/SAM_3317.JPG
    is all I got and using dupont leads . the socket is marked.
    I'll print a help pdf if somewhere or find a youtoube tutorial if it needs explaining...
    or there wouldn't be one if it was easy.
    thanks again. I'll get back when it works.

     
  • Haroen

    Haroen - 2021-02-12

    Try to get the Logic Analyzer connected and working for a quick simple scan before going into a lot of detailed configuration options.

    With the info profided by mkstevo so far it should/could work already and for more basic example info...

    I don't know if this will help but these are two of the basics Saleae video's that helped me:
    1) Cheap logic analyzer SPI i2c UART
    2) Saleae Logic Analyser on the micro:bit and the Arduino

    Or you can google "cheap logic analyzer saleae" for reading material like I did.

     
  • Haroen

    Haroen - 2021-02-12

    On Stan his Logic Analyzer picture I noticed the lower left pin-wire to be CLK.
    On my device it's GND too like the lower right pin-wire GND.
    What is the CLK for?

     
  • William Roth

    William Roth - 2021-02-12

    Stan's device is either mislabeled or it is not a "Genuine" Saleae Clone. I am betting it is mislabeled.

    This can be verified by measuring the resistance between the Pin labeled CLK and the Pin labeled GND. If there is continuity then it is mislabeled.

    These devices were originally (illegally) labeled "Saleae Logic" and have gone through many label changes since. "Sellers" are likely printing and applying their own labels.

    Consider also that the software uses channels 0 - 7 while the label uses 1 - 8.

     

    Last edit: William Roth 2021-02-12
  • Chris Roper

    Chris Roper - 2021-02-12

    Some devices do have an external Clock input which allows them to sample up to 4 x faster as the device has no need to over-sample when it knows the precise Timing / clock edge of the DUT.
    But even if the hardware supports that (Which I doubt) the Saleae Software doesn't so it is a mute point.

     
  • stan cartwright

    stan cartwright - 2021-02-12

    I thought the clk was what worked the unit. Shows how little I know...about buying not genuine hardware for instance.
    So connecting this device to say spi and the software should show a brief sample.(that's duration is set somewhere and saved somewhere).

    @williamroth..."Stan's device is either mislabeled or it is not a "GENUINE SALEAE CLONE" "
    unintentially that made me laugh. Genuine clones...what next?

     
    • mkstevo

      mkstevo - 2021-02-17

      Interestingly I have two of these devices, one at home (bought from AliExpress) one at work (sourced from Amazon). I'm trying to decode a serial protocol at work and decided to check that I was sending the correct data before wondering why I wasn't decoding the returned data.

      The one at work is very slightly smaller than my home one, with better quality paper on the label. The work one has a "CLK" input on it, mine at home does not.

      Tracing the input from this "CLK" input, it goes from pin 9, through a 22R resistor and makes its way to pin 126 of the CY7C68013A, according to the datasheet for the device, this is port/pin A8.

      No idea what it does. With only a 22R resistor you wouldn't want to connect it to a voltage much above 3V I don't suppose. The analyser works with it connected to ground or left floating. The PCB claims it is "Logic Analyser 2.0", I'll have to see what mine at home says.

      And I found out that the data was being returned in under 500uS, as I was waiting over 5 full seconds there was no surprise I didn't get the answer I was looking for. At least I was sending the request correctly!

       
  • William Roth

    William Roth - 2021-02-12

    I use nothing but genuine counterfeits

     
    • stan cartwright

      stan cartwright - 2021-02-12

      Ha,Ha but me also.
      I'll check the label as that is the instruction manual. see if gnd is gnd.
      yawn

       
      • Chris Roper

        Chris Roper - 2021-02-12

        It could be Gnd or +5V test for both or you may inadvertently create a short circuit.
        If nether of those it may be disconnected or a genuine Clk input.
        The latter though would need appropriate software and a change to the PID of the device in order to use it.

         
      • mkstevo

        mkstevo - 2021-02-17

        That PCB is different to mine. Not sure if that has a level shifter on it? Possibly on the other side of the board.

        It claims to be version 2.0, but decidedly different to my V2.0!

         
        • mkstevo

          mkstevo - 2021-02-18

          The one I have at home is different again. It has a large CY7C68013A on the bottom of the PCB, with everything else on the top of the board. No claims as to the version number...

          I've just made a long ribbon cable with the original clips soldered to the ends of the ribbon cable for it to tidy up the connections. When I got the work one out I had made a ribbon cable for it and I couldn't think why I hadn't done the same for home.

           

          Last edit: mkstevo 2021-02-18
    • Chris Roper

      Chris Roper - 2021-02-12

      And I can verify that what Bill said is 100% fake :>)

       
  • stan cartwright

    stan cartwright - 2021-02-13

    Assuming it's a real fake. it shows in win devices as logic. blue and red leds lit.
    Saleae 1.2.18 finds it as the image shows.
    click any buttons and it gets complicated.
    I'll search for info,

     

    Last edit: stan cartwright 2021-02-13
  • Chris Roper

    Chris Roper - 2021-02-13

    That is because the manufacturer is using the device ID codes from the Original Saleae Logic Device:

    VID 0x0925, PID 0x3881

    So naturally the Saleae Software identifies it as such.
    It would be like you getting a traffic fine because someone else cloned you Car Number Plates.

     
  • stan cartwright

    stan cartwright - 2021-02-13

    On the only screen is options/help.
    It just made it all look complicated.
    I got a hantek usb 2 channel scope with official and open source software
    and it's much easier to use being only 2 ch. scope.
    They do an 8 channel logic analyser which is cheapo and easy to use.

    Anyway I think this logic analyser is ok and is recognised by logic 1.12.18
    so it's just me getting to know the software.
    the simple gui holds lots of meaningless settings.

    What sampling rate and for how long and to store/export...complicated stuff.

    I got an ubiquitous audio editor called audacity and initially looks complicated
    but it was easier to learn.

    Thanks for helping me guys.

     
    • Chris Roper

      Chris Roper - 2021-02-13

      No point in typing a long reply to your questions as they are all covered in the Saleae FAQ's. Read and get your head around this info and you will be a Pro:
      https://support.saleae.com/faq/technical-faq/what-sample-rate-is-required

       

      Last edit: Chris Roper 2021-02-13
<< < 1 .. 4 5 6 7 > >> (Page 6 of 7)

Log in to post a comment.