News

Lesson2 Switch Controlled LED (MikroC)

It is ADCON1 register and CMCON register.
– In PIC 16F877A, PORTA is a 6 bit wide bi-directional port. Aside from RA4 (PORTA BIT 4), Other PORTA pins are multiplexed with analog inputs and the analog VREF input for both the A/D converters and the comparators.

– In Active High Mode – On this mode , the PORT pin is High (Logic 1) when the button is pressed. Here the button is connected between the availability voltage and the PORT pin, a pull down resistor is connected between the PORT pin and ground.
PUSH BUTTON ON PORTA BIT 1 CONNECTED IN ACTIVE HIGH MODE

– In Active Low Mode – When the button is pressed the PORT pin is low (Logic 0). Here the PORT pin is connected through a pull up resistor to the supply voltage, and the button is connected between the PORT pin and ground .
PUSH BUTTON ON PORTA BIT 1 CONNECTED IN ACTIVE LOW MODE

**The button connected to the Master Clear Pin (MCLR) is the RESET BUTTON. It is used to RESET the MCU.

No comments:

Post a Comment

About Me

Blog Archive

– ?2016 (6) – ?August (4)

– ?February (2)

– ?2015 (12) – ?July (11) Flowcode Lesson 5 LCD Interfacing With PIC 16F877A…
Flowcode Lesson 4 Forward and Backward blinking …
Flowcode Lesson3 Switch Controlled LED
Flowcode Lesson 2 ADC and PWM with PIC 16f877A
Lesson 6 LCD Scrolling Display With PIC 16F877A (M…
Lesson 5 LCD Interfacing With PIC 16F877A (MikroC)…
Lesson 4 PWM to control Brightness of an LED (Mikr…
Lesson3 Push Button & PWM With PIC 16F877A (MikroC…
Flow code lesson 1 LED interfacing with PIC 16f877…
Lesson2 Switch Controlled LED (MikroC)
Lesson 1 Led Interfacing with PIC 16F877A (MikroC)…

– ?June (1)

Google+ Badge

Search This Blog

Popular Posts


Flowcode Lesson 2 ADC and PWM with PIC 16f877A
On this lesson we will try to explain to you the way you should use your Flowcode program to work with the PWM by using it to manage the …


Lesson3 Push Button & PWM With PIC 16F877A (MikroC)
Pulse Width Modulation (PWM) is a method where digital input is used to control the quantity of power transferred to a load. This can be u…


Lesson 9 Interfacing Keypad with PIC Microcontroller – MikroC
Keypad finds its application where there’s need for the user to enter alpha-numeric inputs. In this tutorial, we’ll consider how a matr…


Flow code lesson 1 LED interfacing with PIC 16f877A
In this example we develop a system that accepts a LED to blink and run continuously. NOTE : The flowcode version used here is (version …


Lesson 7 Interfacing Servomotor with PIC 16F877A – MikroC
Servos are utilized in cars, boats, helicopters, robots etc. They are geared DC motors with positional feedback control that permits for the ro…


Lesson 1 Led Interfacing with PIC 16F877A (MikroC)
Lesson 1 Led Interfacing with PIC 16F877A Please check the datasheet of the target microcontroller (MCU) to know the Registers associat…


Lesson 5 LCD Interfacing With PIC 16F877A (MikroC)
LCD Interfacing With PIC 16F877A (MikroC) Liquid Crystal Display(LCD) is used for displaying messages. In this tutorial we’re using 2×16 …


Lesson 6 LCD Scrolling Display With PIC 16F877A (MikroC)
In the previous tutorial, we talked a few 2×16 LCD, the variety of pins it has and their various functions. We also discussed on its differ…


Lesson 10 Multiplexing of Seven Segment Display with PIC Microcontroller – MikroC
In the previous tutorial we showed how to interface Seven Segment Display(SSD) with PIC microcontroller. For many applications like in digit…


Lesson 4 PWM to regulate Brightness of an LED (MikroC)
In Lesson 3, we made mention of how PWM can be utilized to manage LED brightness and motor speed control. On this tutorial we’ll see how we…

Be the First to comment.

Leave a Comment

Your email address will not be published. Required fields are marked *