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.
Share with your friends: |