- This topic has 1 reply, 2 voices, and was last updated 9 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › How to Use Internal and External Effectively
Hi,
I started to do a coding for Microcontroller, I have some following doubts,1) Every Microcontroller has Clock(Which will vary controller by controller). Take it for example,
I am using a Controller which is having 32MhZ. This frequency can be changed for 16MhZ also. But how can i change this.
Is there any Hardware register to achieve this.
2) If my process is multi threading, is it possible to set a different frequency for two running thread.3) Running RTC
i) I have seen that, RTC will run only on External Crystal. Why it will not run internal(Controller Clock)?
ii) I read some where, if want to take a reference of External Clock, Need to access from a GPIO. Is this Correct,
If Yes, how can i reference through GPIO. If No, then what should i do in program to access External Crystal.
Hey Allen
Ans 1) you can use system clock devide future of controller
Ans 2)yes,you can use different frequency for multi threading but not parallel running thread.
Ans 3)RTC also run on internal clock but required configuration for this like short external crystal pin,set value of load capacitance etc.,.