Questions tagged [atmega16]

ATmega16 is one of Atmel's 8-bit AVR microcontrollers in the ATmega product range featuring 16KB programmable flash memory. Unless your question is specifically targeted towards ATmega16, consider using the more general [atmega] tag.

ATmega16 is one of 's 8-bit microcontrollers in the product range featuring 16KB programmable flash memory. Unless your question is specifically targeted towards ATmega16, consider using the more general tag.

96 questions
-2
votes
1 answer

Using atmega16 to reduce a DC motor speed with cytron md10c motor driver

So I have this DC motor which I want to reduce it's speed to 25% so obviously I used phase correct pwm to do so via the motor driver , I was able to do it through timer1 but my assistant professor wants me to do it with the 8-bit timer0 so I wrote…
-2
votes
2 answers

Convert C code to Assembly Code in ATmega8

I want to make a code about accurate delay library in ATmega8 with winAVR as the compiler, do you have any idea to convert the code below to assembly? I have no idea to convert the code, because I don't understand assembly. this is the code. static…
user3625159
  • 1
  • 1
  • 1
-2
votes
1 answer

converting atmega 32 code to atmega 16 code

my code is for atmega32 microcontroller for converting coordinates to nmea format how can i convert this to atmega16 code. since it is using atmega32 library files will this code work on atmega16 or some changes are required.... #include…
user3472271
  • 11
  • 1
  • 3
-3
votes
3 answers

how can merge one array values in one integer c++

How can i merge one array values in one integer and upside down? example: a[]=0b1011,0b1111 to 10111111 and 10010101 to b[]=0b1001,0b0101
-3
votes
2 answers

What is algorithm of converting 8 bit binary to 16 bit bcd?

What is algorithm of converting 8 bit binary to 16 bit BCD? for example: how can i do this? 1111 1111 (binary) -> 0000 0010 0101 0101
-4
votes
1 answer

C difference between char function(void) and void function(void)

For my thesis I'm using an ATmega16 to communicate with MCP2515 over SPI. When we are checking the example code to set up SPI as a slave mode in the Atmega16 datasheet we get next example code. void SPI_SlaveInit(void) { /* Set MISO output, all…
TMJ
  • 71
  • 1
  • 1
  • 7
1 2 3 4 5 6
7