About CPU Speed range or value offer by libs like 10Mhz 5Mhz... #3
Replies: 3 comments
-
The code just uses FULL SPEED or HALF SPEED to program prescaler (1 or 2). So it will passively takes whatever CPU clock (32/24/16/???/1), then uses it or divides it for Timer Input. So all cases are supported. . |
Beta Was this translation helpful? Give feedback.
-
Hi @LaurentR59 I just released Dx_TimerInterrupt v1.1.0. I just received the boards (Curiosity Nano AVR128DA48 and AVR128DB48 today, and after testing the dry-written library (no board to test when developed / published library), I have made the new release to improve / customize for those boards. I really don't have any knowledge about AVRDx family before your request, and still don't have time yet to research more on these boards yet to fix issue relating to uploading to Curiosity Nano using Arduino IDE. As you have had some experience with the boards, do you know what's the fix for that uploading issue, as mentioned in Important Note for Arduino IDE ? Moreover, what kind of library do you think useful and popular for Dx-family (Ethernet, WiFi, WebServer, ISR-Servo, etc.) ? To be honest, I have no idea what these Dx-family boards are used for, in which kind of applications, etc. Release v1.1.0
|
Beta Was this translation helpful? Give feedback.
-
Hello
Thanks for your nice job on such lib!
Personnaly Avr Da and Db can be swap parts of atmega 4809 family (avr0 family) like nano every board.
On 32 and 48 pins models It s pin to pin compatible (except on Pin PD0 en DB boards) so due to difficulties to get components any additional dev area used by atmega480x should be a nice improvement for all person who need to swap cpu easily.
Due to the proximity of such cpu models it could may be easier to adapt any additional items. ( or not!)
Personnaly i m just a French model train hobby fan so I try to made some pcb with these cpu to support Dcc NMRA norm. ( lib dcc nmra and Ap Dcc library )
I try to use my knowledge to build some systems but I m not a code developer expert!
Cpu can be avr480x AVR DX Attiny 321x 160x 161x or 162x families.
Futur part will be RP2040 cpu.( in such one I see hardware pwm capacities but I don’t understand what happened if we need to manage as exemple more than. 16 outputs at the same time …) ( need to go back to soft pwm?)( how to!?)
Anyway some challenge stay open for the “arduino community” because I did not find any libs to manage easily such things: ( not only for rail fan modèlers!)
Simulate neon tube starting ( random multi blink effects before stay on customizing items
Like nb of blink, time for max and min blink or global start sequence ) and with intensity levelling at final step.
This can be close to a light storm effet with final step inverted.
(Let’s dream!)
Dimming level ( using soft pwm base on your ISR_timer lines to manage PWM for a max level of light power at state ON.
Fading / brightening effect base too on PWM évolution by soft pwm air based.
Probably such items may require soft pwm managed by a timer management lib ( generic timer or dedicated one ( mega, dx, rp2040,… like you already done)
So it become a “Lego” to build. ( not really directly for beginners !)
About that last effect for exemple one lib Lightdimmer ( Locoduino ) exist.
Fading effect , level set, is good for static usage but mixing with Dcc Nmra ( any lib) is a real challenge for an onboard decoder!! ( not succes in yet )
Probably due to over load cpu capacities… or bad coding from my tests.
On board models can have up to nearly 28 led channels. Most common are around 16-18. So optimised code is a requirement to manage in same time dcc signals.
This is my challenge to mix all elements to make a onboard light decoder base on cpu (atmega 480x, AVR DX or Attiny Like 3217 1606 etc…) with light effect manageable by settings (CV: configuration variables values stored in eeprom and usually copy to ram at setup) and activation in relationship with dcc signals.
It s a pleasant hobby anyway!
Any help would be really appreciate on previous discribed elements adaptation/ realisations.
May it could give you some idea on expected requirement for new libs… or addons exemples on existing ones.
About the issue on uploading DX board I did not met it yet
Don’t forget they are some hardware cpu revision so may it could be involved in final steps. ( my first think )
I have used plateform io to upload blink on my DA board without issue.( my DA board get the latest hardware part revision)
I will test it too with arduino IDE soon.
Thanks for all you job!
Regards
Laurent
Envoyé de mon iPhone
… Le 25 août 2022 à 04:18, Khoi Hoang ***@***.***> a écrit :
Hi @LaurentR59
I just released Dx_TimerInterrupt v1.1.0.
I just received the boards (Curiosity Nano AVR128DA48 and AVR128DB48 today, and after testing the dry-written library (no board to test when developed / published library), I have made the new release to improve / customize for those boards.
I really don't have any knowledge about AVRDx family before your request, and still don't have time yet to research more on these boards yet to fix issue relating to uploading to Curiosity Nano using Arduino IDE.
As you have had some experience with the boards, do you know what's the fix for that uploading issue, as mentioned in Important Note for Arduino IDE ?
Moreover, what kind of library do you think useful and popular for Dx-family (Ethernet, WiFi, WebServer, ISR-Servo, etc.) ? To be honest, I have no idea what these Dx-family boards are used for, in which kind of applications, etc.
Release v1.1.0
Improve and customize examples for Curiosity Nano AVRDA/AVRDB boards to use on-board LED and SW
Add notes howto upload by drag-and-drop to CURIOSITY virtual drive
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Hi
DX_CORE & MEGATINY_CORE libs offer classical speeds for CPU if exist 24 16 8 Mhz but also offer additional speeds like 20 10 5 or overcloked speed (24 32....)
DXcore are more often on 16 and 24 but could be used at 20Mhz or overckloked
MegathinyCore ones usually speed support for 20Mhz or 10Mhz by default
When you have write in many exemples FULL SPEED timer 24/16 does it mean all values for speed between these two steps or just these values? So may be write as math expression any speed value from [16;24] [8;16[ [4; 8[ etc...
To be sure all cases can be support..
Thanks for great job already done!
Regards
Laurent
Beta Was this translation helpful? Give feedback.
All reactions