Consume of microcontroller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Consume of microcontroller

Jump to solution
685 Views
felipepaulo
Contributor I

I need of a microcontroller that is low-power. I found the MC9S08QA4 and i saw the que if busclock operate in the 1MHZ consumption is 490uA. This busclock Interferes where? If I put this clock frequency, time of each instruction is how much?

Labels (1)
0 Kudos
1 Solution
518 Views
weapon
Senior Contributor I

Hi Felipe, there is a system clock distrubution diagram in the reference mansule, page 19, Figure 1-2.(I inserted it below)

It shows BUCLK is coming from ICSOUT divided by 2. CPU clock is equal to ICSOUT.

That means BUSCLK = CPU CLK/2.

The instruction execution time is 1/BUSCLK. if BUSCLK is 1MHz, the time is 1us.

QQImage_110603632.jpg

Hope those info can be helpfu.

B.R

Weiping

View solution in original post

0 Kudos
6 Replies
519 Views
weapon
Senior Contributor I

Hi Felipe, there is a system clock distrubution diagram in the reference mansule, page 19, Figure 1-2.(I inserted it below)

It shows BUCLK is coming from ICSOUT divided by 2. CPU clock is equal to ICSOUT.

That means BUSCLK = CPU CLK/2.

The instruction execution time is 1/BUSCLK. if BUSCLK is 1MHz, the time is 1us.

QQImage_110603632.jpg

Hope those info can be helpfu.

B.R

Weiping

0 Kudos
518 Views
felipepaulo
Contributor I

I need down the  bus clock, then i saw in ICS control register the ICSC2_BDIV, this register considers the main clock(20MHZ)? Then, if i want the down bus clock and put in register 10 I will have the bus clock of 5MHZ?

0 Kudos
518 Views
iansmusical
Contributor V

Hi Felipe,

From looking at the ref manual I think the value b10 will enable you to have a bus clock of 5MHz.

It's also possible you'll need to use b11 (divide by 8) as it says it divides down the clock source set by the CLKS bits!? That would mean 40MHz / 8 = 5MHz.

Regards,

Ian

0 Kudos
518 Views
bigmac
Specialist III

Hello Felipe and Ian,

To further clarify, the actual bus frequency will be dependent on the trim setting for the internal reference, which has a trim range of 31.25 to 39.06 kHz.  The DCO frequency will be 512 times this value, i.e. 16 - 20 MHz.  The bus frequency will then be determined by the BDIV factor and the additional divide-by-2 stage, as previously noted.  So the following bus frequency ranges would apply.

BDIV  Bus frequency range:

00   8 - 10 MHz

01   4 - 5 MHz

10   2 - 2.5 MHz

11   1 - 1.25 MHz


To achieve a bus frequency of 5.0 MHz would require a BDIV setting of 01, and a reference trim frequency of 39.06 kHz.  Trimming is essential for most applications as the internal reference has a very wide tolerance (37kHz +/-25%).  The trim calibration process is normally done when the code is programmed.  Note that the default (and factory programmed) trim frequency for this device is actually 31.25 kHz, so would need to be altered.

The trim calibration setting will be stored in flash memory at address 0xFFAF for main trim value, and 0xFFAE for fine trim bit.  The application code wll need to transfer these to the corresponding ICS registers.

Regards,

Mac

0 Kudos
518 Views
felipepaulo
Contributor I

thanks, i got it

0 Kudos
518 Views
iansmusical
Contributor V

Hi Felipe,

I could be wrong here but my understanding is that the bus clock runs at half the main clock and therefore the main clock will be running at 2MHz. The time for each instruction should be 1 / 1MHz (bus clock), which is 1us.

Regards,

Ian

0 Kudos