Page 1 of 1

Urgent!!...Problem with delay on china minipro with icsp on board

Posted: Wed Mar 30, 2022 7:43 pm
by solozerouno
I have a problem that is a bug for my micro: I use Arduino mini pro micro and I noticed that if I use the delays with delay all the values ​​in milliseconds are worth more than 1 second, I think that the values ​​of the quartz are not 16 Mhz but less (type 8 or 4 Mhz) ..... Not being able to correct the value of the quartz which is fixed at 16Mhz everything is out of order ..... PS: I have a Chinese version of mini pro with icsp but both programming with TL866A that with Usb tiny everything is out of order but if I program a normal arduino with icsp with Usb tiny the Delay values ​​are correct ...... it is not possible to change the Mhz of the Arduino ?? There is a similar problem with attiny 85 but I have seen that if I vary from 8 Mhz the internal clock to 1Mhz the Delays are correct ..... I would like the possibility to change the clock on both pro and mini pro 328 5v and 3.3 ve maybe 128 .....

Re: Urgent!!...Problem with delay on china minipro with icsp on board

Posted: Wed Mar 30, 2022 7:45 pm
by solozerouno
China excuse me
Solozerouno

Re: Urgent!!...Problem with delay on china minipro with icsp on board

Posted: Wed Mar 30, 2022 7:46 pm
by solozerouno
Excuse my cell phone write wrong......
Solozerouno

Re: Urgent!!...Problem with delay on china minipro with icsp on board

Posted: Wed Mar 30, 2022 8:35 pm
by mnfisher
You could try altering the FCDX file for the board you are using..

This would usually be in C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARD - open the file using notepad (or notepad++) - towards the beginning is a 'clock' section - change the "max_speed = ..." if needed and the "fixed=..." to "default=..." Where ... is the speed you want as a default value...
<clock max_speed="16000000"
master_divider="1"
fixed="16000000" />
to:
<clock max_speed="16000000"
master_divider="1"
default="16000000" />
It might throw some checksum errors on compile - but I think these are ignored at present...

Alternatively - use the AVR chip file (assuming you have the pack?)

Martin

Re: Urgent!!...Problem with delay on china minipro with icsp on board

Posted: Wed Mar 30, 2022 8:50 pm
by medelec35
hello.
There is also an 8MHz version to choose from:
Mini 8MHz.png
Mini 8MHz.png (4.39 KiB) Viewed 1615 times
What is the value of the crystal?