Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

clock init problems unwanted /8 division

Status
Not open for further replies.

reven

Newbie level 6
Newbie level 6
Joined
Dec 4, 2008
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,371
clock init problems

i am using a renesas m306n4fggp uC and i have set the following setting in order to initialize the main clock:

PRCR |= (1<<PRCR_PRC0);
cm0 &= ~(1<<CM0_CM06);
cm0 |= (1<<CM0_CM04);
cm0 &= ~(1<<CM0_CM03);
cm1 &= ~(1<<CM1_CM15);
cm0 &= ~(1<<CM0_CM05);
cm1 &= ~(1<<CM1_CM11);
cm2 &= ~(1<<CM2_CM21);
cm0 &= ~(1<<CM0_CM07);
plc0 &= ~(1<<PLC0_PLC01);
PRCR &= ~(1<<PRCR_PRC0);

the problem is that i dont want any divition and still got /8 division with these settings.

do i have to set anything else or there must be a different order so that changes take place?
 

Re: clock init problems

Could you post register values after initialisation for CM0,CM1,CM2,CCLKR ?

Gomez
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top