Forverse – Reverse Control For Basic PRO Compiler

@ device PIC16F877 define osc 4 define adc_bits 8 main: trisb =$00 trisa =$ff adcon1 = 7 sw1 var porta.0 sw2 var porta.1 sw3 var porta.2 lamp1 var portb.0 lamp2 var portb.1 lamp1=0 lamp2=0 while(1) if(!sw1 and sw2 and sw3) then repeat lamp1=1 lamp2=0 pause 10 until(!sw3):endif if(sw1 and !sw2 and sw3) then repeat lamp1=0 lamp2=1 pause 10 until(!sw3):endif if(sw1 and sw2 and !sw3) then repeat lamp1=0 lamp2=0 ...

Read more

MICROCONTROLLER UART TUTORIAL using pic microcontoller

RS232 EIA232F TTL and USB Adaptor Examples Tx and Rx Baud Rate, Misc Asynchronous Tx Loop-Back Test $50 Robot UART What is the UART? The UART, or Universal Asynchronous Receiver / Transmitter, is a feature of your microcontroller useful for communicating serial data (text, numbers, etc.) to your PC. The device changes incoming parallel information (within the microcontroller/PC) to serial data which can be ...

Read more

The Theory of PIC Programming

Frustration! Have  you ever experienced frustration when you didn’t have a PIC programmer handy?  Your programmer breaks or you loaned it out to your buddy and you sit just twiddling your thumbs.  It left you feeling powerless because you couldn’t test that great idea, didn’t it?   If so, you share experiences similar to mine.  It is annoying at the very least and does not help creativity.  Or maybe it does ...

Read more

Button Debouncing using PIC16F84 Microcontroller

I apologise for the tardiness of this article; for the next little while, I will probably have to scale them back to once every two weeks or so. The reason is that I am proof reading the "Galley Proofs" of my new book, "PC PhD". This book discusses the PC's hardware and how to develop interfaces (along with the required software) for it. I'll be putting more information about it on my web page as the August ...

Read more

PICMicro Project using PIC16F84 Microcontroller

In the past two weeks, I discussed the prerequisits for starting your first application and the issues surrounding PICMicro programmers and what to look for. With this background, I am now ready to present what I think is a good first application for somebody learning about the PICMicro. This circuit is not as simple as what I started with in "Programming and Customizing the PIC Microcontroller", but can be ...

Read more
Scroll to top