What is the basic difference between Latches and Flip flops?

Answer Posted / ayssar serhan

• LAT: (LATCH): This register is used to set output
values. Anything you want output on related pins must be
put on this.
Example
LATB=0xFF; //All PINs becomes high
LATB=0x00; //All pins becomes Low
LATB=0x03; //0000-0011 BIT 0 and 1 becomes high.

• PORT: This is used to get input from the PORTs.
Reading its value gives the actual levels applied on the
PINs. It must be noted that PORT is first configured as
input using the TRIS register. Suppose you connected a
switch as shown above on PORTB-0 then if you read PORTB it
will be 0000-0000 if switch is pressed and 0000-0001 if
switch is released.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ascii in reference to electronics?

679


What is the difference between binary code and bcd?

612


Explain why open-loop op-amp configurations are not used in linear applications?

852


Why collector is made larger than emitter and base?

569


write a program that changes 74H to 47H in 8085 assembly programming

1886






can any one tell difference between 802D and 810D???

2917


What is an asic?

614


Explain in wave guides tem wave propagation is not exit, give the physical interpretation?

518


Which of the following protection methods is NOT supported by FlexiHoppers with FIU19(E)?

1684


can anyone help me out to get HPCL officer's trainee paper's pattern....sureshec127@gmail.com

1527


What is pass band?

595


why we don't use photodiode in forward-bias?

3107


What are the different oscillators?

562


What are chebushev filters? Explain?

562


How to find conductivity?

577