• PicŪ Basic

  • How to receive integer value using USART


    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.

    __________________________________________________ _______________________

    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


    Mysterious PORTB problem

    Thread Starter: xldaedalus

    I'm using Proton+ to develop firmware for a product with switches. The MCU is an 18F26K22. Most of the switches reside on PORTB. I am NOT using a...

    See_Mos Today, 10:14 Go to last post
    Stephen Moss-711

    Watchdog timer

    Thread Starter: joesaliba

    I have a code that basically looks for four input and four outputs, depends on various timing and input conditions. I use interrupt and some delays...

    Stephen Moss Today, 10:15 Go to last post