Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ATmega328p usart problem

Status
Not open for further replies.

fm101

Member level 3
Joined
Apr 13, 2020
Messages
57
Helped
0
Reputation
0
Reaction score
4
Trophy points
18
Activity points
400
hi, I have problem with ATmega328p USART(reading message on PC terminal sent by atmega328p). Followings are diagnostics.

- works with 11.0592MHz external crystal oscillator
- works with 8MHz internal RC oscillator
- code works as evident from working successfully with 11.0592MHz and 8MHz int. osc test
- no problem in terminal baud rate and other settings
- no problem with UBRR value(taken from datasheet)
But,
- does not work with 16MHz and 4MHz external crystal oscillator

Also, I am using USB to TTL converter.

What else besides above can i look for and do to test?

thanks
 
Last edited:

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
22,213
Helped
4,609
Reputation
9,234
Reaction score
4,868
Trophy points
1,393
Activity points
146,756
Hi,

Forum rules say:
Only you know what "doesn't work" means
Please tell us what your circuit or code is supposed to do and why it "doesn't work".When you come in and say "it doesn't work" or just "it has errors", that means NOTHING. There could be a million things wrong and no one will know where to look.

Klaus
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
50,060
Helped
14,505
Reputation
29,280
Reaction score
13,448
Trophy points
1,393
Location
Bochum, Germany
Activity points
287,593
Did you verify that the processor is executing code at all?

Due to lack of detail information, we can't check the processor configuration. Provided it's correc, there could be a problem with the crystal or external oscillator components. Utimately you'd check the actual baud rate with an oscilloscope.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top