All Questions
48
questions
-1
votes
1
answer
127
views
Serial AVR programming and doubts
I currently have Attiny85 , attiny45 , atmega328 , 8051 MCU .
I want to program them in a chipless method ( which doesn't use any intermediate chips to burn program or bootloader ) - this is like a ...
0
votes
1
answer
179
views
Unsigned int values gives negative number above the halfway point of max byte value?
MCU: Atemga328P: Datasheet:https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf
Note: I am a beginner :)
Considering a 2 byte ...
2
votes
2
answers
208
views
Simulate Shift Register on AVR (Configurable Logic/Timers?)
Recently I set up two MCUs (ATtiny1616) to perform basic serial communication using shift registers I made myself.
simulate this circuit – Schematic created using CircuitLab
Here is the logic ...
0
votes
0
answers
55
views
MEGA2560 only starts program after pressing RESET button multiple times
I am working on a program where I am controlling an MP3 player by using UART between my MEGA2560 and the MP3 player. The MEGA2560 sends serial commands to the MP3 player when external interrupts are ...
1
vote
2
answers
2k
views
How to disable arduino Hardware Serial Rx Interrupt Properly
Intro:
I have an Arduino mega doing multiple tasks , from which A function Reads data from a sensor using SPI . Every like 10,000 read or something , i get 1 error bit in the SPI data . and I have ...
4
votes
3
answers
1k
views
Is the ATMEGA328P's serial baud rate quantised?
I'm using an ATMEGA328p, running from its internal oscillator (divided by 8 = 1MHz).
I've (roughly) measured the oscillator output, using my Salae logic analyser, as ranging from 960KHz to 1000KHz, ...
0
votes
1
answer
3k
views
I can't flash my new ATMega328p with PL2303 USB-TTL converter
I've soldered my ATMega328p-au to a SMD to DIP board, and I've connected pins like this:
USB | ATMega
RX ---> TX
TX ---> RX
5v ----> 5v
GND -> GND
and GND --> button --> RESET
My USB-TTL converter ...
1
vote
1
answer
315
views
Binary Display with LEDs
I tried an example of code to display serial output on an array of LEDs.
...
0
votes
2
answers
561
views
Clarification on using software serial with AVR's
Arduino appears to be able to use software serial on any pins you choose. I am trying to test the same scenario on an atMega128 however, all of the examples and notes I find require using the RX pin ...
1
vote
1
answer
972
views
AVR: Serial communication gives strange characters
I am having some serious problems trying to get the serial monitor to output the correct characters. I have looked over a lot of the posts with similar problems, but nothing seems to solve it.
I am ...
4
votes
3
answers
4k
views
Serial Output returns wrong ASCII
I am using a FTDI cable and connected it with my mac. I can connect successfully with my serial terminal on my mac via the cable and can input text on my keyboard to be transmitted to the AVR. When ...
0
votes
0
answers
162
views
Serial Output AVR ATMEGA328p [duplicate]
I am learning about AVR programming via the "Learning AVR Programming". Going through chapter Serial Communication, I am stuck with a small issue.
The setup is like this:
The AVR Pins:
I am using ...
0
votes
1
answer
416
views
AVR UART message sync and decoding
I have an ISR putting in bytes from the UART on an AVR XMEGA into a circular buffer. Every byte received, also increments RX_COUNT. I copy the circular buffer into a local buffer if it is at least two ...
4
votes
2
answers
564
views
Microcontroller sending garbage to Raspberry
I'm trying to send two commands to my raspberry over serial. I have the following code:
...
1
vote
1
answer
317
views
UART with PC : Reciving absurd characters in PC
I am working on a project using Atmega16 micro-controller of AVR family. I am using UART for my project. I need to send data to my PC AT 9600 baud rate via an USB-TTL converter and view the data using ...