Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
92 views

PCA9685 atmel studio library undefined reference

so I'm starting up a new project and trying to use a PCA9685 chip with an ATMEGA48PB. I use the following library: https://github.com/prestonsn/PCA9685-Multi-Channel-Servo-Controller-Driver-for-AVR-...
Jack's user avatar
  • 1
-1 votes
1 answer
62 views

Result of adding numbers in AVR MCU is not corrext

I program the BMP280 sensor (pressure and temperature sensor) with the AtMega32. One of the elements of measuring with a sensor is the conversion of the "raw" value into a "human ...
Mavimix's user avatar
  • 179
-3 votes
1 answer
840 views

why does occurs this error :"undefined symbol:_i2c_port" in codevision AVR compiler?

I want to drive a si4734_D60 as a FM receiver by atmega8 through I2C. After compiling the code by'codevision AVR 3.12 advanced', No error occurs in "C" code but at last this error is ...
sajad's user avatar
  • 29
2 votes
1 answer
759 views

I2C not reading

I'm trying to interface with a BNO055 breakout board from a Teensy 2.0, but I'm having trouble reading from the BNO055. It has different registers that you can access to read data from the chip. To ...
CaseyB's user avatar
  • 25.1k
0 votes
1 answer
290 views

Proteus I2C debugger sends additional byte with right shift, but ATmega32 gets left shifted one

ATmega32 should work as a slave for collecting data and GPIO control. I2C parcel should look like S (address) (register) ([value] )P But if I send P condition after register specifying, Proteus ...
D0ct0rD's user avatar
  • 11
1 vote
1 answer
982 views

MAX17205(fuel gauge) Issue with COPY NV BLOCK [E904h]

from last 2 weeks I am trying to integrate an IC MAX17205 (Fuel Gauge) on arduino mega 2560. In that I am able to read and write registers but whenever I try to copy the content of Shadow RAM to Non ...
Nilesh Pal's user avatar
0 votes
1 answer
279 views

AVR I2C trouble

I am trying to communicate using I2C with AT90CAN128, But it is not going further than following while loop: while(!(TWCR & (1<<TWINT))); It remains in the while loop. According to me, it ...
Navreet kaur harika's user avatar
0 votes
1 answer
696 views

AVR Atmega168 I2C LCD does not want to initialize

I'm using I2C converter to send data to my lcd. The converter is based on PCF85741, and the lcd is Hitachi hd44780. Port mapping between PCF85741 and lcd is as follows: P0 -> RS P1 -> RW ...
bielu000's user avatar
  • 2,241
0 votes
1 answer
2k views

AVR TWI (I2C) problem: Operand 1 out of range

I´m using Atmega2560 and 24c16A EEPROM for testing an I2C code. For every state transition, controller responds by changing the status register TWSR. After start condition is transmitted, EEPROM ...
jsuarezbaron's user avatar
0 votes
1 answer
421 views

AVR: main()/ISR interference

I'm using I2C on an ATmega168 (slave) in C (compiling with avr-gcc), but this might be a general question about interrupts. In my C program I have a global variable of type uint8_t i2c_buffer[32] ...
Sim Son's user avatar
  • 305
1 vote
1 answer
166 views

Master and slave transceivers

For a uni assignment I need to use I2C/TWI to be able to communicate with an slave device both ways. The master needs to receive and transmit, and same for the slave. However, I am lost on how to ...
L Ja's user avatar
  • 1,526
2 votes
1 answer
1k views

I2c communication between ATMega328P and ESP8266ex can only send 8 bytes, bug?

I am developing an I2C bridge that enables me to virtual extend the pins available on the ESP8266ex in an 'intelligent' manner. The ESP8266ex is nice however has less usable pins. It looks like the ...
Codebeat's user avatar
  • 6,620
0 votes
1 answer
89 views

Using I2C_master library AVR

I am using I2C_master library for AVR, Communication works fine, but I have little problem, how can I get data. I am using this function uint16_t i2c_2byte_readReg(uint8_t devaddr, uint16_t regaddr, ...
Daniel Barvík's user avatar
0 votes
2 answers
1k views

ATtiny85 I2C SSD1306 screen not working

I have been on this issue for more than 3 days now after I got my SSD1306 I2C in the mail. I have a Tiny Programmer from Sparkfun, which I use with a breadboard. This is my pin layout: pin2-->SDA, ...
deathwillcome800's user avatar
0 votes
1 answer
508 views

TWI on ATMega 2560 wait's in infinity loop

I get some stupid error's if I want to try initialise the connection from the TWI master to the bus. The start condition will be send but the processor waits in the infinity loop bevor starting to ...
FoxPixel's user avatar
  • 101

15 30 50 per page