MC9RS08KA2 programming problem

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

MC9RS08KA2 programming problem

1,710 Views
apollox80
Contributor I
Hi all,
I'm working with MC9RS08KA2 and softec system "indart-ONE". My problem is:

I can only use the indart for real-time debugging of this micro; i need to program the micro and use it without the indart system.

I'm using CW 5.1 and the internal clock of the micro.
Probrably I use wrong settings for the internal clock.

Thank for your help

Apollox80
Labels (1)
0 Kudos
Reply
1 Reply

596 Views
HonHo
Contributor I
Hi Apollox80,
 
First of all, I suggest you to check the power source of your target board. As you know, inDART-One could provide the power for the board, so, please make sure you have a separate reliable power supply for the standalone mode.
 
Secondly, about the internal clock setting, I suggest you to refer to the example project in CodeWarrior. You could easily open the project by the "Startup Dialog"->"Load Example Project" and select "RS08"->"Evaluation board"->"DEMORS08KA2". For your ease, I paste the relevant code segment for your reference.
 
Code:
;CONFIGURES CLOCK (FEI Operation Mode)             mov #HIGH_6_13(NV_ICSTRM),PAGESEL      lda MAP_ADDR_6(NV_ICSTRM)            sta ICSTRM              ; Sets trimming value      clr ICSC1                         ; Selects FLL as clock source and disables it in stop mode   clr ICSC2                         ; ICSOUT = DCO output frequency   wait_clock:    brset CLKST,ICSSC,wait_clock      ; Waits until FLL is engaged

 
I hope it helps.
0 Kudos
Reply