0% found this document useful (0 votes)
27 views

Atmel

ATMEL 89C51 internal registers are configured as a part of on chip RAM: therefore each register also has an address. There are 21 special function registers, each having a name and direct address. Serial port has four modes of operation, named 8-bit shift register mode, 8-bit UART mode (variable baud rate) and 9-bit uni-art mode.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Atmel

ATMEL 89C51 internal registers are configured as a part of on chip RAM: therefore each register also has an address. There are 21 special function registers, each having a name and direct address. Serial port has four modes of operation, named 8-bit shift register mode, 8-bit UART mode (variable baud rate) and 9-bit uni-art mode.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

The ATMEL 89C51 internal registers are configured as a part of on chip RAM: therefore each register also has

an address. There are 21 special function registers, each having a name and direct address, for example accumulator has name A and address ACC. 3.2 Input/output Ports 3.2.1 Port 0 Port 0 is a dual-purpose serving as general-purpose I/O port. For larger design it is used to multiplex the low byte of 16-bit address. 3.2.2 Port 1 Port 1 is a dedicated I/O port, used for interfacing to external devices. No alternate functionality is defined for the port. 3.2.3 Port 2 Port 2 is a dual-purpose port serving as general purpose I/O port, or as high byte of address bus for designs with external code memory exceeding 256 bytes. 3.2.4 Port 3 Port 3 is a dual-purpose port serving also as general-purpose I/O port, the individual pins of the port 3 also has some special features. 3.3 Interrupts There are total of five interrupts in ATMEL 89C51 as given below Two for external interrupts INT0 and INT1 Two for timer1 and timer0 One for serial port 3.4 Two 16-bit Timers The ATMEL 89C51 have two 16-bit timers, controlled by TCON register. They can be operated in four different modes named: 13-bit timer mode, 16-bit timer mode, 8-bit auto-reload mode, and split-timer mode. The mode and clocking sources of timer0 and timer1 are set by TMOD register. Other registers that are used in timer operation are THx, and TLx. The timer is started by setting the flag TRx and when an overflow occurs the TFx flag is set automatically. 3.5 Serial Interface The ATMEL 89C51 serial port has four modes of operation, named 8-bit shift register mode (fixed baud rate), 8-bit UART mode (variable baud rate), 9-bit UART mode (fixed baud rate), and 9-bit UART mode

(variable baud rate). The timer1 is used for setting the variable baud rate. The different flags used in serial interfacing are TI and RI. 3.5.1 MAX 232 Serial Interface IC

You might also like