Skip to content

Commit

Permalink
update to 1.48m
Browse files Browse the repository at this point in the history
  • Loading branch information
semka95 committed Dec 17, 2022
1 parent b8d707e commit f2d7823
Show file tree
Hide file tree
Showing 52 changed files with 2,785 additions and 1,080 deletions.
19 changes: 15 additions & 4 deletions firmware/ADS7843.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,24 @@ uint8_t Touch_Adjust(void)

/* tell user */
LCD_Clear(); /* clear display */
LCD_CharPos(1, 1);
LCD_CharPos(1, 1); /* do we need LCD_CharPos()? */
// todo: make sure we output string only to display
#ifdef UI_COLORED_TITLES
/* display: Touch Setup */
Display_ColoredEEString(TouchSetup_str, COLOR_TITLE);
#ifdef UI_CENTER_ALIGN
Display_CenterLine(1); /* center block: 1 line */
/* display: Touch Setup */
Display_ColoredEEString_Center(TouchSetup_str, COLOR_TITLE);
#else
/* display: Touch Setup */
Display_ColoredEEString(TouchSetup_str, COLOR_TITLE);
#endif
#else
Display_EEString(TouchSetup_str); /* display: Touch Setup */
#ifdef UI_CENTER_ALIGN
Display_CenterLine(1); /* center block: 1 line */
Display_EEString_Center(TouchSetup_str); /* display: Touch Setup */
#else
Display_EEString(TouchSetup_str); /* display: Touch Setup */
#endif
#endif


Expand Down
36 changes: 32 additions & 4 deletions firmware/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@

------------------------------------------------------------------------------

v1.48m 2022-12
- Added remote command V_F_clamp for V_f of clamping diode for Schottky
transistors.
- Pin assignment for the 3 test pins/probes can be changed now (suggested by
dreieck@mikrocontroller.net).
- Optional confirmation beep for valid frame/packet in IR receiver/decoder (
SW_IR_RX_BEEP) or after probing is done (UI_PROBING_DONE_BEEP).
- Updated license to EUPL v. 1.2.
- Option to center-align infos and some other texts (UI_CENTER_ALIGN).
- Option to show self-discharge voltage loss of a capacitor > 50nF (
SW_C_VLOSS, suggested by indman@EEVblog). Also added as remote command.
- Option to show additional info for a possible potentiometer/trimpot (
SW_R_TRIMMER)
- Workaround option for clones with SCT15L104W management MCU, in case the
tester turns off suddenly after the first probing cycle (PASSIVE_POWER_CTRL,
based on idea from lhlad@EEVblog).
- Added option to switch boost converter for Zener check by a dedicated I/O
pin (ZENER_SWITCHED, suggested by Per Hansson@EEVblog).
- New option to display values in a different color (UI_COLORED_VALUES,
suggested by indman@EEVblog).
- Added precompiler check for detecting if multiple displays are configured (
suggested by Per Hansson@EEVblog).
- Moved supporting configuration management from config.h and config_<MCU>.h
to a new header file (config_support.h). Also added a few additional
configuration checks. Fixed issue with missing text for SW_DHTXX (reported
by BroMarduk@EEVblog).
- Moved UJT symbol bitmap to standard symbols.

v1.47m 2022-07
- Fixed swapped resistor symbols in font_8x12t_iso8859-2_vfp.h and
font_8x12t_iso8859-2_hf.h (reported by b0hoon@EEVblog).
Expand All @@ -20,7 +48,7 @@ v1.47m 2022-07
- New 32x39 symbol set to match 26 pixel high fonts (SYMBOLS_32X39_HF,
thanks to indman@EEVblog).
- Added options to auto-hold ESR and inductance for C and L monitor (
SW_MONITOR_HOLD_ESR, SW_MONITOR_HOLD_L, suggested by theHWcav@EEVblog).
SW_MONITOR_HOLD_ESR, SW_MONITOR_HOLD_L, suggested by theHWcave@EEVblog).
- Added character translations for inversed pin numbers to Serial_Char().
- Added option for /RESX line on separate MCU port to ST7735 driver (
LCD_RES_PORT, LCD_RES_DDR, based on idea from lhlad@EEVblog).
Expand All @@ -30,11 +58,11 @@ v1.47m 2022-07
symbol sets (thanks to indman@EEVblog).
- Added additional positioning flags for fancy pinout (PIN_CENTER,
PIN_ALT_CENTER, suggested by indman@EEVblog).
- Display small diode symbol before Vf for MOSFETs and IGBTs (suggested by
indman@EEVblog).
- Display small diode symbol in front of Vf for MOSFETs and IGBTs (suggested
by indman@EEVblog).
- Added numbers 1-3 and character x with reversed color plus degree character
to font_8x16alt_win1251_hf.h. Also updated 1-3 and x with reversed color in
font_8x8alt_win1251_vf.h, Same for font_16x26_win1251_hf.h (thanks to
font_8x8alt_win1251_vf.h. Same for font_16x26_win1251_hf.h (thanks to
indman@EEVblog).
- Added option to disable display of text based pinout of the body diode for
MOSTFETs (UI_NO_BODYDIODE_TEXTPINOUT, suggested by indman@EEVblog).
Expand Down
34 changes: 32 additions & 2 deletions firmware/CHANGES.de
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@

------------------------------------------------------------------------------

v1.48m 2022-12
- Fernsteuerkommando V_F_clamp f�r V_f der Klemmdiode von Schottky-
Transistoren.
- Pinzuordnung f�r die drei Testpins kann nun ge�ndert werden (Vorschlag von
dreieck@mikrocontroller.net).
- Optionaler Best�tigungston f�r g�ltiges Datenpaket im IR-Empf�nger/Decoder (
SW_IR_RX_BEEP) oder nach der Bauteilesuche (UI_PROBING_DONE_BEEP).
- Lizenz auf EUPL v. 1.2 aktualisiert.
- Option zur zentrierten Ausgabe von Infos und ein paar anderen Texten (
UI_CENTER_ALIGN).
- Option zur Anzeige des Spannungsverlusts durch Selbstentladung bei
Kondensatoren > 50nF (SW_C_VLOSS, Vorschlag von indman@EEVblog). Auch
als Fernsteuerkommando implementiert.
- Option zur Anzeige zus�tzlicher Infos bei einem m�glichen Poti/Trimmer (
SW_R_TRIMMER)
- Workaround-Option f�r Tester mit SCT15L104W Management-MCU, wenn der Tester
sich pl�tzlich nach der ersten Bauteilesuche abschaltet (PASSIVE_POWER_CTRL,
nach Idee von lhlad@EEVblog).
- Option zum Schalten des Boost-Konverters f�r den Zener-Test �ber festen
I/O-Pin (ZENER_SWITCHED, Vorschlag von Per Hansson@EEVblog).
- Option zur Anzeige von Werten in eigener Farbe (UI_COLORED_VALUES, Vorschlag
von indman@EEVblog).
- �berpr�fung durch Precompiler, ob mehrere Anzeigemodule konfiguriert sind (
Vorschlag von Per Hansson@EEVblog).
- Unterst�tzendes Konfigurationsmanagement von config.h und config_<MCU>.h in
neue Headerdatei verschoben (config_support.h). Dabei ein paar zus�tzliche
Konfigurationspr�fungen erg�nzt. Problem mit fehlendem Text f�r SW_DHTXX
beseitigt (gemeldet von BroMarduk@EEVblog).
- Symbolbitmap f�r UJT zu Standardsymbolen verschoben.

v1.47m 2022-07
- Korrektur von verdrehten Widerstandssymbolen in font_8x12t_iso8859-2_vfp.h
und font_8x12t_iso8859-2_hf.h (gemeldet von b0hoon@EEVblog).
Expand All @@ -21,7 +51,7 @@ v1.47m 2022-07
- Neuer Symbolsatz 32x39, ideal f�r Zeichens�tze mit H�he von 26 Pixel (
SYMBOLS_32X39_HF, Dank an indman@EEVblog).
- Optionen zum Halten von ESR und Induktivit�t f�r C und L-Monitor (
SW_MONITOR_HOLD_ESR, SW_MONITOR_HOLD_L, Vorschlag von theHWcav@EEVblog).
SW_MONITOR_HOLD_ESR, SW_MONITOR_HOLD_L, Vorschlag von theHWcave@EEVblog).
- Zeichen�bersetzung f�r inverse Testpinnummern in Serial_Char() erg�nzt.
- ST7735-Treiber um Option f�r /RESX auf separatem Port erweitert (
LCD_RES_PORT, LCD_RES_DDR, nach Idee von lhlad@EEVblog).
Expand Down Expand Up @@ -108,7 +138,7 @@ v1.44m 2021-08
ralleeiner@mikrocontroller.net).
- �nderung der Entladefunktion: Bei einem Entladeproblem wird nun die
unbelastete Spannung des DUTs gemessen und von der Entlade-Fehlermeldung
angezeift, z.B. die unbelastete Spannung einer Batterie.
angezeigt, z.B. die unbelastete Spannung einer Batterie.
- Verdrehtes Diodensymbol f�r zweite Diode bei Ausgabe von anti-parallelen
Dioden korrigiert (gemeldet von horo@EEVblog).
- Option f�r low-aktives Backlight im HD44780-Treiber f�r PCF8574-I2C-Adapter
Expand Down
81 changes: 78 additions & 3 deletions firmware/Clones
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ DIY Kit "AY-AT" / GM328A
Hints:
- Some GM328A have an ST7735 semi-compatible display which won't run with the
standard ST7735 driver. On those modules the level shifter is followed by an
additional IC (U3). In this case use the Semi-ST7735 driver.
additional IC (U3, some MCU). In this case use the Semi-ST7735 driver.
- The model with a round PCB uses also an ST7735 semi-compatible display. This
one comes with a level shifter (CD4050) followed by a shift register (
74HC164) and some MCU on the main PCB. The display doesn't support high
SPI clock rates. So dont run the ATmega with any clock rate higher than 8MHz.

Hardware Options:
#define HW_ENCODER
Expand Down Expand Up @@ -275,6 +279,10 @@ Hardware Options:
#define FREQ_COUNTER_PRESCALER 16 /* 16:1 */
#define HW_ADJUST_CAP

Optionally with boost converter driver mod:
#define ZENER_SWITCHED
#define ZENER_BOOST_LOW /* low active */

Workarounds:
#define NO_HFE_C_RL /* if hFE values too high */

Expand Down Expand Up @@ -440,6 +448,10 @@ T3/T4
- settings provided by tom666@EEVblog
- LCD_RESET could be also PD0

Beware:
- Some newer T4 come with an APT32F172K8T6 (fake Atmel marking) instead of
an ATmega328. This MCU is not supported.

LCD module:
#define LCD_ST7565R
#define LCD_GRAPHIC /* graphic display */
Expand Down Expand Up @@ -472,20 +484,72 @@ Some T4 variants use a slightly different pin assignment for the display:

------------------------------------------------------------------------------

Multifunction Tester LCR-T5
- ATmega328, 8MHz clock
- ST7565 display (bit-bang SPI)
- settings provided by techie@EEVblog

Hardware Options:
#define HW_REF25

LCD module:
#define LCD_ST7565R /* display controller ST7565R */
#define LCD_GRAPHIC /* graphic display */
#define LCD_SPI /* SPI interface */
#define LCD_PORT PORTD /* port data register */
#define LCD_DDR DDRD /* port data direction register */
#define LCD_RESET PD2 /* port pin used for /RES (optional) */
#define LCD_CS PD5 /* port pin used for /CS1 (optional) */
#define LCD_A0 PD1 /* port pin used for A0 */
#define LCD_SCL PD3 /* port pin used for SCL */
#define LCD_SI PD4 /* port pin used for SI (data input) */
#define LCD_DOTS_X 128 /* number of horizontal dots */
#define LCD_DOTS_Y 64 /* number of vertical dots */
//#define LCD_OFFSET_X /* enable x offset of 4 dots */
//#define LCD_FLIP_X /* enable horizontal flip */
#define LCD_FLIP_Y /* enable vertical flip */
#define LCD_START_Y 0 /* start line (0-63) */
#define LCD_CONTRAST 25 /* default contrast 22 (0-63) */
#define FONT_8X8_VF /* 8x8 font */
#define SYMBOLS_24X24_VFP /* 24x24 symbols */
#define SPI_BITBANG /* bit-bang SPI */
#define SPI_PORT LCD_PORT /* SPI port data register */
#define SPI_DDR LCD_DDR /* SPI port data direction register */
#define SPI_SCK LCD_SCL /* port pin used for SCK */
#define SPI_MOSI LCD_SI /* port pin used for MOSI */

In case the LCD contrast doesn't work properly edit function LCD_Init() in
ST7565R.c and change

/* set contrast: resistor ratio 6.5 */
LCD_Cmd(CMD_V0_RATIO | FLAG_RATIO_65);

to

/* set contrast: resistor ratio 4.5 */
LCD_Cmd(CMD_V0_RATIO | FLAG_RATIO_45);

------------------------------------------------------------------------------

Multifunction Tester TC-1 and family (T7) with ATmega324/644
- ATmega324 (very poor pin assignment), 16MHz clock
later models may have an ATmega644
- ST7735 color display (bit-bang SPI)
- external 2.5V voltage reference (TL431)
- fixed IR receiver module
- boost converter for Zener check
(runs all the time, non-standard voltage divider 100k/12k)
(runs all the time, non-standard voltage divider 100k/12k,
no constant current source, just series resistor)
- fixed adjustment cap
(in case of problems replace MLCC with 220nF film cap)
- powered by Li-Ion cell 3.7V
- sample testers provided by jellytot@EEVblog and joystik@EEVblog
- initial information provided by indman@EEVblog

Beware:
- Some newer T7 come with an APT32F172K8T6 (fake Atmel marking) instead of
an ATmega328. This MCU is not supported.

Hints:
- Control MCU U4 (STC15L104W) needs to be replaced with a simple two-transistor
circuit (TC1-Mod, see source repository for TC1-Mod.kicad.tgz, 5�A standby
Expand All @@ -509,6 +573,8 @@ Hints:
PB5 (display's D/C) and PB6 (display's SDA).
- You can also get the frequency counter by using PB0 (T0) as input und
adding a simple input stage.
- In case the tester turns off suddenly after the first probing cycle try to
enable the workaround option PASSIVE_POWER_CTRL.
- PD0 solder bridge (open: pull-up, shorted: Gnd, unused by m-firmware)

Hardware Options:
Expand All @@ -526,6 +592,9 @@ Optionally:
#define ZENER_VOLTAGE_MIN 1000 /* min. voltage in mV */
#define ZENER_VOLTAGE_MAX 40000 /* max. voltage in mV */

Workarounds (if required):
#define PASSIVE_POWER_CTRL /* if tester turns off suddenly */

Power management settings:
#define BAT_DIRECT
#define BAT_OFFSET 0
Expand Down Expand Up @@ -605,13 +674,16 @@ Multifunction Tester T7 with ATmega328
/RESET line on separate MCU port
- fixed IR receiver module
- boost converter for Zener check
(runs all the time, about 26V, non-standard voltage divider 100k/12k)
(runs all the time, about 26V, non-standard voltage divider 100k/12k,
no constant current source, just series resistor)
- connector for serial TTL interface (J5, 5V)
- settings provided by lhlad@EEVblog (see https://gitlab.com/a11059/t7_328_m)

Hints:
- This model can't provide any signal output (PWM/squarewave/etc.).
- Purpose of additional MCU (STC15L104W) is unknown.
- In case the tester turns off suddenly after the first probing cycle try to
enable the workaround option PASSIVE_POWER_CTRL.

Hardware Options:
#define HW_ZENER
Expand All @@ -626,6 +698,9 @@ Optionally:
#define ZENER_VOLTAGE_MIN 500
#define ZENER_VOLTAGE_MAX 25500

Workarounds (if required):
#define PASSIVE_POWER_CTRL /* if tester turns off suddenly */

Power management settings:
#define BAT_DIRECT
#define BAT_OFFSET 0
Expand Down
Loading

0 comments on commit f2d7823

Please sign in to comment.