• 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

    teo-16018

    Microsoft security essentials blues

    Thread Starter: shantanu@india

    Hi, A strange thing happened just now.My Windows 7 Micrsoft Sercurity Essentials suddenly gave a warning that prplus.exe(Compiler) is a potential...

    teo Today, 19:23 Go to last post
    barak-1433

    SPI mssp

    Thread Starter: picprotonguy

    Just ordered Digital to Analog IC MCP4822 with SPI interface and immediately opened proton manual. I'm very disappointed, it looks like Proton...

    barak Today, 22:50 Go to last post
    David Barker-251

    UMC bootloader 18F46K22

    Thread Starter: shunt010

    Hi all. I am trying to build a UMC bootloader file for the 18F46K22, and it doesn't appear to work. It returns (in the error log) Error ...

    David Barker Today, 11:20 Go to last post