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

Single-Sided USB Charger
Single-Sided USB Charger
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
ESP8266 LED lighting: QuinLED v2.6 PCB
ESP8266 LED lighting: QuinLED v2.6 PCB
Switching LVDS Graphics in a Laptop Computer
Switching LVDS Graphics in a Laptop Computer
Teleknitting: TV-based string art
Teleknitting: TV-based string art
DIY Bubble Machine
DIY Bubble Machine
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Teardown of a Peaktech 6225A
Teardown of a Peaktech 6225A

Top




Shares