WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
 

Read data from terminal in C (ASCII input), I need a help to develop a C code to read data from terminal in order to convert ascii to number.

hemanthjv
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 58181
Joined: 22-May 13


Sponsored Links
The terminal should accept a input from the user (Example : new temperature value) and convert into integer. This integer value will be transferred across the interface (RS232 interface) to the memory.

example : the message structure -
struct memoryTag1;
typedef struct memoryTag1{

char a[10]= {'+','0','2','6','.','5','E','A','\r'}; // first five bits is the new temperature value (+26.5), two bits (euipment name- EA), carriage reurn.

char b[10]= {'-','0','2','4','.','5','E','B','\r'};

char c[8]= {'+','0','2','0','E','C','\r'};

}Memory1;

thank you in advance.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian