Advantest R6581 Service Manual - Page 1
Forum section: electronics / general

author: Mickle T.
author_rank: Frequent Contributor
timestamp: August 23, 2022, 03:23:37 pm
content: It is well known that the Advantest R6581 DMM is one of the most affordable 8.5 digit multimeters on the market. However, many owners are depressing by the fact that this device has very poor technical documentation and the unpredictability of some metrological parameters with the complete impossibility of setting them up.Although the first problem was solved relatively quickly, the second problem could not be solved for many years... until today.So, on the eve of the significant event Metrology Meeting 2022, I want to give a gift to Voltnuts community of the EEVblog forum - the Advantest R6581 DMM Service Manual.I want to warn everyone right away that this manual is not finished (and will not be anymore) and probably contains errors, but it can be used to overcome the most critical problems of the device, including ADC non-linearity and errors in high-resistance measurement ranges.The main essence of the service maintenance of the R6581 multimeter is entirely based on updating the data in the EEPROM in a special mode of the device, which I called the "Service Mode". This mode is a know-how of the manufacturer and is kept secret even from commercial partners of Advantest/ADCMT. However, after spending five man-years to study the firmware of the device, it was finally possible to identify an exhaustive list of commands, their syntax, the purpose of data structures, as well as to develop and validate methods for adjusting the device.P.S. Update 10/2023.Revision #6 of R6581 schematic diagrams:https://drive.google.com/file/d/1rVBmLdp4N4y262Aaf8nusNod_f_l3QQ-/view?usp=sharingP.P.S. Update 09/20241) Revision #7 of R6581 schematic diagrams:https://drive.google.com/file/d/1GTL8O-ltYQljJZR4XpwHM0DZ1_2RzE05/view?usp=sharing(added front panel interface and memory decoders)2) R6581 Firmware Reverse Engineering:https://drive.google.com/drive/folders/1oY-S8fY-8JyoipkjimH0GUjYnFnpLHgh?usp=sharing

author: branadic
author_rank: Super Contributor
timestamp: August 23, 2022, 05:56:41 pm
content: Hi MickleT.,publishing your 5 years of effort in a single document on R6581 with all your findings is a huge contribution to the voltnut community. Many thanks for that. I can't find the right words for this amazing work with such a big impact on the performance of the meter. I can just say "wow", well done, touché.-branadic-

author: branadic
author_rank: Super Contributor
timestamp: August 24, 2022, 09:27:35 pm
content: Thanks to help by alm we prepared an m-file (Octave or if you like Matlab) that takes an INL measurement of your R6581(D,T) with the original INL correction coefficients against your trustworth 3458A (or whatever meter you like) or calibrator and uses least square method to calculate new coefficients for improved INL.Attached is a graph showing the result with original coefficients, INL correction virtually turned off (H0 ... H15 set to 0, 0, ..., 0, 1), manually improved coefficients, coefficients found with least square method and coefficients found on a second, smaller stepped sweep to get an idea of repeatability and stability of measurements and coefficients.The m-file will be released here, so stay tuned.-branadic-

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 02, 2022, 04:31:37 pm
content: Service Manual in post#1 updated to next revision.Some infographics about how the DIAG Internal Check is working.As far as I understand, the readings in this mode cannot match the readings in the normal measurement mode, since a fixed offset is used instead of ADC zero, and also because post-processing settings (NULL, statistics, etc.) are not taken into account in any way. Try, for example, switching the device to 100 mVDC mode, shorting the input, calling NULL, and then switching to DIAG mode. At least in the Internal Check menu, you will be provided with a surprise

author: leighcorrigall
author_rank: Frequent Contributor
timestamp: October 03, 2022, 10:29:38 pm
content: Quote from: branadic on August 24, 2022, 09:27:35 pmThank you, Branadic et al.Just fixed the overheating issue with my Fluke 5440B and my Datron 1281 seems to work well enough for a linearity comparison on the 10 V range. Looking forward to this fancy m-file!By the way, will the script also include the remaining corrections such as OHMS and AC?Regards.

author: Kosmic
author_rank: Super Contributor
timestamp: October 04, 2022, 01:21:43 pm
content: Quote from: Mickle T. on October 02, 2022, 04:31:37 pmThat would explain the offset in diagnostic mode we are seeing on some units.

author: Kleinstein
author_rank: Super Contributor
timestamp: October 04, 2022, 01:35:13 pm
content: Quote from: Kosmic on October 04, 2022, 01:21:43 pmThe still leaves open why the ADCs offset is so different with some units. The bad one are some 3 V off - that is a lot and not easy to explain with something like resistor tolerances or leakage.The more natural variations in the offset should be more like in the 10 mV range.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 04, 2022, 01:57:21 pm
content: 3 V offset in diagnostic mode can't be explained by fixed ADC zero.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 28, 2022, 11:46:06 am
content: In general, the results of setting up the multimeter according to the service manual are encouraging. Testing and calculation of DCV, OHM and INL correction factors takes about 30-40 minutes in automatic mode. However, I want to draw the attention of everyone who is going to use this technique to the fact that the implementation of paragraph "14.5. Resistance transfer adjustment" will require a new calibration of the multimeter by an external resistance standard!In addition, I categorically do not recommend measuring with a multimeter in the ranges of 10, 100 and 1000 MΩ, using a 4-wire connection scheme, as well as 2-wire, but with the AZERO function enabled. If, nevertheless, zero correction is required in the range of 10 MΩ (at 100 and 1000 MΩ it is always disabled), then it is better to carry it out once, turning it off before the main measurement(s).

author: branadic
author_rank: Super Contributor
timestamp: October 30, 2022, 05:06:21 pm
content: Attached are the m-files including an example. Please note that the script runs without errors in Octave version 6.4.0 (2021-10-30), but won't work with the latest version 7, something got screwed up in the latest release.-branadic-

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 30, 2022, 08:09:27 pm
content: This is alpha-version of R6581 adjustment script for EZGPIB2 fork. I think it can be easily modified for any other calibrator model.P.S. The program for fine-tuning AC ranges is still in the process of being written and debugged. However, the algorithm appears to be rather complex and time-consuming, and the setup requires a full-fledged ACV / ACI calibrator, which I definitely will not have in the foreseeable future.

author: Kosmic
author_rank: Super Contributor
timestamp: October 30, 2022, 11:23:49 pm
content: Thanks Mickle and Branadic, much appreciated

author: TheDefpom
author_rank: Frequent Contributor
timestamp: October 31, 2022, 02:27:35 am
content: Firstly, thanks for sharing and working on the files!I am not familiar with EZGPIB, only recently hearing of its existence (yeah i'm probably a bit slow).From the quick poke around I did in the files I can see commands that look like they are for the Datron calibrator, so that is very good !Are there any instructions on using these files, I have the R6581T (which I recently repaired), and a fully optioned Datron 4700 calibrator.I can see that the R6581T is not linear across its range, even though I am comparing it to a couple of 7.5 digit meters (Solartron 7061 and Datron 1082).I also only recently started playing around with GPIB control of my instruments, so I am not up to speed with that fully either., I have been tinkering with Python to control my instruments using vxi11, and I can indeed change settings and read from the Datron and R6581T without problems, but I still consider myself a total novice in this area.

author: baof
author_rank: Newbie
timestamp: April 11, 2023, 03:27:54 am
content: Hello, Mickle TThank you for all these years of work and selfless sharing!May I ask if there are any instructions found in the disassembly regarding INT CAL accuracy and temperature drift adjustment? I think there should also be relevant instructions to correct these two. All R10 resistors on the 6581 reference board use the same 390K resistor, and the connection method is different from the standard application

author: Mickle T.
author_rank: Frequent Contributor
timestamp: April 11, 2023, 06:27:28 am
content: INT CAL accuracy correction is specified in R6581 Service Manual, par. 1.3. Factory calibration data management. But keep in mind - HOSEI commands are very dangerous! You can easily render your multimeter inoperable.The internal temperature sensor in the multimeter is used at two levels of abstraction.The top layer includes the SCPI/ADC command interpreter and front panel interface handler. In this case, all temperature measurement requests are processed by the Get_Internal_Temperature() function.The lower level means temperature measurement after the end of external or internal calibration. The special function is not used in this case. Low-level hardware configuration commands, diluted with delay flags and combined into lists (list_INT_Temp, list_EXT_Temp, etc.), are passed to the unified handler. The results of the temperature calculation after a successful calibration are stored together with the calibration constants and the date/time in EEPROM.Thus, no correction or other processing of the temperature sensor readings is carried out in the multimeter firmware.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: May 07, 2023, 08:57:14 pm
content: More than half a year has passed since the update of the factory correction factors of two multimeters, in which ADC INL, DCV, OHM and ACV errors have been corrected. The result is rock solidFrom now on, I consider the topic with Advantest R6581 closed for myself. I thank the participants of the discussion for their help.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 24, 2023, 05:34:44 am
content: An updated and expanded version of the circuit diagrams has been uploaded to post No. 1:! fixed minor bugs,+ completed all the digital circuits on the analog assembly,+ added a simplified circuit diagram of the AC assembly,+ explained the purpose of the chips on the main assembly.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 29, 2023, 09:53:44 pm
content: An R6581 with a dim display can be made 15% brighter without having to replace it with a new VFD or OLED, simply by turning off the brightness control signal. It is likely that this can be done with a special command, but unfortunately the Hitachi H8-322 Front Panel MCU firmware is not available. Therefore, I simply raised pin 11 of the U3 chip.

author: TheDefpom
author_rank: Frequent Contributor
timestamp: October 29, 2023, 10:03:40 pm
content: That is a brilliant diagram, do you have more for the display and digital section as I haven't seen it in the manuals you have been making available.Also looking at it wouldn't you also have to break /CL4 as well ?I am sure that in time I will need to replace the display in mine with something else as it is pretty dim, and having the display diagrams would certainly help with that, I haven't had the time to try and reverse engineer that area very much, I have done a little to try and figure out how it is connected but nothing like what you have been doing.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: October 30, 2023, 05:33:50 am
content: The /CL4 signal has a constant level. Brightness is limited only by screen blanking with /CL56.The schematics for the front panel, GPIB and AC boards are actually ready. All that remains is to redraw them in ECAD. The digital board is much more complicated, unfortunately.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 03, 2023, 09:55:01 pm
content: As I expected, the VFD scanning algorithm turned out to be quite cumbersome and overcomplicated in order to simplify the layout of the R6581 front panel PCB. But there is good news: even the Arduino Nano (Atmega328p) successfully intercepts traffic to shift registers.To replace the VFD, a 5.5-inch OLED 256x64 was purchased. However, its height is too high and will require CNC milling of the internal aluminum body of the front panel. I don't really want to do this on a working device. So I'll have to wait, maybe I'll be able to find an R6581 with a faulty display and which I don't mind experimenting with

author: Ismsanmar
author_rank: Regular Contributor
timestamp: November 04, 2023, 02:10:20 am
content: Regarding that issue, isn't a 3.12-inch display better than the 5.5-inch one? I know it's a little smaller than the original screen, but at least you don't have to make any modifications since it fits into the original window.And in my case, I don't think a 328p is enough. I have done some tests on Arduino with the u8x8 library and to run the SSD1322 at a refresh rate like that of the original screen you have to do too much juggling.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 04, 2023, 06:08:42 am
content: I find the 3.12-inch display to be too small to be comfortable to use with a multimeter. At least not with my eyesight.I don't use the Arduino development environment. Only old-school low-level coding in C. In addition, the u8x8 library is completely useless here, because the only function of the interface translator is to receive a bit matrix of symbols and send it to the SSD1322 with on-the-fly conversion. No fonts are used here.In the original, the VFD scanning frequency is ~111 Hz. For comfortable work with OLED, one third of this is enough.

author: Ismsanmar
author_rank: Regular Contributor
timestamp: November 04, 2023, 07:06:04 am
content: I know that. I only used it for a fast test of the display. I wasn't planning to spend more time writing in avr-libc if in the end I wasn't going to get a framerate close to that of the original screen at low NPLC. Any of the videos on the internet showed the necesary refresh rate for the SSD1322 to be used on the multimeter.But in the end, even if you are not going to use fonts, I did plan to use them in my project. Since I would like to emulate the original fonts on the screen, even if it is a little more work. And for this, at least in my case, the 328p falls short with its framebuffer management.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 04, 2023, 08:32:08 am
content: Quote from: Ismsanmar on November 04, 2023, 07:06:04 amI don't quite understand the essence of your project. Are you going to recognize in real time a pixel-by-pixel image of each character output by the R6581 on the VFD, and then render those same characters on the OLED using a custom font?

author: TheDefpom
author_rank: Frequent Contributor
timestamp: November 06, 2023, 01:59:37 am
content: I was thinking that there must be an ASCII data stream somewhere to grab the measurement data from, rather than trying to decode the screen data, probably the same for the mode data too I expect, I mean the data is viewable over GPIB so it must be in a raw format somewhere other than the screen.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 06, 2023, 09:51:29 am
content: The front panel interface is not a serial or parallel interface in the usual sense. In fact, it is a shared memory area that can be accessed asynchronously by both the main assembly processor and the front panel processor.As far as I know, the first 47 bytes of external memory on the H8 MCU side are a serial buffer of character codes for the 1st and 2nd lines of the display. The next 18 bytes are the annunciators flags (0x00 - off, 0x01 - on).But besides this, the same memory contains a keyboard buffer, a matrix of pressed key flags, an interrupt messaging mailbox, and a large number of flags, the purpose of which I do not know (most likely they are related to scrolling, blinking, etc.).The H8 MCU firmware contains a character generator with the standard ASCII character set, however, I found that characters with codes 0xE0...0xE8 and 0x7F are used in debug mode to smoothly fill the display with vertical and horizontal lines.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 06, 2023, 09:11:37 pm
content: I decided to take a chance with my working multimeter and test the translator with the first monochrome OLED display that came to hand (Winstar WEH002004 in graphic mode).Apparently I’ll still have to look for another R6581D/T, or wait until the display on my multimeter completely goes out

author: picburner
author_rank: Frequent Contributor
timestamp: November 07, 2023, 08:17:17 am
content: I have an R6581T also with a practically invisible display. I was thinking of doing a similar job to what Mikle is doing using a Futaba GP1294AI 256x48 VFD, basically it is a COG that incorporates SPI input logic and HV drivers and is currently sold at a very affordable price.The dimensions of the display are similar to the pre-existing VFD but, to do a job well done (and to fit in the limited space), I would have to redo the entire original PCB.I've already done similar work for aWavetek 1271, but in that case I really had no other choice.In this case, however, I'm a little hesitant: is it really worth doing all this work?

author: Mickle T.
author_rank: Frequent Contributor
timestamp: November 07, 2023, 10:33:01 am
content: I think the GP1294AI is the perfect solution. If the indicator is suitable in thickness, it can be connected with a thin flexible cable to an external mezzanine board on which the microcontroller and high-voltage DC-DC can be placed. A complete redesign of the entire PCB carries the risk of damaging the H8/322 microcontroller, the firmware of which is not yet available.

author: branadic
author_rank: Super Contributor
timestamp: September 01, 2024, 07:39:02 pm
content: Thanks to MickleT., who deserves all credits, we have a wonderful service manual. I was wondering, why noone has reported INL improvement just yet? Maybe the math is too much of a hurdle?Hence why I've put together this simple spreadsheet, hoping that more people will benefit from MickleT.'s wonderful work and report their success here.I've tested the spreadsheet myself against our 3458A and an ADR1399 upgraded AN3200, taken readings with H0 ... H15 reset, calculated the new constants, copied them into the device using Python and rerun the INL test. Attached are my results.Obviously summer time is not the best time to do this, even if the lab is AC stabilized. But the windows are facing south and temperatures outside were quite high, so there is quite some temperature change during the measurements. However, even with that drawback INL turned out <±0.1 ppm.I hope that motivates people to get their R6581(D,T) INL down too.-branadic-

author: leighcorrigall
author_rank: Frequent Contributor
timestamp: September 02, 2024, 06:46:12 pm
content: I'm relocating at the moment. No lab to perform measurements/adjustments. I have 2x 3458As that I can use for a linearity adjustmentI will reply again when I have time to review the manual and the scripts. I agree, the first time I read the manual, it was difficult to understand the heaviside functions.

author: Mickle T.
author_rank: Frequent Contributor
timestamp: September 03, 2024, 10:31:18 am
content: Announcement of the next update.

author: branadic
author_rank: Super Contributor
timestamp: September 03, 2024, 11:31:07 am
content: Wow, great progress, I'm in for one-branadic-

author: TheDefpom
author_rank: Frequent Contributor
timestamp: September 03, 2024, 11:51:13 am
content: Indeed that looks very good, I picked up a couple of different displays, I haven’t got around to trying to do anything with them yet though. I may not need to if I can buy these from MickleT, or just hook up a pro mini and dump some code into it.Good to see the larger display can simply be plugged into the other units connector and it just works.

author: gamalot
author_rank: Super Contributor
timestamp: September 03, 2024, 01:37:20 pm
content: I've also thought about DIY replacement display, but it seems difficult to find one with the right aspect ratio.

author: bsw_m
author_rank: Frequent Contributor
timestamp: September 03, 2024, 04:52:54 pm
content: I found this display. It fits in place of the original pretty well.

author: chekhov
author_rank: Regular Contributor
timestamp: September 03, 2024, 06:54:15 pm
content: One more alternative could be this display:https://www.buydisplay.com/bar-type-4-58-inch-320x960-ips-tft-lcd-display-spi-rgb-interfaceIt has the same dimensions as the one above, but less colors and maybe a bit lower contrast.I have both of them but haven't compared yet, wanted to revive my failed Keithley 200X display replacement project.

author: bastl_r
author_rank: Regular Contributor
timestamp: September 03, 2024, 09:52:13 pm
content: HiThe link does not work for me with the line break.Here without now.https://www.buydisplay.com/bar-type-4-58-inch-320x960-ips-tft-lcd-display-spi-rgb-interface

author: gamalot
author_rank: Super Contributor
timestamp: September 04, 2024, 05:06:33 am
content: Thanks guys, I just ordered two 4.58" LCDs to see if they will fit.

author: dietert1
author_rank: Super Contributor
timestamp: September 04, 2024, 10:25:29 pm
content: Thanks for the hints. I found those bar displays at digikey, 1528-5805-ND. They don't have display memory, so i ordered STM32H730 MCUs that can drive the display with their LTDC peripheral. They have enough RAM to hold a 1-byte per pixel memory, so 256 colors with a programmable color lookup table (palette).Regards, Dieter

author: Mickle T.
author_rank: Frequent Contributor
timestamp: September 08, 2024, 08:32:52 am
content: The first post has been updated.A new topic about replacing the display has been created:https://www.eevblog.com/forum/repair/advantest-r6581-vfd-replacement/msg5634443/

author: jaromir
author_rank: Unknown
timestamp: September 26, 2024, 08:55:41 pm
content: Hello guys.Thanks to Mickle T and branadic I was able to straighten out the linearity of my Advantest R6581T. Attached is INL chart against known good HP3458A.This chart contains three curves:1, Blue is original INL of the untouched instrument.2, Red curve is INL of the instrument when H0..H14 were zeroed and H15 was equal to 1.03, Green curve is INL after H0..H15 were calculated - from separate voltage measurement sweeps at the point of interest - using the recipe of Mickle T and checked against the spreadsheet provided by branadic, entered into the instrument and saved into EEPROM.Attached is a file containing set of original H coefficients, too. It looks to be identical to those values reported by Mickle T.