how does the compiler deal with PBCLK frequency?

Beta Testing discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

how does the compiler deal with PBCLK frequency?

#1 Post by jpc » 03 Feb 2011 13:18

most peripherals use the PBCLK , it seems the PBCLK-divisor from the project-configuration should be taken into account when for example calculating the baudrate for a Uart, it looks to me like this is not happening.
Au royaume des aveugles, les borgnes sont rois.

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: how does the compiler deal with PBCLK frequency?

#2 Post by srdjan » 03 Feb 2011 14:46

Hi,
jpc wrote:most peripherals use the PBCLK , it seems the PBCLK-divisor from the project-configuration should be taken into account when for example calculating the baudrate for a Uart, it looks to me like this is not happening.
Yes, you are right.
PBCLK-divisor is not considered at the moment, we'll implement it for the release for sure.

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: how does the compiler deal with PBCLK frequency?

#3 Post by srdjan » 07 Feb 2011 10:53

Hi,
I have to correct my self a bit.
We will revise peripheral frequency approach for sure,
but in current beta, there is a way to include it in calculations,
by using advanced routines for initializing peripherals.

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

Re: how does the compiler deal with PBCLK frequency?

#4 Post by jpc » 07 Feb 2011 10:59

yes, just found this out this morning when looking at the init_advanced functions. Allthough the new compiler gives the impression of knowing it all the new family of PIC's has it's secrets for me so sometimes i ask too soon before studying the datasheet in detail.
Au royaume des aveugles, les borgnes sont rois.

Post Reply

Return to “mikroPascal PRO for PIC32 Beta Testing”