View previous topic :: View next topic |
Author |
Message |
marcomilazzo
Joined: 12 Oct 2005 Posts: 19
|
Posted: Mon Feb 01, 2021 4:32 pm Post subject: attiny816 uart problem |
|
|
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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Feb 01, 2021 4:37 pm Post subject: |
|
|
Code: | Config Sysclock = 16_20mhz , Prescale = 1
Config Com1 = 19200 , Mode = Asynchroneous , Parity = None , Databits = 8 , Stopbits = 1
|
_________________ Mark |
|
Back to top |
|
|
marcomilazzo
Joined: 12 Oct 2005 Posts: 19
|
Posted: Mon Feb 01, 2021 6:46 pm Post subject: attiny816 uart problem |
|
|
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 |
|
|
marcomilazzo
Joined: 12 Oct 2005 Posts: 19
|
Posted: Mon Feb 01, 2021 7:33 pm Post subject: attiny816 uart problem |
|
|
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 |
|
|
marcomilazzo
Joined: 12 Oct 2005 Posts: 19
|
Posted: Mon Feb 01, 2021 7:52 pm Post subject: attiny816 uart problem |
|
|
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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Feb 01, 2021 9:36 pm Post subject: |
|
|
hi Marco
yes long time ago. i will send you an email. Mine has not changed either btw
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 |
|
|
|