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.

How to call a function in the main function (CCS compiler)?

Status
Not open for further replies.

Tom2

Full Member level 5
Joined
Nov 11, 2006
Messages
318
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,457
i write a code which can chanche the frequency of the microcontroller (with external switch).
I don't know who to call this function in the main function.(i use ccs compiler)
Is anyone who can help me???
 

pic_function

Let me see if I understand you completely.

You want to switch from one crystal to another on the fly? I have considered doing this, but some of the complications that came to me are that the impedance of the switch may complicate the signal path in the oscillator, there will be latency while the new crystal begins oscillating, and that anything that needs to be done on schedule in real time will be upset.

As for the name of the subroutine/function (that was your original question, was it not?), how about invoke_Gabriel. It seems appropriate- you're calling upon a power not normally existent within the microcontroller (appealing to an angel) to alter the timebase (play the trumpet at a different tempo).
 

Re: pic_function

microcontroller is pic16F777.

i have only one crystal and i use switch with resistor.I don;t know how to return the new frequency to the main
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top