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


Menu
Recent Articles


Using PDS with SPI GLCD based on ST7565R Controller
Graphic LCDs based on the ST7565 are cheaper then GLCDs with other controllers. SPI requires only four pins. If the circuit