Type in the full discussion title or a part of it.
Discussion Title Created date
Configuring EICR after sei() changes the behavior
I was working on external interrupt. The code below works fine and LED toggles at the rate of 3000 msec ON time and 500 msec OFF time. But if  EICRA|=((1<<ISC00)|(...
Saturday, 14 April 2018 - 14:10
Detecting I2C LCD address automatically
Based on part number of PCF8574 , there are two default addresses possible for PCF8574 based serial module such as 0x7E or 0x4E. So I thought of detecting the address...
Saturday, 3 March 2018 - 16:04
Sharing IO ports for Keypad and LCD Display
I have IO pin scarcity. Thinking of sharing IO ports PC0 to PC3 between JHD162A based LCD display data lines and Keypad in Atmega328P-AU. Attached is the schematic (Only outline...
Monday, 26 February 2018 - 08:45
Generic read switch function based on Active High/Low configuration
Sorry, this could be a silly question in this forum. But not able to find easy method. I would like to configure my switch input type as either active high or active low. I need a...
Sunday, 18 February 2018 - 11:36
code size of single liner set/reset bits operation is more than the separate set/reset operations
In the two operations below, I observed that the code size of single line operation on setting and clearing bits on DDRB is more than the operation made in two lines. I could not...
Thursday, 15 February 2018 - 06:21
Structure parameter getting corrupted
I have around 21KB code running on Atmega328P (Ebay CH340 based Nano board) compiled using Atmel's avr8-gnu-toolchain. Today I noticed some strange problem. I have the below...
Tuesday, 9 January 2018 - 07:03
What is the behavior if ISR is not written
Assume that the condition is satisfied for an interrupt to occur and interrupt is enabled along with I bit. What will happen if ISR is not written? Is the behavior is undefined or...
Thursday, 28 December 2017 - 16:38
Tx pin of Arduino Nano Ch340 version powering other board
I had just connected Tx pin of nano board A  to Rx pin of nano board B. To my surprise, board B was powered and it was fully operational when I connected Gnd. Not sure how...
Tuesday, 26 December 2017 - 17:02
Data Truncation/Conversion Issues
I know this is going to be a silly question here. But for some reason I am stuck and unable to proceed. In the code below, I am unable to set PWM based on the data sent from...
Tuesday, 19 December 2017 - 02:40
Issues in driving servo through ULN2003A
I was driving SG90 servo motor directly from Arduino Nano board and had some issues of LCD flicker. So I thought it could be due to max current issues and changed the circuit to...
Thursday, 26 October 2017 - 15:38
Slave extending SCL Low
I was looking at the datasheet of Atmega328P. According to section 22.3.5  22.3.5 Combining Address and Data Packets into a Transmission A transmission basically consists of...
Thursday, 5 October 2017 - 09:53
PWM on OC0B in Timer0 CTC Mode
In below code, I am trying to generate PWM on OC0B pin (PD5) in timer0 CTC mode. I am getting only high output. Unable to makeout the problem. I am using COMP_A ISR to clear the...
Monday, 25 September 2017 - 15:28

Pages