mega328p programming, osc, fuses

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
bill.knighton@gmail.com
Posts: 1
Joined: 01 Oct 2023 17:54

mega328p programming, osc, fuses

#1 Post by bill.knighton@gmail.com » 15 Oct 2023 04:55

I've really made a mess and wrecked multiple mega328p and an arduino2560 trying to get the pascal to be at the predicted speed.
Everything seems to run 16x too slow. 9600 baud serial transmissions are only readable at 600 baud. Delay_ms is similarly off. For loops are proportionally slow compared to the same loop in the Arduino environment.
If I disable fuses programming in AvrFlash I can at least experiment with impunity, even if 16x slow.
There is a page from Mikro with some recommended settings for an Uno but it only works once and then the Arduino is bricked and a new mega328p is needed. What I want is to not touch the fuses. It seems like the MCU should already be configured for full speed since it works correctly in the Arduino IDE.
When I start a test project I choose 16 mhz if that is any help.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: mega328p programming, osc, fuses

#2 Post by filip » 30 Oct 2023 14:27

Hi,

Have you been able to sort out this issue ?

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for AVR General”