Delay_ms() different

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Mikro
Posts: 2
Joined: 18 Apr 2017 14:51

Delay_ms() different

#1 Post by Mikro » 18 Apr 2017 14:54

Hello,

I use MikroPascal Pro for AVR and I realized that the delay_ms (1000) on an ATmega128 is different from that on an AT90CAN128.
Does anyone know why? Does it change some parameters?

Thank you

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: Delay_ms() different

#2 Post by dusan.poluga » 19 Apr 2017 11:54

Hi,

When you change the micro controller you need to write on the left side in the compiler window the clock speed the micro controller is using.
That clock on the left side will be used to calculate the Delay function.
This number is also used to calculate some parameters for the UART, SPI and I2C buses.

Regards,
Dusan Poluga.

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”