Skip to main content

Posts

Showing posts with the label Basic

8 pin 2 digit seven segment display driver

This is a simple microcontroller base implementation to drive 2 digit 8 pin seven segment display (SSD) unit. For this implementation we use Microchip’s PIC16F84A – 8bit microcontroller unit and Proton+ PICBASIC compiler. Compared with other SSD units this SSD unit needs special algorithm to drive it. Some of the logical procedures to drive this SSD unit are illustrated in below, This illustration is valid only for single digit of target SSD unit and it can easily expand to 2 digits by activating pin no 5 and 6 with appropriate inputs. In attached design we use PIC16F84A MCU with 4 × 2SC945 general purpose NPN transistors to drive this TOD-4201LR SSD unit. This proposed system is design to work with +5V DC power supply and may not need any additional data source. Supplied software for this project is for demonstration purposes only and it perform counting from 0 to 99 and then reset back to 0. To generate the output user need to assign required number to the value variable an...

User Programmable Automatic Night Light

In this project we developed user programmable automatic night light using Microchip's 8bit MCU – PIC12F675. In this design user may be able to program and store the time duration of the master light. Compared with other designs this circuit use transformerless power supply, and TRIAC to control the master light. Complete MCU software source code, operating guides and circuit diagram of this project is available to download at here . To get more information about transformerless power supply please refer the Microchip application note AN954 , and ST application note AN438 for MCU and TRIAC interfacing.

Prithvi Development Studio for PIC Microcontrollers

Prithvi Development Studio is my new project to build an IDE for GCBASIC – PIC Programming language. Prithvi is developed using Borland Delphi 7 programming language and currently it supports over 300 PIC Microcontroller devices. This IDE is based on GCBasic, and GPUtils, so users can directly produce hex files from Basic source code without using any 3rd party tools. (e.g: without using Microchip’s MPLAB - ASM). Current version of Prithvi Development Studio supports wide range of PIC 10F, 12x, 16x and 18x devices and Prithvi Development Studio also ship with wide range of GCBasic support libraries such as X10, LCD, ADC, RS232, USART, EEPROM, etc. Current version of Prithvi Development Studio has following features, Source code editor with syntax highlighting Intermediate code (Assembler), Hex code viewer Automatic completion, suggestions and parameter information Installable library system Project manager and source explorer to speed up the development process Inbuilt help viewer To-D...