Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Microcontrollers (MCU)

Microcontrollers (MCU) Application and programming of MCUs, Evaluation Kits and Demonstration Boards, Programmers.

Thread Tools Search this Thread
Old 07-03-2017, 02:46 PM   #1
Join Date: Nov 2013
Posts: 42
rapid is on a distinguished road
Default Atmega328 RX and TX uart Problems

I have a problem with my project.
I have Arduino sending 1 & 0 to the bluetooth module, which sends data to another module.
Well, my oscilloscope proves to me that I get the data on the 2nd module, but they could not read it.
I have a standalone atmega328 TQFP connected to the RX and TX pins of the second module, but it seems that Atmega328 does not recognize the data.
I connected RX & TX to PB0 and PD7, which are both PCINT outputs. They should be tied to PCINT contacts, which should do the trick to the right ???

Softwareserial mySerial(7,8); // already tried to change them

void setup(){
mySerial.begin(115200); // everything is set to 115200
DDRB = 0x00000010;

void loop(){
PORTB = 0b00000010;
rapid is offline   Reply With Quote
Old 07-17-2017, 01:30 PM   #2
Senior Member
Join Date: Oct 2013
Posts: 131
symbol is on a distinguished road

Clock source? Asynchronous serial (UART) depends on the baud rate of the receiver and transmitter to be within 5% or so. If one of the sides is using a low quality clock source (like internal RC oscillator) or if the clock frequency is not a nice multiple of the baud rate, then they can be too far off.
symbol is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DS18B20 problems Raspberry Pi diksha.k Microcontrollers (MCU) 0 05-16-2017 06:16 PM
ATmega328 High Voltage Programming DRN_231 Microcontrollers (MCU) 1 05-16-2017 06:12 PM
UART Atmega128 is not working Anatoly Microcontrollers (MCU) 5 01-25-2016 09:13 AM
Questions about UART communication tracert Microcontrollers (MCU) 1 12-06-2015 06:07 PM
PIC32 and I2C EEPROM interface problems symbol Microcontrollers (MCU) 0 08-01-2015 11:12 AM

All times are GMT. The time now is 07:28 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus