When you delete a user module from the project, all the library files related to the user module get deleted. If you have called any of the API from that user module, you will get compiler error. For example, if you had a Counter8 user module and had used the Counter8_Start function, then after deleting the Counter8 user module, the Counter8_Start will give an error.
Regarding diffAmp, there is no user module as such as a diffAmp, but an SCBLOCK user module can be configured as a Differential Amplifier.
#pragma directives are special keywords, used for various operations. For example:
1. #pragma abs_address and #pragma end_abs_address can be used to place specific values in the Flash in specific locations. Check out my below blog post which has details of this pragma
2. #pragma fastcall16 - This pragma is used to tell the compiler that certain assembly functions follow the fastcall16 rule of passing variables and returning results. When compiler sees this pragma, it will use certain methods to pass variables when calling the function.
All other pragmas will also have similar uses depending on the situation.
I'm sorry Graa. But I don't know how to start the program.
I have an example about an InvAmp writed its main file
in assembly code.
I have this files in the source Files folder:
The main.asm make calls to mainc and mainasm.asm
By the other hand mainc make calls to this functions:
//Start AMPINV with high power
//Start PGA with hign power
//get AGND to AnalogOutBuf_0
That I supose are created by the programer, since this examplke is how to create an InvAmp. And mainasm.asm starts the component.
my problem is how to start to program, which files I must create.
You will be able to find this example in this website:
It's the 28 pins example, the first one.
Thanks again. Is difficult to find good examples to how to program.
It's not so intuitive as I thought at first sight.
If I create a new proyect I have only a main.c
I want to create a diffAmp.