In the context of the 8051 microcontroller, Tmp 1 and Tmp 2 refer to temporary registers or memory locations used during the execution of instructions. These temporary registers are often utilized by the CPU to hold intermediate data or results during arithmetic and logical operations. They help optimize processing by reducing the need to access slower main memory frequently. However, specific naming conventions like Tmp 1 and Tmp 2 may vary, as the 8051 architecture mainly utilizes general-purpose registers for such temporary storage.
Intr timer interrupt 0 and 1 external interrupt 0 and 1
The bit addressable memory in 8051 is compose from 210 bits: - bit address space: 20H - 2FH bytes RAM = 00H - 7FH bits address; - SFR registers; The following addresses are NOT bit addressable, only 1-byte addressable: - 32 bytes RAM from 00H to 1FH (R0 - R7 registers in all four banks); - 80 bytes RAM general user from 30H to 7FH.
1
string sorting means sorting the string array in a specific order an example is given below import java.io.*; public class stringArray {public static void main(String args[])throws IOException {String A[]=new String[10];int i=0,j=0;String tmp; InputStreamReader read=new InputStreamReader(System.in); BufferedReader in=new BufferedReader(read); System.out.println("enter the names"); for(i=0;i<10;i++) A[i]=(in.readLine()); for(i=1;i<10;i++) { for(j=0;j<10-i;j++) { if(A[j].compareTo(A[j+1])>0) {tmp=A[j]; A[j]=A[j+1]; A[j+1]=tmp; } } } System.out.println("the sorted array is "); for(i=0;i<10;i++) System.out.println(A[i]); } } if the input is: enter the names kurian avinash thomson satheesh rahul rohir anand basil glen james the output will be : the sorted array is anand avinash basil glen james kurian rahul rohir satheesh thomson
In PIC Microcontroller , During the Fatching of instruction no. 1it needs of one clock cycle, then after for the exicution of instruction no. 1 it reqires one extra clock cycle , but at the same time it fatches inst. no. 2 . Similarly, during the execution time of inst. no. 2 , it fatches inst. no. 3 and so on.In other words we can say that, PIC Microcontroller requires 2 clock cycle at starting the after it requires only one clock pulse. In this way we can say that instruction pipelining is done in PIC microcontroller.
Intr timer interrupt 0 and 1 external interrupt 0 and 1
80 - mos technology (chip is based on mos tech.). 5- intrrupts. 1- serial port. from Ravi ece final year.
Because it is 8- 8-bit controller (8000 series) 5- It has 5 interrupts 1- It has only one serial communication port
8051 MICROCONTROLLER has no in built A/D Converters but PIC has it. 8051 MICROCONTROLLER based on CISC architectuture while PIC based on RISC archirecture. 8051 has 250 instruction which take 1 to 4 machine cycle to execute while PIC has nearly 40 instruction.
bit addresing is a microcontroller, which is meant by 0 and 1.
The Young and the Restless - 1973 1-8051 was released on: USA: 13 January 2005
library IEEE; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity counter is port(Clock, CLR : in std_logic; Q : out std_logic_vector(3 downto 0)); end counter; architecture archi of counter is signal tmp: std_logic_vector(3 downto 0); begin process (Clock, CLR) begin if (CLR='1') then tmp <= "0000"; elsif (Clock'event and Clock='1') then tmp <= tmp + 1; end if; end process; Q <= tmp; end archi;
The bit addressable memory in 8051 is compose from 210 bits: - bit address space: 20H - 2FH bytes RAM = 00H - 7FH bits address; - SFR registers; The following addresses are NOT bit addressable, only 1-byte addressable: - 32 bytes RAM from 00H to 1FH (R0 - R7 registers in all four banks); - 80 bytes RAM general user from 30H to 7FH.
int gcd (int a, int b) { if (a<0) a= -a; if (b<0) b= -b; while (a!=0 && b!=0 && a!=1 && b!=1) { int tmp; if (a>b) tmp= b, b= a, a= tmp; a= a%b; } if (a==0) return b; else if (b==0) return a; else return 1; }
8051 MICROCONTROLLER has no in built A/D Converters but PIC has it. 8051 MICROCONTROLLER based on CISC architectuture while PIC based on RISC archirecture. 8051 has 250 instruction which take 1 to 4 machine cycle to execute while PIC has nearly 40 instruction
1
You divide your frequency by 1 then divide that answer by the machine cycle. The 8051 uses 12. So say your frequency is 30MHz you divide that by 1 which gives you 33.3n. then divide that by 12 which equals 2.77nS