Chandu yadav

Chandu yadav

810 Articles Published

Articles by Chandu yadav

Page 30 of 81

Vcc and Vss pins

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 18K+ Views

VCC (Voltage Common Collector) is the higher voltage with respect to GND (ground). VCC is the power input of a device. It may be positive or negative with respect to GND. When the only positive power supply is used then VSS (Voltage Source Supply) means ground or zero. The Intel 8085 Microprocessor needs a power supply of +5 V DC for its working. Pin 40 of Intel 8085 is the Vcc pin. It should be connected to +5 V DC power supply. Pin 20 of 8085 is the Vss pin.

Read More

How to get information about network roaming is enabled or not in android?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 662 Views

This example demonstrate about How to get information about network roaming is enabled or not in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken a text view to show information about network roaming is enabled or notStep 3 − Add the following code to java/MainActivity.xmlpackage com.example.myapplication; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.RequiresApi; import android.support.v4.app.ActivityCompat; import ...

Read More

How to get device location in android?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 686 Views

This example demonstrate about How to get device location in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken a text view to show device location.Step 3 − Add the following code to java/MainActivity.xmlpackage com.example.myapplication; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.RequiresApi; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.telephony.TelephonyManager; import android.widget.TextView; import static android.Manifest.permission.ACCESS_COARSE_LOCATION; import static android.Manifest.permission.READ_PHONE_NUMBERS; ...

Read More

How to get default Sim Operator id in android?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 575 Views

This example demonstrate about How to get default Sim Operator id in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken a text view to show device sim operator id.Step 3 − Add the following code to java/MainActivity.xmlpackage com.example.myapplication; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.RequiresApi; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.telephony.TelephonyManager; import android.widget.TextView; import static ...

Read More

How to insert current date/time in MySQL?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 6K+ Views

To insert current date/ time in MySQL, use the now() function. Let us now see an example.At first, we will create a table. The CREATE command is used to create a table.mysql > create table CurrentDateTime -> ( -> CurrentTime datetime -> ); Query OK, 0 rows affected (1.14 sec)Syntax to insert the current date/time with the help of insert command and now()mysql> insert into CurrentDateTime values(now()); Query OK, 1 row affected (0.11 sec)To check that the current date/ time is inserted in the table or not, use the select command.mysql> select *from CurrentDateTime; The following is the output that ...

Read More

Is it possible to use UPDATE query with LIMIT in MySQL?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 11K+ Views

Yes, it is possible to use UPDATE query with LIMIT in MySQL. Let us see how.For our example, we will first create a table. The CREATE command is used to create a table.mysql>CREATE table tblUpdateLimit -> ( -> id int, -> name varchar(100) -> ); Query OK, 0 rows affected (0.53 sec)Records are inserted with the help of INSERT command.mysql>INSERT into tblUpdateLimit values(1, 'John'); Query OK, 1 row affected (0.54 sec) mysql>INSERT into tblUpdateLimit values(2, 'Carol'); Query OK, 1 row affected (0.12 sec) mysql>INSERT into tblUpdateLimit values(3, 'Smith'); Query OK, 1 row affected (0.10 sec) mysql>INSERT into ...

Read More

How to escape single quotes in MySQL?

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 593 Views

We can escape single quotes with the help of the SELECT statement. For instance, when single quotes are encountered in a name, eg. “Carol’s”.Let us see the syntax.SELECT ‘SomeValue’;Here is an example that display how to include text with single quotes.mysql> SELECT 'Carol's Taylor.'; The following is the output.+-------------------+ | Carol's Taylor | +-------------------+ | Carol's Taylor | +-------------------+ 1 row in set (0.00 sec)

Read More

Intel 8259A Programmable Interrupt Controller

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 778 Views

8085 microprocessor, consists of five interrupt input pins named as RST 5.5, RST 6.5, RST7.5, INTR, and TRAP respectively. When there are a maximum of five I/O devices they want to perform driven interrupt data transfer, which is connected to the five interrupt input pins. Now considering the case where there are more than five I/O devices which would like to perform an interrupt driven data transfer scheme. Here for some pins termed as an interrupt, we use more than one I/O device to the process. Most of the microprocessors nowadays have the configuration of these interrupt input pins. There ...

Read More

Slave register in 8259

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 973 Views

It is also an 8-bit register. The processor here writes to SLR but cannot read. The content of this register here implies a different meaning for Master8259 and Slave 8259. Through Master 8259 information is carried through the IR inputs to which Slave 8259s are connected. If the SLR of Master 8259 is loaded with the value 00001111, then it signifies that:The Slave exists on 8259 namely called as IR0, IR1, IR2 and IR3.No Slave exists on 8259 on this registers IR4, IR5, IR6 and IR7.A Slave 8259 serves information about the IR input of Master 8259 to which the ...

Read More

8085 Program to find Square of a number using look up table

Chandu yadav
Chandu yadav
Updated on 26-Jun-2020 4K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program is mainly for finding a square of a number.Problem StatementWrite 8085 Assembly language program to find the square of a number using Look-Up Table. DiscussionIn this example, we are using Look-Up table to find the square of a number. The main limitation of this program is that it can find a square in range 0-F. When the input is above F, it will fail. We are storing the square result into the memory. When the number is greater than F, we are storing FFH into memory to indicate an ...

Read More
Showing 291–300 of 810 articles
« Prev 1 28 29 30 31 32 81 Next »
Advertisements