473,520 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Serial controller algorithm

1 New Member
hi all,
i would like to implement a serial controller controlling 7 segment display to c++.
Can anyone just give me an algorithm so i can apply it to c++ coding??i dont need the code just plain simple pseudo code will do.

The controller decodes incoming hexadecimal encoded in ASCII text stream.Assume input stream is stored in an input buffer from where the command handler reads each character. Valid commands are stored in the command buffer and a command handler reads them and executes them thereby updating the current display. the command is: [$] [UP/DOWN?STOP]. the $ is the start character for each command, UP increments the output value, DOWN decrements the output value while STOP sets the output value to 0 if the output is below 5. the output range is from 0 to 9.
Sep 5 '07 #1
0 971

Sign in to post your reply or Sign up for a free account.

Similar topics

21
42990
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how to make my VB program read the Bios serial number (or would HDD be better, or both?) and put that info into VB prog so the program won't work on another computer. My program uses an MSAccess table....
10
2635
by: Conrad | last post by:
Greetings, I have a need to print from Win98SE to a little serial label printer provided by United Parcel, so based on Mark Hammond's recommendation in 'Programming on Win32' I decided to try the Sio module at http://starship.python.net/crew/roger/ My problem:
3
4572
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The micro-controller chip had several pins, some of which were for output and some were for input. The crux of the project was to make the program set the ouput pins...
3
3249
by: Stewart Allen | last post by:
Hi there I'm trying to find part serial numbers between 2 numbers. The user selects a part number from a combo box and then enters a range of serial numbers into 2 text boxes and the resulting query should find every machine that has that part number between the serial number range. The problem is that the serial number stored is a text...
2
2791
by: Ed | last post by:
Please help! I have a string of data as the result of serial to parallel hardware conversion. I need to decode this string into correct bytes. The start of a byte position is unknown. In this particular case, part of my data is as follows. Serial data string: (not rs232, straight serial data)...
1
998
by: just4priya | last post by:
Hi All, I want to perform a serial communication for a traffic controller (EPAC 300 ) in C. 1. How do i achieve communication between them? 2. I also wanted to upload data from the controller so that i could analyse for my purpose. Please could you provide me suggestions/guidelines? Thanks,
7
2944
by: Nickolai Leschov | last post by:
Hello, I am working on an industrial automation project that involves programming the i188 PC-compatible controller with embedded DOS and several serial ports. What options do I have for debugging on this hardware? Specifications of the controller: CPU 80188 or compatible, 40 MHz (RDC R-8820, clone of Am188ES ?) SRAM 512KBytes...
1
1319
by: bubsaboey | last post by:
I am sending Data from the micro controller through RS232 (COM1) every second. The ADC on the micro controller converts the data from Light detecting resistor and every second it sends it out through the serial. From VB I connect through the comport from the event button click, then receive the data on the timer_click event every second. The...
1
2115
by: poisonvm | last post by:
I wrote a C program that is successfully able to read and write from the serial port. When the program is run in shell or terminal on linux it can read and write data to the micro controller. However when the program is embedded in PHP <?php echo exec("./send toserial.out");?> it is unable to send information to the micro controller. I have...
0
7201
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5740
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3279
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1646
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
506
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.