Home › Magazines › 2002 › May › Microcontroller Basics Course (5)

Microcontroller Basics Course (5)

the UART, timers and interrupts

Published in issue 310, May 2002

The previous instalments of the Microcontroller Basics Course have primarily concentrated on programming languages. Now it’s time to take a closer look at the microcontroller hardware. This instalment deals with the UART, timers and interrupts.The internal serial interface of every 8051 microcontroller makes it possible to create a simple data link to a PC. Since the interface is implemented as an autonomous hardware UART, the processor is scarcely burdened by this task. Bytes are received and sent by the UART operating fully in the background. The only things requiring attention are correct initialisation and the ongoing transfer of data to and from the UART.To understand exactly how the UART is programmed, we need to look at the special function registers (SFR) for the serial interface. To initialise the interface, we must first load SCON register with suitable parameters (see Table 1).

Free downloads

010208-16.zip

Free download

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (e025030.pdf)
10 Elektor Credits
 

Free downloads 

010208-16.zip

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.

Elektor PCBs at 25% OFF