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

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
solozerouno
Posts: 113
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 4:36 am
Has thanked: 2 times
Been thanked: 2 times

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

Post 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 .....

solozerouno
Posts: 113
Joined: Tue Dec 08, 2020 4:36 am
Has thanked: 2 times
Been thanked: 2 times

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

Post by solozerouno »

China excuse me
Solozerouno

solozerouno
Posts: 113
Joined: Tue Dec 08, 2020 4:36 am
Has thanked: 2 times
Been thanked: 2 times

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

Post by solozerouno »

Excuse my cell phone write wrong......
Solozerouno

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

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

Post 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

medelec35
Matrix Staff
Posts: 1445
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 470 times

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

Post by medelec35 »

hello.
There is also an 8MHz version to choose from:
Mini 8MHz.png
Mini 8MHz.png (4.39 KiB) Viewed 1597 times
What is the value of the crystal?
Martin

Post Reply