Type in the full discussion title or a part of it.
Discussion Title Created date
register definition in MCU header file: PIC vs AVR
pic18f14k50.h: // Register: PORTC #define PORTC PORTC extern volatile unsigned char PORTC __at(0xF82); #ifndef _LIB_BUILD asm("PORTC equ 0F82h"); #endif...
Tuesday, 27 October 2020 - 05:59
need suggestion for wireless connection...
Till today, I used wired connections (USART, USB, I2C, SPI,...). I want to use wireless connection in my next project. I have some devices with some controls on them. If user...
Thursday, 22 October 2020 - 06:07
ATmega328P: 20MIPS or 16MISP?
Atmel 2015 datasheet for ATmega328P: Microchip 2020 datasheet for ATmega48A/PA/88A/PA/168A/PA/328/P: Which is true? Is it depending on date of manufacture? Or I can use...
Wednesday, 21 October 2020 - 08:52
do{ } while(0)???!!!
I found it in avr/wdt.h: #define wdt_disable() \ do { \ uint8_t temp; \ __asm__ __volatile__ ( \ "wdr" "\n\t" \ "out %[ccp_reg], %[ioreg_cen_mask]" "\n\t" \ "lds %[tmp...
Tuesday, 20 October 2020 - 07:57
pointer to array of strings
typedef struct { const char *title; const WHAT items; const uint8_t itemsCount; } myType; myType a = { "AVR FREAKS", WHAT, 2 } doSomething(a.items[1]);"...
Tuesday, 13 October 2020 - 15:26
convert C to C++ project
I'm design menus for my device. Each menu has a title, some main options and two menu-navigation options. Implementing such thing using OOP structure is really easy. So I...
Wednesday, 7 October 2020 - 12:58
Adjusting LCD contrast by PWM
I want to adjust LCD contrast using PWM. Waveform generated using a 8-bit timer running at 16MHz (no prescaler) in fast PWM mode. If I connect PWM pin directly to V0, sometimes...
Sunday, 4 October 2020 - 16:59
20x4 LCD: 2 rows on, 2 rows off
  I'm trying to simply display some text on a 20x4 LCD display. I did same thing many times before; however, this LCD has a strange behavior. It always shows below pattern....
Sunday, 4 October 2020 - 07:31
Spring in digital mutimeter
There is a spring on my digital multimeter PCB (DT-830B): It is really soft and weak so I don't think it is there to help opening back cover! Any idea?
Saturday, 11 July 2020 - 17:22
simple ammeter using a 5 volt ADC
I want to create a simple ammeter using a 5 volt ADC (for example mega avr internal ADC). If I pass the current through a low resistance and measure the voltage across...
Saturday, 1 February 2020 - 09:49
Accurate 8-bit timer using 16MHz crystal
I created a program that toggles an LED every 1 second. To achieve high accuracy, I used CTC mode in this way: 16MHz crystal (main MCU crystal oscillator), prescaler = 256, OCIE2A...
Monday, 20 January 2020 - 19:17
Optimize code for speed and power consumption
In a project, I want my code to be: 1)Accurate 2)fast 3)Power efficient (sorted by priority) I can use assembly but it is a little hard. Currently I'm using -O3 optimization level...
Sunday, 5 January 2020 - 15:50

Pages