Continue to Site

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.

attiny2313 serial interface with baudrate 115200

Status
Not open for further replies.

acus

Junior Member level 1
Joined
Sep 7, 2005
Messages
17
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,402
attiny2313 serial

pleasee anyone help me.. i want to build project wih attiny2313 serial comunication with baudrate 115200 heres some example:

$regfile = "attiny2313.dat"
$crystal = 20000000

$baud = 115200

Dim Cr As Byte
Cr = &H0D


Config Com1 = 115200 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0

Waitms 5

Print "acus kasep pisan" ; Chr(cr);

End

i have test with avr simulator and works fine but if i conect with pc (hyperterminal) it's not working. the result is not "acus kasep pisan"

any solution...? i try with crystal external 4mhz,20mhz still not working...
 

attiny2313 project

I think it is the problem with fuse bits. Default frequency of most of atmega uC are 1mhz, so if you are using 115.2kbps, see the error. If it is .2% then it is ok. Read fuse bits and program fuse bits for external crystal. Since it is not working for 4mhz and 20mhz, it is almost sure that fuse bits is the problem. See this link to know about setting fuse bits
**broken link removed**


Bibin John
www.bibinjohn.tk
 

attiny2313 baudrate

thanks for reply @yogi.. i'm snewbie in avr... how to setup the fuse bit for external crystall in bascom..??
 

attiny13 serial

it depends on the programmer, not to do with bascom. See how i had done, and do the same with refering to your datasheet, just set lfuse and hfuse

Bibin John
www.bibinjohn.tk
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top