Tagged Questions
1
vote
1answer
37 views
How to flash error if a macro is not defined in program
I want my program to flash compile time error like "LCD_PORT not defined" if it is not defined in program itself. For that I modified the header file like this
...
1
vote
0answers
77 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 ...
2
votes
1answer
183 views
ATMega168 SPI tranmission will not start
Scenario
I have an ATMega168 using an external 10MHz crystal. The DIV/8 fuse bit is not set. The processor takes the outputs from 4 quadrature rotary encoders. Their rotation direction information is ...
4
votes
2answers
134 views
Turn on and let LED stay on if value is over threshold in main while-loop
I'm totally stuck with this rather trivial (?) problem, i've got this pseudo code that i will convert to C (i'm programming a ATmega8 MCU):
...
1
vote
2answers
288 views
16x4 lcd not desplaying anything
I am trying to interface a 16x4 lcd with an atmega32 chip. I wrote the following code which used to work for 16x2 lcd
...
1
vote
1answer
568 views
Converting from int to string for AVR ATmega32
I am trying to read data from the ADC and display it on a HD44870 compatible LCD with an ATmega32. As the data from the ADC is a 10-bit unsigned integer, the LCD expects a string, some conversion is ...
3
votes
2answers
331 views
Can't set to Fast PWM OCRA mode
Trying to have Fast PWM mode when TOP == ORCA.
Works fine with OCA toggle (measuring correct frequency), but doesn't work in ...
1
vote
1answer
289 views
UART Communication Issues
I am using a UART to communicate with RS232 on a Roving Networks RN-42 SM bluetooth module. I have the transmitter and receiver connected to a logic analyzer.
The issue that I am having is that my ...
3
votes
2answers
598 views
Atmega32 + LCD displays nothing
I'm trying to write a program in C to display text on this LCD, for some reason it displays nothing at all. I followed this tutorial on youtube and used my schoolbook (I recently started studying ...
-1
votes
1answer
221 views
what can be c or avr studio code for potentiometer binary voltage reading using adc of ATmega 88 [closed]
By setting potentiometer we have to check the led's at the output of the atmega 88.That is, if we rotate the potentiometer it will give some voltage variation on leds as output.As i am new to ...
2
votes
1answer
240 views
counter giving erratic results for frequency measurement using Atmega32
I am using a photosensor which gives output as a square wave. The frequency of this square wave is being measured using Atmega32A with 1MHz clock. The full scale output of sensor is 500kHz.
The ...
2
votes
2answers
770 views
How to pass string for EEPROM write for ATMega32? (in the following code)
How could I pass a string for EEPROM write first and read in the code as:
...
8
votes
5answers
3k views
Start off with embedded C with ATmega32 (ATmega AVR series)
I have a ATmega32 board laying around and I figure it would be perfect to start off with microcontrollers. I once did some babbling in embedded C (thats when I got this board) but the flow was stopped ...