B. E./B. Tech. Degree examination, april/may 2011 Sixth Semester


Write a program to swap two numbers using 8051?



Download 1.56 Mb.
View original pdf
Page42/86
Date16.12.2020
Size1.56 Mb.
#54858
1   ...   38   39   40   41   42   43   44   45   ...   86
EE2354 auque
11. Write a program to swap two numbers using 8051?
MOV A,#data SWAP Ab. Write a program to subtract two bit numbers & exchange the digits using 8051?

MOV AF
MOV R
SUBB AR SWAP A

13. Write a program to subtract the contents of R of bank from the contents of R of
bank 2 using 8051?
MOV PSW,#10
MOV AR
MOV PSW,#00
SUBB AR
14. Explain the operating mode of 8051 serial ports
In this mode serial enters & exits through RXD,TXD output the shift clock 8 bits are transmitted or received 8 data bits(LSB first).the baud rate is fixed at 1/12 the oscillator frequency.
15. Explain the operating mode of 8051 serial ports
In this mode 11 bits are transmitted (through TXD)or received(through RXD)A start bit data bits(LSB first),a programmable 9
th data bit & a stop bit) ON transmit the 9
th data bit(TB*in SCON) can be assigned the value of 0 or or for eg: the parity bit(p,in the PSW) could be moved into TB. On receive the 9
th data bit go into the RB in special function register
SCON while the stop bit is ignored.the baud rate is programmable to either 1/32 or 1/64 the oscillator frequency.

Download 1.56 Mb.

Share with your friends:
1   ...   38   39   40   41   42   43   44   45   ...   86




The database is protected by copyright ©ininet.org 2024
send message

    Main page