Electronics tutorials including microcontroller, microprocessor, programing and circuits. Intended for beginners, electronics hobbyists, college students, professionals and educational purposes.

Configuration Bits in Mid-Range PIC Microcontrollers

Device Configuration Bits allows the programmer to adjust certain condition that determines the operation modes of the microcontroller. That is the state of Configuration Bits determines the mode in which device operates when it is powered. These configuration bits are mapped in the program memory location 2007h. This location can't be accessed during normal operation and can be accessed only at the time of programming. Their placement is automatically taken care by the device programmer or ICSP programmer. Hence selection...

Getting Started with PL2303 USB to UART Converter

USB to UART Converter is a very useful tool for Embedded Systems. If you haven't one, please try to buy it. It will definitely boost development speed of projects which uses UART modules like interfacing GSM, GPS, Bluetooth, Wi-Fi ...  By using it we can easily study these modules by sending data directly from your PC and analyzing the received data in your computer display without programming a microcontroller. Here we will use PL2303, one of the most popular USB...

Flow Control in Python

What are Control Flow statements? We often come across situations in which we need to divert or change the usual sequential flow of execution. The flow control statements can be classified into Conditional Statements and Iteration Statements. The Conditional Statements selects a particular set of statements for execution depending upon a specified condition. While the Iteration Statements repeatedly executes a block of statements with respect to some condition. This article assumes that you have basic knowledge in programming languages like C....

AM Generation using Simulink

Amplitude modulation (AM) is a one of the conventional technique used to transmit message signals using a carrier wave. The amplitude or strength of the high frequency carrier wave is modified in accordance with amplitude of the message signal. If you are a newbie to Simulink, please read our article Introduction to Simulink. First of all lets get into the basics.. Carrier signal (Sc) = Acsin(2πfct) Message signal (Sm) = Amsin(2πfmt)   # fm must be smaller than fc When carrier amplitude is altered with respect to...

Generating PWM with PIC Microcontroller using Hi-Tech C

PWM (Pulse Width Modulation) is a powerful technique used to generate analog voltage using digital signals. It has a wide variety of applications such as controlling average power delivered to a load, generating analog voltage level, sine wave generation and DC Motor speed control. PWM signals are ON-OFF signals (hence the name Pulse) whose ON duration are changed (hence Width Modulation) according to our requirements. The fraction of time period for which the signal is ON to total time period is...

AM Generation using Matlab

Amplitude modulation (AM) is a one of the conventional modulation technique to transmit signals using a carrier wave. The amplitude or the strength of a high frequency carrier wave is changed in accordance with the amplitude of message signal. Generation of AM in MATLAB is a piece of cake. If you are new to MATLAB, please go through our tutorials. First of all lets get into the basics.. Carrier signal (Sc) = Acsin(2πfct) Message signal (Sm) = Amsin(2πfmt) Where, Ac - Amplitude of the carrier signal Am - Amplitude...

Using UART of PIC Microcontroller – Hi Tech C

UART stands for Universal Asynchronous Receiver / Transmitter. It is a serial communication interface which uses two lines for sending (TX) and receiving (RX) data. As its name indicates it is an asynchronous communication interface, which means it doesn't need to send clock along with it as in synchronous communications. UART is the communication standard of our old computer's RS-232 serial port. Most of the Microchip's PIC Microcontrollers have built in USART Module. USART stands for Universal Synchronous Asynchronous Receiver...

Interfacing LCD with PIC Microcontroller – Hi Tech C

16x2 Character LCD is a very basic LCD module which is commonly used in electronics projects and products. It contains 2 rows that can display 16 characters. Each character is displayed using 5x8 or 5x10 dot matrix. It can be easily interfaced with a microcontroller. In this tutorial we will see how to write data to an LCD with PIC Microcontroller using Hi-Tech C Compiler. Hi-Tech C has no built in LCD libraries so we require the hardware knowledge of...

>