Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Atxmega32e5

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

Bascom Member



Joined: 10 Nov 2010
Posts: 89
Location: The Netherlands

netherlands.gif
PostPosted: Sun Apr 12, 2015 10:37 am    Post subject: Atxmega32e5 Reply with quote

Hello,

For A new design is want to use the Atmega32e5-au

Is the Atmega32e5-au supported?

Witch DAT File must i Select for this cpu?

Reguards,
Tiny

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 907
Location: France

france.gif
PostPosted: Sun Apr 12, 2015 5:56 pm    Post subject: Reply with quote

hello,
you must use xm32E5def.dat, I test the Atmel module . It works but finally, I go back to the Arduino M2560
JP Wink
Back to top
View user's profile Visit poster's website
Tiny

Bascom Member



Joined: 10 Nov 2010
Posts: 89
Location: The Netherlands

netherlands.gif
PostPosted: Sun Apr 12, 2015 6:04 pm    Post subject: Reply with quote

Thankx JP Cool
Back to top
View user's profile Visit poster's website
Tiny

Bascom Member



Joined: 10 Nov 2010
Posts: 89
Location: The Netherlands

netherlands.gif
PostPosted: Wed May 06, 2015 9:06 pm    Post subject: Reply with quote

I want to use both the uarts on portD, but de compiler give a error "uart is not available " on com4

The second problem i get is how to calibrate the 32mhz internal clock?
i get a error "Error : 41 Line : 158 Variable can not be used with SET [DFLLRC2M_CTRL]

regard Tiny


Code:

'*******************************************************************************

$regfile = "xm32E5def.dat"
$crystal = 32000000                                         '32MHz
$hwstack = 60
$swstack = 30
$framesize = 30

Config Submode = New


'*******************************************************************************
'  Config Clock
'*******************************************************************************

Config Osc = Enabled , 32mhzosc = Enabled , 32khzosc = Enabled

Osc_dfllctrl = &B00000000

'Enable DFLL and autocalibration
Set Dfllrc2m_ctrl.0
Set Dfllrc32m_ctrl.0

Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1

'*******************************************************************************
'  Config compoort
'  Com4 as direct serial port to main cpu
'  Com3 as RS485 bus communication port
'*******************************************************************************

Config Com4 = 115200 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8
Open "COM4:" For Binary As #3

Config Com3 = 19200 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8
Config Portd.1 = Output                                     ' Dir rs485
Config Print = Portd.1 , Mode = Set

 
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4925
Location: Holland

blank.gif
PostPosted: Wed May 06, 2015 9:26 pm    Post subject: Reply with quote

- DFLLRC2M_CTRL : this register is not available in this chip so you can not set it. The fact that the IDE does not color this register gives that away too.
- the config comx in the help shows the map of the usarts. use com1 and com3 since only usartc0 and usartd0 exists in this chip!

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

Bascom Member



Joined: 10 Nov 2010
Posts: 89
Location: The Netherlands

netherlands.gif
PostPosted: Wed May 06, 2015 9:39 pm    Post subject: Reply with quote

Oke thats clear,

how do i calibrate the internal 32mhz clock then ?

regard Tiny
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