Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: TiL
  • Order by date
  1. TiL

    obtaining data from string.

    Try the ANSI strtok function defined in <string.h> which is used to extract fields separated by a token (colon in your case). TiL
  2. TiL

    C code to control servos

    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...
  3. TiL

    structure and array

    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...
  4. TiL

    C code to control servos

    What do you want to know? What are you looking for?
  5. TiL

    LCD routine Lockup

    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...
  6. TiL

    Please help me compile this firmware

    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 &quot;;&quot;. 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...
  7. TiL

    problems with make in cygwin

    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...
  8. TiL

    Desperately need help with C!!

    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...
  9. TiL

    Desperately need help with C!!

    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...
  10. TiL

    Please help! I'm getting the follo

    Start your computer in MS-DOS mode instead of in NT mode. Then copy your file and restart your computer. Hope it will work! Luc
Back
Top