answersLogoWhite

0

📱

Microprocessors

A microprocessor is the heart of any computer, whether it is a server, a desktop machine, or a laptop. This single chip contains the arithmetic, control, and logic circuitry necessary to interpret and execute computer programs.

2,578 Questions

Flow chart on steps of microprocessor programming for students project?

#include <p18f4580.h>

#pragma config OSC = IRCIO67

#pragma config WDT = OFF

#pragma config LVP = OFF

#pragma config PBADEN =OFF

#define Q1 PORTDbits.RD0

#define Q2 PORTDbits.RD3

#define Q3 PORTDbits.RD1

#define Q4 PORTDbits.RD2

#define SW1 PORTBbits.RB1

#define SW2 PORTBbits.RB2

#define SENSOR1 PORTBbits.RB3

#define SENSOR2 PORTBbits.RB0

void main()

{ TRISB = 0;

PORTB = 0;

TRISD = 0;

PORTD = 0;

while (1)

{

if ((SW1==1)&&(SW2==0)&&(SENSOR1==0)&&(SENSOR2==0))

{

Q1=1; //clockwise

Q4=1;

Q2=0;

Q3=0;

}

else if ((SW1==0)&&(SW2==0)&&(SENSOR1==1)&&(SENSOR2==0))

{

Q1=0;

Q2=0;

Q3=0;

Q4=0;

}

else if ((SW1==0)&&(SW2==1)&&(SENSOR1==0)&&(SENSOR2==0))

{

Q2=1; //counter clockwise

Q3=1;

Q1=0;

Q4=0;

}

else if ((SW1==0)&&(SW2==0)&&(SENSOR1==0)&&(SENSOR2==1))

{

Q1=0;

Q2=0;

Q3=0;

Q4=0;

}

}

}

What are the functions of the CPU in computer?

A CPU processor or central processing unit controls the functions of most electronic products. The CPU accepts the input data, processes the information and sends it to the component that is in charge of executing the action. CPUs are also known as microprocessors and are at the center of any computer system. Although CPUs are most often thought of as a computer chip, they can also be found in many other electronic devices including cell phones, hand held devices, microwaves, television sets and toys.

What are Core capabilities?

Core capabilities are those skills that differentiate the manufacturing from its competitors

What are names of five different processors used in personal computers?

Intel Core Duo

Intel Core 2 Duo Intel Core 2 Quad Intel Celeron AMD Athlon XP

AMD Phenom X2

And two for laptops:

Intel Atom

AMD Turion X2

Why i can't enable and disable interrupts of my AVR for several times?

It's impossible :o) You can disable and enable any interrupt source by setting or clearing corresponding bit in proper control register. Show me your code - we will see what can be done wrong.

Asar

fotousa@interia.pl

You can set bit I on SREG by 1 to enable global interrupt or by 0 to disable it.

in c programming you can write

#asm ("sei") //to enable global interupt

#asm ("cli") //to disable global interupt

M. Wicaksono A.

How a baseband processor works?

It buffers and routes data from source to another It buffers and routes data from source to another

What is cache and what is its purpose?

Cache is a high speed memory which is basically used for the following reason:

As the speed of the main memory is not as much as the speed of the CPU.so just to compensate the speed mistmatch between the CPU and main memory the cache is used in between the two.so whenever the CPU asks for any data its being checked with the cache memory and if present then "cache hit" occurs or else "cache miss" occurs wher the CPU takes the data form the main memory and that data's cpoy is being send to the cache for any further operation where the CPU can request for the same data.

Anand bhat(mca@kiit-870024)

ALP program for palindrome number in 8086?

Data segment

msg1 db 10,13,'enter the string: $'

msg2 db 10,13,'string is palindrome$'

msg3 db 10,13,'string is not palindrome$'

new db 10,13,'$'

inst db 20 dup(0)

data ends

code segment

assume cs:code,ds:data

start:

mov ax,data

mov ds,ax

lea dx,msg1

mov ah,09h

int 21h

mov bx,00

up:

mov ah,01h

int 21h

cmp al,0dh

je down

mov [inst+bx],al

inc bx

loop up

down:

mov di,0

dec bx

jnz check

check:

mov al,[inst+bx]

cmp al,[inst+di]

jne fail

inc di

dec bx

jnz check

lea dx,new

mov ah,09h

int 21h

lea dx,msg2

mov ah,09h

int 21h

jmp finish

fail:

lea dx,msg3

mov ah,09h

int 21h

finish:

int 3

code ends

end start

end

What is the difference between CPLD and microcontroller?

Complex programmable logic device (CPLD) are programmable digital logic devices which are simpler and lesser capacity than FPGA (Field Programmable Gate Arrays) devices. CPLDs have a non-volatile memory (i.e. turning off the power does not require reprogramming of CPLD)

Microcontrollers (uP or MCU) are small and cost effective but self contained computer chips (compared to general purpose processor chips used in personal computers) used for embedded applications in industrial, consumer electronics products and automobiles. Microcontrollers may or may not have inbuilt memory.

CPLDs are used for implementing logic but they do not have a embedded processor like in microcontrollers.

- Neeraj Sharma

Which micro-controller is easy to use and program as line follower or obstacle avoiding autonomous robot for college level competition?

All micro-controllers are going to be difficult to use, because you build your circuits around them, not vice versa. From a programmer perspective, the BASIC Stamp uses PBasic which is very easy to use and understand. The PIC16F84 Micro series uses assembly, but only has 30 commands and is much more powerful IMHO.

Bit addressable registers in 8051?

just a note: Clarify your question

Bit-addressable registers are registers that its bits can be modified individually. that means if you have register named "ACC" that is bit addressable , you can change its bits (D0 -D7) individually by special instructions SETB and CLR.

ex: SETB ACC.3 ; will set bit number 4 (remember bit 0) in the register

in 8051 there are many bit-addressable registers such as A (ACC), B, SCON, PCON, TCON, p0,p1,p2,p3 .

best wishes,

drdigital.

Where can one find best processors?

There are a lot of great sites that give great electronic deals. Definitely check out Amazon and their Deals of the Day. You may also want to check out, Brandsmart USA, Best Buy, Newegg, and Microcenter.

How long does it take to load 15 MB at 40 kb a second?

6m 24s

You Have 1024 Kb's In A Mb. So Take 1024 x 15, Since The File Is 15 Mb, Instead Of 1 Mb. You Will Get 15,360. Then You Take That Divided By 40 To See How Many Seconds It Will Take To Download The File, Which Will Give You 384. 384s In Turn Is 6m 24s For The File To Download.