# RCM 4010 Clock setting

**URL:** <https://forums.digi.com/t/rcm-4010-clock-setting/8994>\
**Category:** Rabbit\
**Created:** [August 31, 2009, 5:21pm UTC](https://forums.digi.com/t/rcm-4010-clock-setting/8994 "2009-08-31T17:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaoloZ](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@PaoloZ](https://forums.digi.com/u/PaoloZ)\
**Post date:** [August 31, 2009, 5:21pm UTC](https://forums.digi.com/t/rcm-4010-clock-setting/8994/1 "2009-08-31T17:21:44Z")

</div>

Hi ,  
I use a RCM Module RCM4010.  
I have a problem about speed of processor, defaul setting is CLK /8 for CPU and peripheral.  
I use Dynamic C 10.54 but i don’t find the soluction for setting the processor on full speed.  
I try to write register GCSR but any value that use the processor doesn’t run.  
Something can help me?  
Thank.  
Paolo.

---

<div class="post-metadata">

**Author:** ![sgt](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sgt](https://forums.digi.com/u/sgt)\
**Post date:** [September 1, 2009, 4:51am UTC](https://forums.digi.com/t/rcm-4010-clock-setting/8994/2 "2009-09-01T04:51:27Z")

</div>

Although the default on startup (i.e., processor reset) is Main Clock /8, I think you will find that the code in StdBios.c sets the clocks to Main Clock, so you really shouldn’t have to mess with it:

```auto

	ld	a, 00001000b	; normal oscillator, processor and peri.
				; from main clock, no periodic interrupt
ioi	ld	(GCSR), a

```

---

<div class="post-metadata">

**Author:** ![PaoloZ](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@PaoloZ](https://forums.digi.com/u/PaoloZ)\
**Post date:** [September 2, 2009, 11:37am UTC](https://forums.digi.com/t/rcm-4010-clock-setting/8994/3 "2009-09-02T11:37:16Z")

</div>

Hi, SGT  
Thank for answer, now i have more clear the situation of clock setting.  
Can you respond another question?  
I have in my application an event on INT0 external interrupt, It is a AD converter ready.  
I need to write a faster Interrup service routine in Dynamic C , the normal c code is slow , i must use assembler code.  
Do you suggest a exemple to insert a interrupt assembler routine in dynamic c souce code?  
Thanks.  
Paolo.
