I noticed in 1.40m and also 1.43m that when testing p-channel mosfets, the text which shows 123=GDS is correct, but the numbers on the drain and source symbol are swapped:
I noticed in 1.40m and also 1.43m that when testing p-channel mosfets, the text which shows 123=GDS is correct, but the numbers on the drain and source symbol are swapped:
I noticed in 1.40m and also 1.43m that when testing p-channel mosfets, the text which shows 123=GDS is correct, but the numbers on the drain and source symbol are swapped:
What firmware do you use for the MK328?
Alexander.
...Comments are welcome ...
In addition to what I wrote, using this version of AVR-GNUToolchain 3.4.4.24 allows you to get the most compact size of the firmware, which is especially important for the small amount of memory in ATMega328.
CFLAGS = -mmcu=${MCU} -Wall -I. -Ibitmaps
CFLAGS += -DF_CPU=${FREQ}000000UL
CFLAGS += -DOSC_STARTUP=${OSC_STARTUP}
CFLAGS += -gdwarf-2 -std=gnu99 -Os -mcall-prologues
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
CFLAGS += -flto
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
Nevertheless it would be interesting to see the corresponding Windows build sizes.
I have one finding with version 1.43m: when I measure two antiparallel diodes, e.g.:
1 --->|--- 2 (red)
1 ---|<--- 2 (infrared)
Shouldn't the picture look like below?
2 ---|<--- 1 ---|<--- 2
Shouldn't the picture look like below?
2 ---|<--- 1 ---|<--- 2
Shouldn't the picture look like below?
2 ---|<--- 1 ---|<--- 2
if (A <= 3) /* common anode or in-series */
{
Display_EEString(Diode_AC_str); /* show ->|- */
}
else /* common cathode */
{
Display_EEString(Diode_CA_str); /* show -|<- */
}
if (D2) /* second diode */
{
if (A == C) /* anti-parallel */
{
n = D2->A; /* get anode */
Display_EEString(Diode_CA_str); /* show -|<- */
}
else if (A <= 3) /* common anode or in-series */
{
n = D2->C; /* get cathode */
Display_EEString(Diode_AC_str); /* show ->|- */
}
else /* common cathode */
{
n = D2->A; /* get anode */
Display_EEString(Diode_CA_str); /* show -|<- */
}
...
--- main.c.orig 2021-03-08 19:54:05.000000000 +0100
+++ main.c 2021-05-08 11:02:36.838944180 +0200
@@ -910,26 +910,20 @@
if (D2) /* second diode */
{
- if (A <= 3) /* common anode or in-series */
- {
- Display_EEString(Diode_AC_str); /* show ->|- */
- }
- else /* common cathode */
- {
- Display_EEString(Diode_CA_str); /* show -|<- */
- }
-
if (A == C) /* anti parallel */
{
n = D2->A; /* get anode */
+ Display_EEString(Diode_CA_str); /* show -|<- */
}
else if (A <= 3) /* common anode or in-series */
{
n = D2->C; /* get cathode */
+ Display_EEString(Diode_AC_str); /* show ->|- */
}
else /* common cathode */
{
n = D2->A; /* get anode */
+ Display_EEString(Diode_CA_str); /* show -|<- */
}
Display_ProbeNumber(n); /* display pin */
@Markus: did you consider to move also your source code development into github - beside your Warehouse? This would it make easier for contributors to follow the development between version releases?
@Markus: did you consider to move also your source code development into github - beside your Warehouse? This would it make easier for contributors to follow the development between version releases?
Maybe some day in the future, but not at the moment.
/*
* ST7565R
* - SPI interface using hardware SPI
* - settings for Electronic Assembly EA DOGM/DOGL128-6
*/
#if 0
#define LCD_ST7565R /* display controller ST7565R */
#define LCD_GRAPHIC /* graphic display */
#define LCD_SPI /* SPI interface */
/* control and data lines */
#define LCD_PORT PORTB /* port data register */
#define LCD_DDR DDRB /* port data direction register */
#define LCD_RESET PB4 /* port pin used for /RES (optional) */
//#define LCD_CS PB2 /* port pin used for /CS1 (optional) */
#define LCD_A0 PB5 /* port pin used for A0 */
#define LCD_SCL PB6 /* port pin used for SCL */
#define LCD_SI PB7 /* port pin used for SI (data input) */
/* display settings */
#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 3 /* default contrast (0-63) */
/* font and symbols: vertically aligned & flipped, bank-wise grouping */
//#define FONT_6X8_VF /* 6x8 font */
//#define FONT_8X8_VF /* 8x8 font */
//#define FONT_8X16_VFP /* 8x16 font */
//#define FONT_6X8_ISO8859_2_VF /* 6x8 Central European font */
#define FONT_8X8_ISO8859_2_VF /* 8x8 Central European font */
//#define FONT_8X12T_ISO8859_2_VFP /* thin 8x12 Central European font */
//#define FONT_8X16_ISO8859_2_VFP /* 8x16 Central European font */
//#define FONT_8X8_WIN1251_VF /* 8x8 cyrillic font */
//#define FONT_8X8ALT_WIN1251_VF /* 8x8 alternative cyrillic font */
//#define FONT_8X8T_WIN1251_VF /* thin 8x8 cyrillic font */
//#define FONT_8X12T_WIN1251_VFP /* thin 9x12 cyrillic font */
//#define FONT_8X16_WIN1251_VFP /* 8x16 cyrillic font */
#define SYMBOLS_24X24_VFP /* 24x24 symbols */
/* SPI bus */
//#define SPI_HARDWARE /* hardware SPI */
#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 */
#endif
/*
* ST7735
* - 4 wire SPI interface using hardware SPI
*/
//#if 0
#define LCD_ST7735 /* display controller ST7735 */
#define LCD_GRAPHIC /* graphic display */
#define LCD_COLOR /* color display */
#define LCD_SPI /* SPI interface */
/* control and data lines */
#define LCD_PORT PORTB /* port data register */
#define LCD_DDR DDRB /* port data direction register */
#define LCD_RES PB5 /* port pin used for /RESX (optional) */
//#define LCD_CS PB3 /* port pin used for /CSX (optional) */
#define LCD_DC PB4 /* port pin used for D/CX */
#define LCD_SCL PB7 /* port pin used for SCL */
#define LCD_SDA PB6 /* port pin used for SDA */
/* display settings */
#define LCD_DOTS_X 128 /* number of horizontal dots */
#define LCD_DOTS_Y 160 /* number of vertical dots */
//#define LCD_OFFSET_X 4 /* enable x offset of 2 or 4 dots */
//#define LCD_OFFSET_Y 2 /* enable y offset of 1 or 2 dots */
//#define LCD_FLIP_X /* enable horizontal flip */
//#define LCD_FLIP_Y /* enable vertical flip */
//#define LCD_ROTATE /* switch X and Y (rotate by 90°) */
//#define LCD_BGR /* reverse red and blue color channels */
//#define LCD_LATE_ON /* turn on LCD after clearing it */
/* font and symbols: horizontally aligned & flipped */
//#define FONT_10X16_HF /* 10x16 font */
//#define FONT_6X8_ISO8859_2_HF /* 6x8 Central European font */
#define FONT_8X8_ISO8859_2_HF /* 8x8 Central European font */
//#define FONT_10X16_ISO8859_2_HF /* 10x16 Central European font */
//#define FONT_8X16_WIN1251_HF /* 8x16 cyrillic font */
//#define FONT_8X16ALT_WIN1251_HF /* 8x16 alternative cyrillic font */
#define SYMBOLS_30X32_HF /* 30x32 symbols */
/* SPI bus */
//#define SPI_HARDWARE /* hardware SPI */
#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_SDA /* port pin used for MOSI */
//#endif
Code: [Select]#define LCD_RES PB5 /* port pin used for /RESX (optional) */
#define LCD_DC PB4 /* port pin used for D/CX */
#define LCD_SCL PB7 /* port pin used for SCL */
#define LCD_SDA PB6 /* port pin used for SDA */
I already connected the LCD_CS to the PB3 and I had a white screen all the time without even showing the firmware version.
I try PB5 for LCD_DC and PB7 for LCD_SDA.