• ADC DMA wrong values
    Hi, I'm facing some problem with ADC and DMA of STM32f103 uC. I have a stm32f103 board and I had configured it to use ADC with DMA. Both configurations are taken from examples codes. I connected...
  • SPRINTF %2bx give me 0 instead of 00
    I have an unsigned char that I am converting to string and I want exactly 2 hex characters regardless of the value in the char. myvalue = 0; sprintf( ptr, "MyValue=% 2 bx",myvalue); results in...
  • Wrong DPTR value
    Dear Sirs, The C code in my project is: TaskStruct xdata * data pTask; data unsigned char Task; ... *pTask->ProcID=Task; causes the assembly code MOV A,pTask+1 ADD A,#06 LCALL 4629...
  • Check8 writes wrong value
    Hi all, Anyone tried getting check8 to write the checksum into the bin file? The command prompt reports the correct crc but the wrong value is written into the file?? Example 1 Bin file...
  • Wrong values from ADC LPC1768
    I have a problem with the ADC in the LPC1768. The user manual says that the ADC is 12-bit but the maximum value of ADGDR register is 0x3FF (10-bit). In my case the ADGDR register values are greater...