Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Auto modification of pic software

Auto modification of pic software

Auto modification of software means that a computer (PC) changes (and downloads) pic software automatically into a pic. This means a pic can be re-programmed without human intervention.
In this observation one pic is flashing a led. The other pic is equipped with an LDR so it can ‘see’ the LED. It’s objective is to copy the flashing of the LED from the other pic.

In order to do this the pic must be able to distinguish between light and dark, using a threshold value. At the start of the program this threshold value is wrong. By trail and error the computer will determine what the correct threshold value is and modify the program in the pic to reflect this correct value. Yep, right: auto calibration done the hard way!

So, how does the modification process work. At the start of the sequence the computer writes the first version of the pic program to disk. Then it is compiled and downloaded into the pic. The program in the pic looks at the led of the other pic (which is doing nothing, just flashing) and tries to see the difference between light and dark.

Visit Here for more.

 

More Articles to Read

A 3D-printed e-drum pad
A 3D-printed e-drum pad
Interactive geodesic LED dome = extreme geometric fun!
Interactive geodesic LED dome = extreme geometric fun!
Guide to build your 3.3v power supply
Guide to build your 3.3v power supply
SDR radio breathes life into a 75 year old Marconi CR100
SDR radio breathes life into a 75 year old Marconi CR100
A Time for Ranting!
A Time for Ranting!
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
Robotic Cat Laser
Robotic Cat Laser
LED traffic light
LED traffic light
Estimating Power for ADSP-BF561 Blackfin® Processors
Estimating Power for ADSP-BF561 Blackfin® Processors

Top




Shares