• Problem with sprintf
    I have to following code: // Write screen n = sprintf( screen_msg, " TV: %#4.1f FV: %#4.1f CV: %#4.1f SV: %#4.1f\r\n", ad_value[2], ad_value[1], ad_value[0], ad_value[3] ); n += sprintf( screen_msg...
  • sprintf() problem.
    Hi! Can you please tell me what is wrong in here: /* An example from Cx51 userÂ's guide */ #include<stdio.h> #include<float.h> void main(void) { code char buf[100]; int n; int a,b; float pi;...
  • PROBLEMS WITH SPRINTF
    Hi i am having a problem with the sprintf function. i don't know what i am doing wrong. i created a function where i use sprintf to separate the digits of a decimal number, and the first time that...
  • Assembler and pulse width
    I need to measure a pulse with that is almost faster then C can process with the hardware I'm using, so I think. I'm only getting a count of 26 on a pulse width, Witch has been good for the last four...
  • measuring pulse width
    how do i measure a pulse width using the pca in high-speed output mode? not quite sure what registers i need to read when the interrupt is triggered. i am using a 8051f023 chip.