Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ADC1 & xtiny (ATTINY3217)

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

Bascom Member



Joined: 15 Jul 2020
Posts: 11

slovenia.gif
PostPosted: Fri Aug 14, 2020 10:43 am    Post subject: ADC1 & xtiny (ATTINY3217) Reply with quote

ATtiny3217 has 2 ADCs (ADC0 and ADC1). In xtiny Bascom "Config ADC0" works and "Config ADC1" is not even recognized. How can I now configure ADC1 (I need to read voltage on pin 19 (ADC1/AIN8))?

"Getadc (n)" command now gives ADC0 value where "n" is from 0 to 11 (mux position). What is the syntax to read from desired pin 19 with ADC1?


P.S. "Getadc (100)" also compiles with no errors reported....I suppose this is not right isn't it?

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

Administrator



Joined: 09 Apr 2004
Posts: 5093
Location: Holland

blank.gif
PostPosted: Fri Aug 14, 2020 10:52 am    Post subject: Reply with quote

you need to wait for the update. the first release only covers the hardware found in xtiny816.
multiple devices are not supported.
like i wrote on the add on page 'you can expect some updates'.
but the good news is that there will be an update for the add on in a few days.

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

Bascom Member



Joined: 15 Jul 2020
Posts: 11

slovenia.gif
PostPosted: Fri Aug 14, 2020 12:32 pm    Post subject: Reply with quote

I see....ATtiny816 only has ADC0...

I won't dig into registers to run ADC1 as this eats way too much time, I will rather manage other things while waiting for the update Cool
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5093
Location: Holland

blank.gif
PostPosted: Fri Aug 14, 2020 7:53 pm    Post subject: Reply with quote

i got a long way in the mean time.
At the moment the dat files are updated.
And after that the help need to be updated for the timers. then its ready.
if you need it urgent you can write to support (make sure your email is the same as the one used for registration) and you get a beta when ready.

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

Bascom Member



Joined: 15 Jul 2020
Posts: 11

slovenia.gif
PostPosted: Fri Aug 14, 2020 8:05 pm    Post subject: Reply with quote

Mark, thank you for great support. I have quite some work to do in the meantime. If I will be done before you release the update, then I will ask for beta, otherwise I will wait for the tested update.
Back to top
View user's profile
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