Capture digital data between microcontroller and led driver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orgamisho
    New Member
    • Dec 2023
    • 6
    • Bulgaria

    #1

    Capture digital data between microcontroller and led driver

    Hello, I have a device which uses 3 7segment displays (4 digits each) controlled by a single led driver (TM1629A) which is controller by a microcontroller (MS51FB9AE).

    I want to capture the communication between the 2 ICs, so I can decode it and read it from PC with USB cable.
    The problem is that this task is slightly over my skills and I have no experience is such tasks.

    I would be grateful if somebody give a hint how can I read and decode the digital signals or share a source where I can educate myself on this matter.
    I have no idea what protocol is used in the communication.

    The connection is as follows:

    MS51FB9AE ---> TM1629A
    1 (IC6 / T0 / PWM0_CH2 / ADC_CH4 / P0.5) ---> 7 (DIO) -> data
    2 (UART0_TXD / ADC_CH3 / P0.6) ---> 8 (CLK) -> square clock wave
    3 (UART0_RXD / ADC_CH2 / P0.7) ---> 9 (STB) -> at first seemed random noise, but reading the datasheet shows that it is set high only before instruction is given (my own understanding)

    Now I struggle to read all bytes and their values on my pc. My problem is sending the raw data over a usb cable. I think I will be able to map it and write a software to decode it human language after that.
    I have some experience using arduino, but not use if it can handle the clock speed of my circuit (according to datasheet the maximum is 1MHz, but haven't measured the actual).
    Also I think it will be problem to wire the arduino to clock, data, and ground of my device circuit, but getting a 5v from usb, mixing both grounds.

    I know about logic analyzers (which I dont have), but I think this would help only to observe the raw data by eye, not actually transefring the bytes' value to my pc.

    Any suggestions, sources, etc would be appreciated!
    Thanks!
  • sam_sam_sam
    Badcaps Legend
    • Jul 2011
    • 6027
    • USA

    #2
    First of all you need get an understanding of how to program this micro controller because there are commands for different functions like displaying output information on RDX and TDX or SPI to be able to display them on either a LCD or LED display or computer screen

    This micro controller does not seem to have a software lock but the micro controller that I am familiar with does have a boot loader and you can not retrieve the actual program lines as written but sometimes you reverse engineer to be able retrieve the program lines and redo it again to able to use it again

    Here is where you can find the information needed

    https://www.nuvoton.com/tool-and-sof...ogrammer-tool/
    Last edited by sam_sam_sam; 11-10-2024, 06:10 AM.

    Comment

    • truclacicr
      Badcaps Veteran
      • Apr 2019
      • 293
      • australia

      #3
      I think Bus Pirate might be what you need.

      https://buspirate.com/

      BTW, it would have been nice if you had linked to datasheets so that we didn't have to go looking for them.

      http://nic.vajn.icu/PDF/opto/led-driver/TM1629A-en.pdf

      Comment

      • rogfanther
        Badcaps Veteran
        • Jul 2006
        • 458
        • Brazil

        #4
        Even a simple logic analyzer ( those cheap things from eastern origins ) will help you. And yes, their software ( Saleae, Sigrok, etc, will allow to save the data read to the computer for posterior processing ) .

        Comment

        • orgamisho
          New Member
          • Dec 2023
          • 6
          • Bulgaria

          #5
          Thank you all for your answers!

          I managed somehow to read some bytes' values using an arduino as a bridge, but I didn't manage to distinguish any pattern in this data. I've made all the digits to display "1" (so this means only the segments are light up) and imported the data into excel, where I expected to see repeating pattern of bytes which value is the same (the value of "1") , but this did not happen.

          I guess there is another data going on these pins, as it uses the RX and TX of the main IC. I've even ordered a cheap logic analyzer and I hope the manufacturer might have left some serial output which would be way easier to grab I think. But I will have to wait some for it to arrive before I can take any measurements.

          Please correct me If am wrong in any of my actions ot assumptions.
          I am still open for any other ideas ot advices as well!

          Thank you!

          Comment

          • orgamisho
            New Member
            • Dec 2023
            • 6
            • Bulgaria

            #6
            Forgot to mention that I've tried reading the serial (again using an arduino as a bridge), but only got some strange characters. Tried multiple baudrates, without any different result. Hope the logic analyzer can help further with this

            Comment

            • rogfanther
              Badcaps Veteran
              • Jul 2006
              • 458
              • Brazil

              #7
              The chinese datasheet seems a bit more complete than the english one. But the communication seem to be in SPI, not the serial kind you would use baudrates with. Note on the datasheet, the pins of the UC can have many functions.
              Look at the tables of commands for the led driver chip

              Comment

              Related Topics

              Collapse

              • osrex
                LED DRIVER KEEPS DYING
                by osrex
                Hello, this is my first post and im just a beginner, so be easy on me guy. thanks



                i have a LED chandeilier that switches colors from white to cool white to warm when toggling the switch, it has 24 LED arms, each arm is 30 CM length.



                i have no datasheet at all for the LED lights, all i have is its length.



                long story short, testing the chandelier on the ground, and it works fine for 1 - 2 - 6 hours, no problem.



                as soon as i fix the chandelier to the ceiling and bury the driver inside the hub,...
                05-05-2025, 03:36 PM
              • howardc64
                Vizio E55-F1 dark backlight zones. LED failure or Dimming Zone Driver?
                by howardc64
                Problem

                Fixing a dimming zone TV with LEDs not lighting up. Dimming zone circuit introduces added variable to diagnose LED and/or Dimming Zone Driver board? Some 1/2 rows of LEDs appears to be out in active dimming zone off AND some brightness flickering with active dimming zone high while playing changing video



                Model & Board Pics



                Conflicting Spec

                Vizio indicate this TV has 10 dimming zones. However, LED strips and Zoned light driver connector suggest 12

                https://www.shopjimmy.com/vizio-gj-2k1...
                10-10-2024, 01:16 PM
              • charif
                Audio Driver for Thomson P14C4BK128
                by charif
                Need Audio Driver for Thomson P14C4BK128 (Windows 10/11)

                Hi everyone,

                I'm looking for help finding the correct audio driver for my Thomson P14C4BK128 laptop.
                The sound is not working properly, and I believe the audio driver is missing or not installed correctly.

                Here are the details:
                • Model: Thomson P14C4BK128
                • Operating System: Windows 10 64-bit

                If anyone has a working link to the driver or knows where I can download it, I'd really appreciate it.

                Thanks in advance for your help!
                04-30-2025, 05:41 PM
              • bohaboha
                how to install gl usb2.0 uvc camera device driver on windows 10
                by bohaboha
                Hello all am trying to reinstall my AMCAP Microscope on windows 10 but it is not working anymore. But the cam and the drivers are present in the Device Manager but there it saysWindows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39) the drivers is : gl usb2.0 uvc camera device driver and i also get this mesage: Windows found driver software for your device but encou​ntered an error.
                but it is quite strange because it did work on this same OS for one week ago and even for sometimes ago on that same but now nix.
                any help?
                01-26-2025, 08:33 PM
              • Daveleone
                UN55D6900 BN44-00428B partial led driver circuit failure
                by Daveleone
                Hello TV experts! I have a UN55D6900. The successfully TV turns on, and the backlights light up, and I get a picture, but there is a section that is dim. I took it apart and 1 out of 4 segments of backlight LEDs are not lighting on both sides of the TV (in other words, the same segment is out on both LED strips).

                I tested the LED strips with my LED tester and all of the LEDs light properly, so I believe the problem is with the PSU/LED driver board (BN44-00428B). The voltages at CNM810 (between PSU and main board) look ok to me. The voltages at CNL801A and CNL801B look off for one...
                07-23-2021, 06:31 PM
              • Loading...
              • No more items.
              Working...