Author Topic: Looking for Mettler Scale ROM backup  (Read 4107 times)

0 Members and 1 Guest are viewing this topic.

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #25 on: October 17, 2024, 11:24:17 am »
I swapped the crystal oscillator - the waveforms didn't change
the oscillator waveform itself doesn't look very bad, but the clock waveform from uC is not rectangular
on the other hand, both ADC oscillator waveforms are perfect

My integrated circuit doesn't program at all - it can be read (it's filled with blanks), but it can't be programmed
gmac34 I also ordered RAM d446c - they'll be here tomorrow
 

Offline dustooff

  • Contributor
  • Posts: 28
  • Country: au
Re: Looking for Mettler Scale ROM backup
« Reply #26 on: October 17, 2024, 01:29:46 pm »
Hi,
with regards to the MCU oscillator, I usually scope the ALE and PSEN pins to see if the MCU is trying to access any of the external memory devices, ALE should be 1/8 of the XTAL frequency, see timing waveform on page 25.
If these external memory timing pins are active then the main XTAL clock should be fine.
Then probe each data pin and address pin to check for less than optimal logic levels, sometimes a addr/data line can be stuck.
regards
Andrew

Edit: correction ALE is 1/6 of CLK frequency.
« Last Edit: October 19, 2024, 10:05:15 am by dustooff »
...
 
The following users thanked this post: jamarjan

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #27 on: October 17, 2024, 05:46:28 pm »
fzabkar analyzing what you wrote I made a list of my parameters and dumped rom
I'm trying to recreate the configuration of my deleted rom  |O
I have problems with positions 10 and 11
can you tell me how to write it correctly
it's a bit strange that the first digit is omitted
I'll stare at this ROM dump for a while  :)

jamarjangamc34
Model namePM4600hexmod_hexPM4600hex
ID735485874543
003068744AEBAAEBA3068744AEBAAEBA
01:460672707800780460672707800780
02:36025257F3C7F3C3410525343C343C
03:197833304C904C9263354404BA04BA
04:53147681C141C14659849A11891189
05:687621A7E057E05910597DE505E505
06:5256888057805781979983056E056E
07:1048247FFEB7FEB73260744F9BAF9BA
08:268031416FF16FF48614376AFF6AFF
09:1310681FFFCFFFC720879AFFEFFFEF
10:593B197208302580258
11:271366A0062182497D007D00
12:3930115FF33FF441048348FFF1CFF1C
13:230473384498449682179A68C368C3
14:680701A62FD62FD739325B47FD47FD
15:3276975001100111966203000C000C
16:48957577867786752729180BBB0BBB
17:48051275500550023219238B008B00
18:917504E00000000655365A00050005
19:53124581B2D1B2D5819098E115E115
20:22067235E005E00886257D85F185F1
 

Offline fzabkar

  • Super Contributor
  • ***
  • Posts: 2735
  • Country: au
Re: Looking for Mettler Scale ROM backup
« Reply #28 on: October 17, 2024, 06:22:48 pm »
Code: [Select]
10:   59          0003B       003B
11:   27136       06A00       6A00

There is a typo here:

886257   D85F1   85F1

886527   D86FF   86FF  <- this is correct
« Last Edit: October 17, 2024, 08:08:44 pm by fzabkar »
 

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #29 on: October 18, 2024, 10:26:08 am »
Hi Andrew and others.
Flashed and reinstalled new EPROM - no changes  :'( Still waiting for RAM chip.
On ALE i have a nice square wave of 1,23 MHz
On PSEN similar with a little bit of noise on a high state.
XTAL is about 7,3 MHz
In most cases I have no activity on pins of channel 1 (P1.X) where communication with ROM should be.
Once every few restarts there is activity with waveforms not resembling those I found in the ROM datasheet (in / out).
screenshots attached
These waveforms appear once in a while (every 5th time the scale is used), usually there is no activity or it occurs very shortly after the scale is turned on - I am not able to record it on the oscilloscope.
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #30 on: October 18, 2024, 10:45:38 am »
Did you check continuity between the uvprom and the board? Check that all data line are going trough the connector, also check for corrosion or bent pins.
 

Offline dustooff

  • Contributor
  • Posts: 28
  • Country: au
Re: Looking for Mettler Scale ROM backup
« Reply #31 on: October 19, 2024, 10:21:15 am »
In most cases I have no activity on pins of channel 1 (P1.X) where communication with ROM should be.

Is port 1 actually connected to the ROM/RAM devices?
My understanding of the data sheet says...
Port 0 is also the multiplexed low-order address and data bus during accesses to external program and
data memory.
and
Port 2 emits the high-order address byte during fetches from external program memory and during
accesses to external data memory that use 16-bit addresses.

In the past I have repaired two PM4600's one for VFD problems, the other was failing to startup, like your current situation, unfortunately I can't recall the specifics of how the repair went. And I currently own it.

Edit: found app note AN457 (but not on NXP's site)  look at Figure 20, the 74HC373 has to hold the low address while the MCU presents the data byte.
Check the 373 output for an address, may need a LA to do that.
« Last Edit: October 19, 2024, 10:42:51 am by dustooff »
...
 
The following users thanked this post: jamarjan

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #32 on: October 26, 2024, 05:15:32 pm »
I've had a brief break in fixing the scale due to a business trip.
I replaced the UPD446C CMOS SRAM, 74HC373 chip, uC P8031, and the resistor ladder (it looked like it had a crack).
Still no change.
The clock waveform is still not square.
On startup there seems to be some activity on the uC communication with the ROM.
However, it seems to me that it does not load the program.
I guess I actually need to equip myself with a logic analyzer and take a look at the uC - ROM communication.
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #33 on: October 27, 2024, 05:16:12 am »
Sorry to hear that the part’s cannon approach didn’t lead to anything.
In a few days I will be back home, if you need I can probe around on mine and compare things.
 

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #34 on: October 29, 2024, 09:50:47 am »
I managed to play around with a logic analyzer
I am posting screens from channel P0, P1 and from the EPROM
it seems to me that the microcontroller is not reading data from the eprom
just why it is not displaying any error on the VFD
gmac34 - can you check how your scale behaves when you unplug the connector ( blue) from the weighing module? and how about when you unplug the interconnect board with the rear connectors?

 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #35 on: October 30, 2024, 08:11:47 am »
nothing happens if I remove the communication board, I think it was an optional anyway, and I get error 4 ( Error in temperature measurement) with the cell disconnected.
 

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #36 on: October 30, 2024, 11:33:42 am »
Thanks for checking and the information provided
Unfortunately my efforts are still without progress
I also checked the proper operation of the optotransistor controlled by the integrated switch
Everything seems to work ok
When switched on the scale consumes about 9W of power
Under thermal imaging nothing heats up above the expected level
I'm trying to analyze what could have gone wrong due to badly filtered / unstable power supply voltage but without a schematic my skills are already exhausted
I guess I have to hunt for a twin used scale
 

Offline dustooff

  • Contributor
  • Posts: 28
  • Country: au
Re: Looking for Mettler Scale ROM backup
« Reply #37 on: October 30, 2024, 12:58:22 pm »
maybe there are some mainboards available somewhere,
https://www.ebay.com/itm/134203907609
...
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #38 on: October 30, 2024, 01:32:18 pm »
Is there any activity on pin 9 of the microcontroller (reset)?
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #39 on: October 30, 2024, 01:46:55 pm »
Non having a schematics is bummer, but one last thing that comes to mind is to check the IC1, the PC74HC373P. but I don't fully understand what is it doing there, by the position it would seem like it would interface between the ROM and the micro.
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5245
  • Country: nl
Re: Looking for Mettler Scale ROM backup
« Reply #40 on: October 30, 2024, 03:32:22 pm »
Non having a schematics is bummer, but one last thing that comes to mind is to check the IC1, the PC74HC373P. but I don't fully understand what is it doing there, by the position it would seem like it would interface between the ROM and the micro.

The lower 8 address lines and the data lines are on the same processor pins, so they need to be 'demultiplexed' and latched. See reply #31 in this thread.
Keyboard error: Press F1 to continue.
 
The following users thanked this post: jamarjan

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #41 on: November 05, 2024, 01:12:01 pm »
I connected the logic analyzer to the 373 latch
below is a screenshot with the channel descriptions
unfortunately I don't really know how to interpret it
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #42 on: November 05, 2024, 02:51:53 pm »
I cannot help you with that, but I have one last thing I think you should check: I would check the data input on the vfd controllers, should be pin 39, to see if they are receiving any data. A bad controller might be another explanation for a blank screen

https://www.digchip.com/datasheets/parts/datasheet/477/SN75518N-pdf.php
 
The following users thanked this post: jamarjan

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #43 on: November 06, 2024, 06:49:41 am »
Thanks for the suggestions!
Actually, the diagnosis after repairing the power supply and restoring stable voltages at the control points I just started with the VFD controllers
Unfortunately there is no data reaching the display board (voltages are ok)
The only life I get on the display board is if I run the scale without the cassette. Then all segments light up. I can turn the display off and on by pressing the spacebar button.

It seems to me that driving the display is secondary to loading data from the EEPROM. And here, unfortunately, I have no information exchange between the uC and the memory.
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #44 on: November 06, 2024, 07:26:25 am »
I see, well, for what is worth the display lighting up with no cassette is normal behaviour
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #45 on: November 12, 2024, 09:10:42 am »
there is a "for now" cheap scale on eBay that could be a good parts donor
given the state of the vfd I would imagine the cell to also be mechanically damaged but the main board may be ok

https://www.ebay.it/itm/335651376850
 

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #46 on: November 12, 2024, 10:08:20 am »
Thanks. The current bidder is me ;-)
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #47 on: November 12, 2024, 12:07:05 pm »
Good luck then.
In the meantime I was trying to figure out which values in the EEPROM might be those of the linearity adjustment as my PM3000 is a bit out of specifications, it's a challenge to figure out what is what.
The most confusing part is what happens to the parameters when they get written in memory, for example the first parameter for all 3 of my scales is written as AEBA even tough it is three different numbers written on the various parameter sheets. 3 different numbers that wen converted to hexadecimal end in AEBA but I cannot understand what the first part might be there for
 

Offline gmac34Topic starter

  • Regular Contributor
  • *
  • Posts: 92
  • Country: no
Re: Looking for Mettler Scale ROM backup
« Reply #48 on: November 13, 2024, 08:45:21 am »
Well, it seems you got it. the main board has the same part number between the pm6000 and 4800 hopefully you will just have to move over the reference resistors R41 and R42, and the memory
 
The following users thanked this post: jamarjan

Offline jamarjan

  • Contributor
  • Posts: 24
  • Country: pl
Re: Looking for Mettler Scale ROM backup
« Reply #49 on: November 14, 2024, 11:49:38 am »
Yes, I bought the scale and it's on its way to me now
I can tell from the pictures that the scale has been mistreated so I don't have high expectations
I will let you know when I install the circuit board, and ill also try to dump the memory to have another bin for analysis ;-)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf