Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Register Descriptions MCU Control

 
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: 95
Location: The Netherlands

netherlands.gif
PostPosted: Tue Aug 31, 2021 3:30 pm    Post subject: Register Descriptions MCU Control Reply with quote

Hello,

Is there a possibility to read device ID and revision from a Atxmega32a4u in Bascom code
in the MCU control register there are DEVID0, DEVID1, DEVID2 and REVID

Regards,
Tiny


(BASCOM-AVR version : 2.0.8.4 )
Back to top
View user's profile Visit poster's website
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 757

poland.gif
PostPosted: Tue Aug 31, 2021 5:27 pm    Post subject: Reply with quote

I think you can easly read them like any other register because addresses for them are included in DAT files.
Simply Dim Helpb As Byte and then Helpb = MCU_DEVID0 or MCU_DEVID1 or MCU_DEVID2 and MCU_REVID.

Back to top
View user's profile Visit poster's website
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2136

netherlands.gif
PostPosted: Tue Aug 31, 2021 8:32 pm    Post subject: Reply with quote

I'm not sure you can read those bytes this way. what i understand the production signature row is in a separate memory section.

Have a look at the Readsig statement, this would do the job.

_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 757

poland.gif
PostPosted: Wed Sep 01, 2021 6:55 am    Post subject: Reply with quote

Now this is a tested info Very Happy Reading ID and REV is simple. In signature you dont get such info.

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

Bascom Member



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

netherlands.gif
PostPosted: Wed Sep 01, 2021 7:38 am    Post subject: Reply with quote

Thankx EDC,

it works

Regards,
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