1
vote
0answers
74 views

How to get rid of “Invalid opcode 0x002A at PC=0x004” in ISIS Proteus?

I have used ATmega 8 and have simulated a circuit to use interrupts, when i give an external interrupt i.e. when a push button is pressed all the LEDs connected to PORTB supposed to be lit up, but i ...
1
vote
2answers
279 views

how to check SPI signals

I am working with ATmega32-A micro controller. I am trying to read ADC (AD7798) values. I am setting ADC registers as shown below. Images also attached. ...
2
votes
4answers
482 views

ADC registers setup using spi communication

I'm new to microcontrollers - I'm trying to read external ADC values from an AD7798 ADC using SPI communication. Initially I have to setup some ADC registers - some registers are not configured. To ...
-1
votes
1answer
159 views

Loop across ports (avr)

I am trying to scan a key matrix that is 9 rows long. Currently my code is a bunch of if statements, one per row, and I would like it get it down to a small if loop. I don't think I can put PINB, ...
2
votes
3answers
542 views

Help a beginner who wants to start microcontroller coding

I see lot of chip from Atmel company like AT89C2051,AT89S52,Atmega32,P89V51RD2. Suppose I write a code for Atmega32 which blink one LED after 10 milliseconds. Can I use the same code for AT89C2051, ...
1
vote
1answer
956 views

LCD driver code for interfacing LCD 16*2 with ATmega8

I'm new in Embedded systems I write this code and tried to compile it in "AVR Studio" but I have one error and I can't correct it the error is :"expected declaration or statement at end of input" and ...
1
vote
2answers
2k views

SPI on ATtiny13

My understanding of the ATtiny13 datasheet is that although you can ISP the micro via "SPI" it actually doesn't have the functionality to operate on an SPI bus with other devices (at least not in ...