Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

attiny816 uart problem

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
marcomilazzo

Bascom Member



Joined: 12 Oct 2005
Posts: 19

blank.gif
PostPosted: Mon Feb 01, 2021 4:32 pm    Post subject: attiny816 uart problem Reply with quote

Hi
how do i set the baud in the attiny816 micro?
$baud returns error

$regfile = "atXtiny816.dat"
$hwstack = 40
$swstack = 16
$framesize = 24

$crystal = 4000000

Config Sysclock = 16 , Prescale = 4

$baud=9600 ' .EQU not found, probably using functions that are not supported by the selected chip [UBRR]

thank's for any help

marco

(BASCOM-AVR version : 2.0.8.3 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon Feb 01, 2021 4:37 pm    Post subject: Reply with quote

Code:
Config Sysclock = 16_20mhz , Prescale = 1

Config Com1 = 19200 , Mode = Asynchroneous , Parity = None , Databits = 8 , Stopbits = 1
 

_________________
Mark
Back to top
View user's profile Visit poster's website
marcomilazzo

Bascom Member



Joined: 12 Oct 2005
Posts: 19

blank.gif
PostPosted: Mon Feb 01, 2021 6:46 pm    Post subject: attiny816 uart problem Reply with quote

hi mark
nice to hear you after so much time !!
do you have an email
mine is always the same

is it possible to use the attiny816 at 115200 baud with 3.3v ?
can you send me a complete example ?
i need to use the uart
marco
Back to top
View user's profile
marcomilazzo

Bascom Member



Joined: 12 Oct 2005
Posts: 19

blank.gif
PostPosted: Mon Feb 01, 2021 7:33 pm    Post subject: attiny816 uart problem Reply with quote

Config Com1 = 19200 , Mode = Asynchroneous , Parity = None , Databits = 8 , Stopbits = 1
error Error : 86 Line : 37 Invalid parameter for CONFIG parameter or value [ASYNCHRONEOUS] , in File : C:\Users\Marc\Documents\example5.bas
Back to top
View user's profile
marcomilazzo

Bascom Member



Joined: 12 Oct 2005
Posts: 19

blank.gif
PostPosted: Mon Feb 01, 2021 7:52 pm    Post subject: attiny816 uart problem Reply with quote

hi mark

i think i must buy the addon . correct ?
no problem if it's the limitation
if so i suggest an error were it says to get the addon

marco
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon Feb 01, 2021 9:36 pm    Post subject: Reply with quote

hi Marco

yes long time ago. i will send you an email. Mine has not changed either btw Very Happy
the one you use for the forum does not work however. you best update it. otherwise the forum will not send you emails when a topic is replied to.

anyway, yes, you are right, you need the add on otherwise you get an error. and indeed i best add a more meaningful description.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum