how does the compiler deal with PBCLK frequency?
how does the compiler deal with PBCLK frequency?
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.
Re: how does the compiler deal with PBCLK frequency?
Hi,
PBCLK-divisor is not considered at the moment, we'll implement it for the release for sure.
Yes, you are right.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.
PBCLK-divisor is not considered at the moment, we'll implement it for the release for sure.
Re: how does the compiler deal with PBCLK frequency?
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.
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.
Re: how does the compiler deal with PBCLK frequency?
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.