QE128 - ICS ver.3 default setting, where do half the frequency go?
‎02-04-2009
08:05 AM
2,104 Views

Tbspd_TOK
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As said in the heading, I try to find out where half the systemclock go in the HCS08QE128.
The ICS is set as reset default in FEI mode, BDIV=01 or /2, RDIV=0 or /1. DRS=00, DMX32=0 -> FLL factor =512. Frequency is 31250Hz
From this I get the frequency to be (31250*512)/1/2=8MHZ, but the correct answer is 4MHz.
In the previous version of the ICS the DCO output is apparently divided by 2. But this is not specified in the version 3 of the ICS. Is this the reason for the half frequency?
I have studied the QE128 reference manual and the 'HCS08 Unleashed Designer's guide' but I can't figure any logical reason for the difference.
Could anyone put me in the correct direction for some further documentation?
TOK
Message Edited by Tbspd_TOK on 2009-02-04 07:07 AM
4 Replies
‎02-04-2009
12:46 PM
981 Views
bigmac
Specialist III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello TOK,
You do not mention whether you have set the BDIV value within ICSC2 register. The reset default will divide the DCO output by 2, and then there is a further divide by 2 from ICSOUT to the bus clock. You will need to change BDIV from the reset value to achieve the higher bus frequency.
Regards,
Mac
You do not mention whether you have set the BDIV value within ICSC2 register. The reset default will divide the DCO output by 2, and then there is a further divide by 2 from ICSOUT to the bus clock. You will need to change BDIV from the reset value to achieve the higher bus frequency.
Regards,
Mac
‎02-04-2009
01:08 PM
981 Views

Tbspd_TOK
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mac
Thanks for your answer.
The problem is the ICSOUT divide by 2 before the busclock. I tried to look at some tutorials, and there it was described, but I could not find it in the Reference Manual for QE128(rev2).
It could be a good idea to include it in the ICS chapter, under 'Features'.
TOK
‎02-04-2009
09:08 PM
981 Views

peg
Senior Contributor IV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi TOK,
I haven't looked at the manual, but this is always the case with at least S08's (that the ICSCLK is double that of the BUSCLK) Also note that ICSCLK = CPUCLK even though timing is measured in BUSCLK's.
These details are always a little vague in the datasheets.
I haven't looked at the manual, but this is always the case with at least S08's (that the ICSCLK is double that of the BUSCLK) Also note that ICSCLK = CPUCLK even though timing is measured in BUSCLK's.
These details are always a little vague in the datasheets.
‎02-05-2009
12:30 AM
981 Views
bigmac
Specialist III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello TOK,
Refer to Fig. 1.2 "System Clock Distribution Diagram" within the Reference Manual for the 'QE128.
Regards,
Mac
Refer to Fig. 1.2 "System Clock Distribution Diagram" within the Reference Manual for the 'QE128.
Regards,
Mac
