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)|(...
Sat. Apr 14, 2018 - 02:10 PM
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...
Sat. Mar 3, 2018 - 04:04 PM
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...
Mon. Feb 26, 2018 - 08:45 AM
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...
Sun. Feb 18, 2018 - 11:36 AM
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...
Thu. Feb 15, 2018 - 06:21 AM
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...
Tue. Jan 9, 2018 - 07:03 AM
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...
Thu. Dec 28, 2017 - 04:38 PM
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...
Tue. Dec 26, 2017 - 05:02 PM
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...
Tue. Dec 19, 2017 - 02:40 AM
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...
Thu. Oct 26, 2017 - 03:38 PM
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...
Thu. Oct 5, 2017 - 09:53 AM
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...
Mon. Sep 25, 2017 - 03:28 PM

Pages