Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Only one timer in MCU ATtiny85/45/25

Go down  Message [Page 1 of 1]

1Only one timer in MCU ATtiny85/45/25 Empty Only one timer in MCU ATtiny85/45/25 on Wed Oct 07, 2020 4:19 pm

LooseTheGoose


Hello,

I found that the MCUs ATtiny85/45/25 can simulate only one 8bit timer/counter.
In reality they have two 8bit timers/counters.
It would be very kind, if SimulIDE would be extended to two timers.

Philip

2Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Wed Oct 07, 2020 9:07 pm

arcachofo

arcachofo
Hi Philip.

I will have a look, but as far as i know Timer0 and Timer1 are implemented for ATtinyX5 devices.

It would be good if you provide some code showing what exactly are you testing.

3Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Thu Oct 08, 2020 8:25 am

LooseTheGoose


The simulated code is a bit complex, so it could be that I made a mistake.
I will try a simpler code using timer0 and timer1.

But I noticed two things:
 - Tiny85 is called Tiny45 in the properties.
 - Only one 8bit timer is listed.


Only one timer in MCU ATtiny85/45/25 Screen10
Attachments
Only one timer in MCU ATtiny85/45/25 Attachmenttimer1_test_attiny85.zip
No Value for TCNT1 is shown
You don't have permission to download attachments.
(3 Kb) Downloaded 1 times



Last edited by LooseTheGoose on Thu Oct 08, 2020 5:44 pm; edited 1 time in total (Reason for editing : Simple simulation file added)

4Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Fri Oct 09, 2020 12:26 am

arcachofo

arcachofo
But I noticed two things:
- Tiny85 is called Tiny45 in the properties.
- Only one 8bit timer is listed.
That must be an error in the help file.
I checked that Timer1 is actually implemented in all TinyX5 devices, but i didn't check if it is actually working.

Thanks for the code, that's a perfect example to test the issue.
I will have a look.

5Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Fri Oct 16, 2020 8:27 am

LooseTheGoose


Is there any news about the issue?

6Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Fri Oct 16, 2020 10:27 am

arcachofo

arcachofo
Oh sorry, I forgot to update.

Yes, there was a problem with timers.
It is already solved in development version.

Thanks for reporting.

7Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Fri Oct 16, 2020 12:44 pm

LooseTheGoose


Thanks for your efforts!
Can you estimate, when the new version will be available for download?

Philip

8Only one timer in MCU ATtiny85/45/25 Empty Re: Only one timer in MCU ATtiny85/45/25 on Fri Oct 16, 2020 1:29 pm

arcachofo

arcachofo
Next version will be ready for release in around 4 months.

You as a tester will be able to test the fixes in around 2.5 weeks.

Sponsored content


Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum