The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University
HANEL

SERIAL COMMUNICA-TION


PROGRAMMINGSCON Register


(cont’)


‰SM0, SM1


¾They determine the framing of data by specifying the number of bits per character, and the start and stop bits


‰SM2


¾This enables the multiprocessing capability of the 8051


Serial Mode 1, 8-bit data, Serial Mode 2Serial Mode 3
Serial Mode 01 stop bit, 1 start bit
SM1^0101
SM0^0011

Only mode 1 is of interest to us
Free download pdf