View previous topic :: View next topic |
Author |
Message |
dk9uv
Joined: 07 Jan 2012 Posts: 21
|
Posted: Tue Jul 07, 2020 7:39 pm Post subject: AVR128DA support? |
|
|
Hi,
is there any chance that the new AVR128DA familiy will be supported by Bascom?
(BASCOM-AVR version : 2.0.8.2 ) |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 584 Location: Cleveland, OH
|
Posted: Tue Jul 07, 2020 11:44 pm Post subject: |
|
|
I certainly hope so!
They are the "new and improved" AVR's, incorporating many of the features that were originally brought out in the Xmega series.
They also come in both surface mount and PDIP formats, so they are easy for anybody to use.
JC |
|
Back to top |
|
|
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Thu Jul 09, 2020 4:34 pm Post subject: |
|
|
This requires a lot of work and I think this qualifies for extra charges. Like after so manny years pay full again.
Best regards
Hubert |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Jul 10, 2020 2:34 pm Post subject: |
|
|
it depends on how much interest there is in the xtiny add on.
and of course in this new series.
i did not see PDIP but maybe i overlooked something.
The problem with xtiny was that i started with preliminary docs which changed a couple of times. some casings were removed.
edit : oeps, overlooked it. _________________ Mark |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 584 Location: Cleveland, OH
|
Posted: Fri Jul 10, 2020 2:39 pm Post subject: |
|
|
Hi Mark,
I believe the PDIP version exists, which I think has usually been of interest to Bascom.
Check you Support eMail, I sent you an eMail a while back offering to send you a few AVR128DA48's to work with, if you so desire.
Take care,
JC |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 584 Location: Cleveland, OH
|
Posted: Fri Jul 10, 2020 2:48 pm Post subject: |
|
|
|
|
Back to top |
|
|
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Sun Jul 12, 2020 11:36 am Post subject: |
|
|
Mouser in Austria offers it at a price of 1.95 Euro at 25 pieces and over 600 in stock.
I am sure most other Electronic Companies do offer it also.
The question is, what is the correct programmer unit for it and will Bascom support it.
Atmel's Studio ver.7 not, maybe they will come out with a new version.
Best regards
Hubert |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Sun Jul 12, 2020 12:31 pm Post subject: |
|
|
Having had a read through the spec sheet this AVR has two very useful parts
for power monitoring or generation.
A 12bit ADC
A zero crossing detector
I can see this in a lot of diy power monitoring projects
It has a lot of other nice features like the xmega
Regards Paul |
|
Back to top |
|
|
olhexy
Joined: 03 Apr 2011 Posts: 192 Location: Tilburg, Netherlands
|
Posted: Sun Jul 12, 2020 5:52 pm Post subject: |
|
|
I like the two level interrupt.
With that you can make the free running ADC some kind of sytem clock that allways has priority.
And 'weave' dynamic calculated timer actions around that.
I have setup something with Atmega1284 to accurately control the timer in a proces that measures the time constants.
Hopefully to be used as a position sensor("-less") actuated solenoid.
There are workarounds to make sure that ADC allways has priority with traditional AVR's like Atmega1284, but the two level interrupt makes it easier.
On the other hand, except for the PDIP and 5V, what would be the benefit over the 32Mhz and ISP-programmable Xmega? Xmega32E5 costs €2...€2,50.
Is it (really) less complex? Why isn't it 32Mhz, should we expect a better but again different version...?
Last edited by olhexy on Mon Jul 13, 2020 6:37 am; edited 8 times in total |
|
Back to top |
|
|
Dave
Joined: 05 Feb 2005 Posts: 314 Location: OR
|
Posted: Sun Jul 12, 2020 10:42 pm Post subject: |
|
|
These look great to me. 28pin PDIP with 24 MHz clk., 12bit ADC and a DAC! I hope Mark adds this one to the list. It would have been even better if they had made it pin compatible with Atmega328 so I could upgrade old hardware but that is asking to much. |
|
Back to top |
|
|
olhexy
Joined: 03 Apr 2011 Posts: 192 Location: Tilburg, Netherlands
|
Posted: Sun Jul 12, 2020 11:08 pm Post subject: |
|
|
Offer with proper working UPDI programmer will help to sell Bascom upgrade. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Jul 13, 2020 10:13 am Post subject: |
|
|
Quote: | On the other hand, except for the PDIP and 5V, what would be the benefit over the 32Mhz and ISP-programmable Xmega? Xmega32E5 costs €2...€2,50.
Is it (really) less complex? Why isn't it 32Mhz, should we expect a better but again different version...? |
good question. everything started so simple in 1997. the PIC had 1001 variants, and the 8051 too. But the AVR was simple. I never understood some decisions in variation of processors but they are probably marketing or there is some other good reason. as a user it is hard to figure out what is best.
The good thing however is that atmel/microchip will produce these chips for a long time. And that is important. you want to be able to buy chips without the need of migrating.
personally i can see the benefit of the new updi devices. these are new simplified xmega chips with some new hardware, new names and new price. For a hobby user i do not know. for simple personal projects i usually grab a Mega88.
I do not understand why the speed has not increased. but i guess the normal AVR will be phased out. so when you depend on normal AVR i would suggest to buy enough stock when your business depends on it.
Quote: | The question is, what is the correct programmer unit for it and will Bascom support it. |
The 2082 already has support : MCS UPDI programmer. all you need is a serial port. (max232 of usb virtual com).
The 2083 added writing of the fuses.
only downside of updi is that it is shared with RESET line on most chips. This means you can not have reset since updi is default. ok you can program it, but then the updi is gone. _________________ Mark |
|
Back to top |
|
|
olhexy
Joined: 03 Apr 2011 Posts: 192 Location: Tilburg, Netherlands
|
Posted: Tue Jul 14, 2020 11:26 am Post subject: |
|
|
albertsm wrote: |
The 2082 already has support : MCS UPDI programmer. all you need is a serial port. (max232 of usb virtual com).
The 2083 added writing of the fuses.
only downside of updi is that it is shared with RESET line on most chips. This means you can not have reset since updi is default. ok you can program it, but then the updi is gone. |
Have not used Bascom recently. Indeed the software is there. I think I forgot because I found no .dat files for devices with UPDI. (EDIT: Today I got 2083 with many UPDI .dat files!!!)
UPDI programmer hardware that Bascom Help describes is something like this?
From: https://npk-stn.ru/2019/07/19/simple_programming_attiny414_via_updi/?lang=en
|
|
Back to top |
|
|
SZTRAD
Joined: 30 Dec 2019 Posts: 165
|
Posted: Wed Jul 15, 2020 1:51 pm Post subject: |
|
|
Yes, I also blocked several 1616 errors in the macro before I came to the conclusion that by default they have the fuses set to 0, which shuts down UPDI. From this state it is possible to get a 12V programmer. Just after resetting the processor, send a 12V pulse to the UPDI pin and the processor will enter the programming mode.
I assume that Bascom works with UPDI as well as with other programmers and reads the fuses from the circuit, so unintentional overwriting should not occur. I haven't tried it in Bascom yet, but I'll soon try as soon as the expansion from Mark arrives and I'll have some time.
To olhexy
Yes, the UPDI interface should also work on a virtual com from Bascom. Mark writes it in his post. |
|
Back to top |
|
|
SZTRAD
Joined: 30 Dec 2019 Posts: 165
|
Posted: Fri Jul 17, 2020 8:30 pm Post subject: |
|
|
Mark:only downside of updi is that it is shared with RESET line on most chips. This means you can not have reset since updi is default. ok you can program it, but then the updi is gone.
Starting UPDI is false on txd. Due to interference, it is better for the application to have UPDI turned off. In case of accidental start-up, the current consumption is up to 2mA. This is important for battery operation in a low power application.
You can use this https://www.tindie.com/products/leonerd/avr-updi-programmer-with-12v/
(I invented it a little differently last year, mainly I didn't let 12V into the input of the converter)
In the data sheet, for example attiny1614 page 472, it is described what the pulse should look like when communication starts.
If Mark ever has time, he may add this option to the programmer. I personally switch PD0 to RESET, I had problems with current consumption as I wrote above.
RS |
|
Back to top |
|
|
|