Skip to main content

Featured post

Digital Clock On LCD (16x2) PIC16F1937 Used In FlowCode Programming and Simulation

In this sample project we are using FlowCode Simulation Software for Programming and Testing with PIC16F1937.It shows how to use and simulate and program LCD for use in different projects.In this Project we have created digital clock(Using two digit each for seconds minute and hours in 24 Hour format on LCD) on 16x2 Liquid Crystal Display.Varying the delay and write-erase sequence can be manipulated to get desired result.

Here is the Flow code program:
LCD(16x2) Display Related Programs
ADC-Voltage as Float(LCD with PIC16F1937)
ADC-Voltage as String (LCD with PIC16F1937)
ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
Printing Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display
Printing a Two line(String) message (LCD 16x2)
Printing a formatted number on ( LCD 16x2 ) Using PIC16F88

LCD (Liquid Crystal Display 16X2):-
Its screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very…

Masked inputs with PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using Flow Code Simulation Software for Programming and Testing  with PIC16F88 for switching LED ON or OFF .Here is the basic program for starters.In this masking of Inputs is used.

Flow code program:

In video you will be able to see stepwise execution of program and their effect on LED array as they blink.You will notice only alternate LEDs are blinking and rest are not even if switching on the Toggles s/w.

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Basic Theory Of Input Pins:- Most of a microcontroller’s I/O pins can be configured as an output or an input. Part 2 described the basics when a pin is configured as an output. This section describes it when it is configured as an input. A special register will control if a pin is an input or output. You need your program to set up the port direction registers as an early step when power is applied to the chip or it comes out of reset

I/O pins are usually configured in groups of 8 bit I/O ports. The program can read the port and will get a value between 0 and 255 depending on the states of the input pins. In assembly language programming there will usually be op code instructions that allow reading a single pin of a port.

C compilers will usually implement single bit functions as well. I/O functions are not defined in standard K&R C, and each compiler handles them a little differently. Otherwise the programmer will have to read the entire port and mask off the other bits.

A pin with a low voltage (ideally 0 volts) will read as a logical 0. A pin with a voltage near Vcc (or Vdd) will read as a logic 1. As a first approximation, any input less than half of Vcc will read as a 0, and any input over Vcc/2 will read as a 1.

Pull ups and pull downs:- Sometimes you want an input to read as a 1 or 0 as a default. Suppose you have a sensor on a cable that plugs into your device. It is possible that the user will disconnect the cable. If the input pin is left floating, it might sometimes read as a 1, sometimes as a 0. Your code might interpret this as changes from a sensor and not act the way you want.Putting a pull up resistor will set the input voltage near Vcc and it will read as a 1. A pull down resistor will bring the voltage near 0V, and it will read as a zero.

Switching between Input and Output Mode:- In some applications you may want a pin to be an input some of the time, and an output at other times. An example is where the microcontroller is communicating with another system or IC.

Sometimes the microcontroller is sending data to another IC, and at other times the IC is sending data to the microcontroller. I2C and Two Wire Interfaces are common examples where an I/O pin is used as both an input and output.One thing to keep in mind is that some microcontrollers require one or more clock cycles after a direction change before the data on the pin can be trusted.

Flow code Simulation and how to do Video Tutorial:

You can Download Flow Code Program File :
C Code
ASM Code
Hex Code
Flow Code Program

Comments

KeyWords

Show more

Popular posts from this blog

Digital Clock On LCD (16x2) PIC16F1937 Used In FlowCode Programming and Simulation

In this sample project we are using FlowCode Simulation Software for Programming and Testing with PIC16F1937.It shows how to use and simulate and program LCD for use in different projects.In this Project we have created digital clock(Using two digit each for seconds minute and hours in 24 Hour format on LCD) on 16x2 Liquid Crystal Display.Varying the delay and write-erase sequence can be manipulated to get desired result.

Here is the Flow code program:
LCD(16x2) Display Related Programs
ADC-Voltage as Float(LCD with PIC16F1937)
ADC-Voltage as String (LCD with PIC16F1937)
ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
Printing Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display
Printing a Two line(String) message (LCD 16x2)
Printing a formatted number on ( LCD 16x2 ) Using PIC16F88

LCD (Liquid Crystal Display 16X2):-
Its screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very…

Motor Types- Special Types of Motor

Motor Types- Special Types of Motor
1. Iron less or core-less rotor motorNothing in the principle of any of the motors described above requires that the iron (steel) portions of the rotor actually rotate. If the soft magnetic material of the rotor is made in the form of a cylinder, then (except for the effect of hysteresis) torque is exerted only on the windings of the electromagnets. Taking advantage of this fact is the core less or iron less DC motor, a specialized form of a PM DC motor. Optimized for rapid acceleration, these motors have a rotor that is constructed without any iron core. The rotor can take the form of a winding-filled cylinder, or a self-supporting structure comprising only the magnet wire and the bonding material. The rotor can fit inside the stator magnets; a magnetically soft stationary cylinder inside the rotor provides a return path for the stator magnetic flux.

Fibonacci Numbers Series Progression Using While Loop - C Programming Examples

As we have started C Programming coding with Example Series, We have published last posts
"Write A Program For SUM of Infinite HP"
"Write A Program To Find SUM of AP" and
"Write A Program To Find SUM of GP Sequence".
We have chosen to start with Arithmetic Series and in this post you will find some basic idea and some useful concepts about Fibonacci Numbers .You can download C Codes below.Please let us know your feedback.

Fibonacci Numbers Progression - Series - Sequence to Nth Term Step-wise Video Tutorial(See C- Codes Below ):

Fibonacci Sequence:-The Fibonacci Sequence is the series of numbers:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...The next number is found by adding up the two numbers before it.

The 2 is found by adding the two numbers before it (1+1).Similarly, the 3 is found by adding the two numbers before it (1+2),And the 5 is (2+3),and so on!

Fibonacci Series Using Array And For Loop - C Programming Examples

As we have started C Programming coding with Example Series, We have published last posts
"Write A Program For SUM of Infinite HP"

"Write A Program To Find SUM of AP" and

"Write A Program To Find SUM of GP Sequence".

We have chosen to start with Arithmetic Series and in this post you will find some basic idea and some useful concepts about Fibonacci Numbers .You can download C Codes below.Please let us know your feedback.

In this post we are doing again Fibonacci Series but with different approach.In last post "Fibonacci Progression Using While Loop" you will see how to generate Fibonacci Numbers by using concepts of  Do-While Loop.In this post we will talk about another loop i.e. For Loop and side by side Concept of Arrays will be discussed and demonstrated.
Fibonacci Series - Sequence ( Using Array And For Loop ) Video Tutorial(See C- Codes Below ):

For Loop Concept: FOR Loops are the most useful type. The syntax for a for loop is  for ( variable init…

String To Float Data Type Conversion Using Microchip Controller PIC16F877A In Flowcode Programming Software

In previous post Float to String Conversion we have seen how to convert Float types of data in String type of Arrays using simple programming techniques.In this project we will be using FlowCode Software for writing a program to convert String Array or Array of Character to Floating type of Data using micro-controller of Microchip company PIC16 Family Micro controller PIC16F877A for testing and Simulation.This Project shows how we are outputting results values to LCD ( Liquid Crystal Display ).Varying the delay and write-erase sequence can be manipulated to different types of combination and lots of desired result.
Flow code program Snapshot(Above).

Here value used is of PI=3.1473



Command used is  string = FloatToString$ (float) float = StringToFloat$ (string)
Recent Related Programs
LCD Interfacing With Keypad PIC16F877A
Keypad and LED Interfacing With PIC16F88
More for Reading
ADC-Voltage as String Displaying Value On LCD with PIC16F1937
ADC-Voltage as Float Value Displaying On LCD
Printing Num…

INDEX-Tutorials for Flow Code Programming and Simulation

Categorized Topics
We are using Flow Code Simulation Software from MATRIX for Programming and Testing,You will find topics from Flow Code Programming and Simulation.You can request a topic here.If some links are not working please let me know.
Flowcode is one of the world's most advanced graphical programming languages for micro-controllers. The great advantage of Flowcode is that it allows those with little to no programming experience to create complex electronic systems in minutes. Flowcode is available in multiple languages and currently supports the PICmicro, dsPIC, PIC24, AVR/Arduino and ARM series of micro controllers.You can Download the Demo Software HERE.







INDEX
Seven Segment LED Display 
Using Seven Segment with PIC16F88Counting using loops(Seven Segment with PIC16F88)Counting switch presses(Seven Segment with PIC16F88)
Timers and Counters
Timed Counter And Use of Timer Interrupt(PIC16F88)
ADC Programming
ADC Simulation In Flow CodeServo with ADC control input ,Flow Code Simulati…

Printing a Two line(String) message (LCD 16x2) PIC16F88 FlowCode Programming and Simulation

We have been using FlowCode Simulation Software for Programming and Testing with PIC16F88.It shows how to use and simulate and program LCD for use in different projects.In this Project we are printing two line message on 16x2 LCD Display.In First line "Ingenuity Dias" is continuously displayed and in second line "tech-inventory" is displayed.Varying the delay and write-erase sequence can be manipulated to get desired result.

Here is the Flow code program:
LCD(16x2) Display Related Programs
ADC-Voltage as Float(LCD with PIC16F1937)
ADC-Voltage as String (LCD with PIC16F1937)
ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
Printing Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display

ADC-Voltage as Float Value Displaying On LCD with PIC16F1937 Microcontroller - Flow Code Simulation

Here is the example of using ADC and manipulating the variables for desired results.In this example we are using LCD to display the results of ADC calculation as float values on the LCD as seen in the examples code and videos.

Flow code program:
LCD(16x2) Display Related Programs
ADC-Voltage as String (LCD with PIC16F1937)ADC Sampling and outputting to a LCD(LCD with PIC16F1937)Printing Number on 16x2 LCD Display with PIC16F88Printing and Updating Number on 16x2 LCD DisplayPrinting a Two line(String) message (LCD 16x2) PIC16F88ADC SimulationServo with ADC control inputMotor TypesDC MotorHere is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Micro-controller used is PIC16F88 with 16x2 LCD for printing numbers and then updating them.

In video you will be able to see step-wise execution of program and their effect on LCD in panel which is by default in the software .

Here is the Flow code Simulation and how to do Video Tutorial:

You can Download Flow Code Pr…

Keypad and LED Interfacing With PIC16F88 FlowCode Programming And Simulation

In this sample project we are using FlowCode Simulation Software for Programming and Testing with PIC16F88.It shows how to use and simulate and program Keypad with LED for use in different projects.In this Project we are testing Keypad and outputting binary values to LED (Light Emitting Diodes ).Varying the delay and write-erase sequence can be manipulated to get desired result.

Above is the Flow code program:
LED Display Related Programs
Reading A Switch and outputting to a LED with PIC16F88
Outputting an 8-bit value with PIC16F88
Lighting an LED with PIC16F88
Masked inputs with PIC16F88
Controlling a single output pin Using PIC16F88

Testing Diodes/LED (Light Emitting Diodes) Using Digital Multimeter

Keypad Introduction:-The invention of the keypad is attributed to John E. Kerlin, an industrial psychologist at Bell Labs in Murray Hill.A computer keyboard usually has a small numeric keypad on the side, in addition to the other number keys on the top, but with a calculator-style arrangement of …

Printing and Updating Number on 16x2 LCD Display with PIC16F88 -Flowcode Simulation Tutorials

Using FlowCode Simulation Software for Programming and Testing with PIC16F88.It shows how to use and simulate and program LCD for use in different projects.In this Project we are trying to print number on 16x2 LCD Display,and then we will try to overwrite the numbers.

Flow code program:
LCD(16x2) Display


ADC-Voltage as Float(LCD with PIC16F1937)ADC-Voltage as String (LCD with PIC16F1937)ADC Sampling and outputting to a LCD(LCD with PIC16F1937)Printing Number on 16x2 LCD Display with PIC16F88Printing a Two line(String) message (LCD 16x2) PIC16F88