• PicŪ Basic


  • How to receive integer value using USART

    Hi,

    I was browsing the PDS forum, specifically here, and I thought that this will be very helpful for someone else trying to convert negative numbers to integers through the USART.

    Joseph
    __________________________________________________ _______________________

    Roshan asked: -

    Hi !

    I want to receive integer value via usart. Maximum & Minimum value can be +/- 200. How can i do that ?

    William answer, (Wastrix on the PDS forum): -

    Just add 200 so you get a range of 0-400, then subtract 200 at the other end and place into a DWord
    This article was originally published in forum thread: How to receive integer value using USART started by Roshan View original post
  • Recent Activity

    amod-29593

    Hx711 calibration

    Thread Starter: amod

    Iam using load cell amplifier HX711 module.I have got raw values from module but iam not able to calibrate with load cell.I want make a universal...

    amod Today, 15:23 Go to last post
    Oldhack-15978

    16f720

    Thread Starter: Oldhack

    HELLO The 16F720 is driving me nuts, I had SOIC version and could not get them to run at all so I bought a couple of Dips (all from Digikey) and...

    Oldhack Today, 16:00 Go to last post
    hadv215-2509

    Fault in bit wise comparisons on release 3.6.1.2.

    Thread Starter: kbaykar

    Hi Les, I just downloaded the release 3.6.1.2 today and seeing that it supports 18F47K40. I am trying to port my code from 18F4685 to 18F47K40. ...

    hadv215 Today, 16:27 Go to last post