Professional Documents
Culture Documents
Ahmedabad
Banglore
Chennai
Hyderabad
Mumbai
Pune
Before the invention of telephone and telegraph communication systems, people got used to
communicate with the help of morse code technology. The text code is converted to morse code
by using a morse code encoder.
Their PIC microcontroller also needs to translate among ASCII characters and Morse code in this
above circuit. Here to follow the method for translate the ASCII character to morse code that
describe the program will search the position of the desired character and look for the
corresponding Morse code.
#include<string.h>
#include<process.h>
void main()
{
char str1[25],str2[100];
clrscr();
fflush(stdin); //clear the input buffer//
printf(enter the String);
gets(str);
int j=0;
for(int i=0;i<=strlen(str1);++)
{
switch(toupper(str[i]))
{
case A:
str2[j++]=.';
str2[j]=.';
break;
case b:
str2[j++]=.';
str2[j++]=.';
str2[j++]=.';
str2[j]=.';
break;
case c:
str2[j++]=.';
str2[j++]=.';
str2[j++]=.';
str2[j]=.';
break;
case D:
str2[j++]=.';
str2[j++]=.';
str2[j]=.';
break;
case E:
str2[j]=.';
break;
case F:
str2[j++]=.';
str2[j++]=.';
str2[j++]=.';
str2[j]=.';
break;
}
Applications of Morse Code
Aviation: The Morse code is still used in todays aviation field. Before days, they are used to
maintain communication between planes or flights and also in ATC (Air Traffic Control).
Nowadays, they are used for giving navigation helps to the pilots and ensure that the stations,
where all stations names transmit a short set of identification letters (usually a two-to-five-letter
version of the station name) in morse code.
Radio: Morse code encoder is still used in the communication system. As mainly used by radio
operators to communicate with each others. At most of the radio amateur uses this Morse code to
transmit radio.
Navy: The navy people also communicate with other ships with morse code for secrecy purpose.
They will send an anguish signal or help to others ship when they are in need. In Titanic movie,
you can observe that some people click one pointer to send text that is a morse code signal. Navy
people will signal the other ship using the lights by switching ON and OFF in a morse code form
that sequence of ON and OFF of light is also in Morse code.
Normal Applications: Morse code encoder is still used by some people to send the suffering
signals, it is extensively used in military application and many of use in aviation submarines
even by Government applications.
Even though there are difference types of code communications, such as binary code
communication, analogue code communication but morse code is one of the important
communication technologies in the radio communication. The information which is given in this
article will be helpful to the viewers. Furthermore, any queries, suggestions or power electronics
projects, you can comment us by commenting in the comment section below.
uchar* p;
for( i = 0; i < nRows; ++i)
{
p = I.ptr<uchar>(i);
for ( j = 0; j < nCols; ++j)
{
p[j] = table[p[j]];
}
}
uchar* p = lookUpTable.data;
for( int i = 0; i < 256; ++i)
p[i] = table[i];