Thank you for your answer.
By the way,do you want to tell me that we should not to focus the mcu it is in dg128A series ,or in dg128C series,or in dg128P series? but only use dg128 in short.
I can tell you my situation, when we create a new project in CW V5.1,after that ,we choose the mcu MC68HC912DG128A.
We need to use a sub-function in our program to initial the PLLCLK to be the SYSCLK.
so we write like that:
void PLL_init()
{
CLKSEL = 0x00;
PLLPC = 0x40;
SYNR = 0x02;
REFDV = 0x04;
while(!(PLLFLG&0X40));
CLKSEL = 0x40;
}
when the program jump to the CLKSEL =0x40;
the program will be certainly running away.
But if SYNR = 0x01,REFDV = 0x01,everything is ok.
Another problem,we want to use external dual-port ram,so we should configue some page to be an external flash space,can you tell me how can we do that?thank you
--
发自我的网易邮箱手机智能版
在 2015-06-10 17:23:31,iggi <admin@community.freescale.com> 写道:
>|
>|
>|
>|
>mc912dg128ccpv developing /compiling envirement?
>reply from iggi in S12 / MagniV Microcontrollers - View the full discussion
>Hi,
>You can use any of the two (or both) IDEs.
>The datasheet says:
>http://cache.freescale.com/files/microcontrollers/doc/data_sheet/MC912DT128A.pdf
"The MC68HC912DG128C and MC68HC912DG128P are devices similar to the MC68HC912DG128A, but with different oscillator configurations.
Sections of this book applicable to the MC68HC912DG128A also apply to the MC68HC912DG128C and MC68HC912DG128P, except for the
differences highlighted in Section 13. Oscillator."
>The difference between DG128A and DG128C are related only to oscillator architecture, some features were added and improved on 1L05H maskset (DG128C).
>Therefore i don't see any problem to select DG128A in CW51 and program/debug DG128C device.
>Regarding the example code for expanded narrow mode, i will have to check if we have something like that.
>Regards,
>iggi
>| Did your question get answered? If so, say thanks by clicking Correct Answer in the community thread! |
>| Reply to this message by replying to this email, or go to the message on Freescale Community |
>| Start a new discussion in S12 / MagniV Microcontrollers by email or at Freescale Community |
>| Following mc912dg128ccpv developing /compiling envirement? in these streams: Inbox |
>This email was sent by Freescale Community because you are a registered user.
>You may unsubscribe instantly from Freescale Community, or adjust email frequency in your email preferences
>|
>|