Well, I suppose you have your motor connected to a parallel port of the HC11 (let's say PORTB for this example).
You have to write to the port B with the proper value to control the proper bits in the proper order.
If you use the original configuration of the HC11, the port B is located at...
One solution is to add another structure used to make the association between a member and a video.
In the loan file, you would have one line per member-video association; there would be no video association in the member structure, nor member association in the video structure.
With this...
Can you send an except of your code where it hangs?
If your code is written in C and the compiler is optimizing, then I suspect you forgot to put your pointer as volatile.
Intead of declaring your pointer as
int *pointer;
Use
volatile int *pointer;
This will tell the compiler to read the...
I assume you are trying to run this from windows no?
The command syntax shown here is done for unix. On unix, you can separate commands using ";". On dos, this is not feasible.
If I remember well, using gnu, you could try to replace the lines that way:
instead of:
cd usb; make...
Hi belsonc!
The line you sent shows the following commands executed one after the other:
cd GCC/
rm *.bin
pilrc -I ../Src/ ../Src/Resources.rcp
There is no *.bin files in GCC directory (probably just a warning output by rm function)
pilrc executable file is not found. Where is this...
Sorry for the delay, I was on vacations...
If your problem is still not solved, here is my feedback.
Once you got your value in string[], you can do the following:
float fVal;
float fPtr;
fPtr = (float *) string; // get a float pointer to point at the 4 bytes in the string
fVal...
If I understand well your problem, here is a possible solution...
Let's say you have:
char *toto(); //which is the function returning the floating value as a char *
And let's say you call toto from main:
main()
{
char *cPtr; // pointer to char array
float *fPtr; // pointer to float...