Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

Switched LED

Switched LED

Use a switch to change the signal on a port, and turn the LED on and of based on that signal. A simple on off switch done the difficult way.
The 12F675 has pins that can either be digital or analog. If the port is not set to digital the input signal is always 0. It took many many hours and suggestions from Stef and Wouter before I managed to get that right. It’s done like this:

First the right addresses need to be obtained from the 12F675 data sheet. Now if you look at the data sheet you’ll see that the address for CMCON is 19h, while I use 1F. I copied this value from Wouter’s fader (for the 16F628 actually) and it worked ok. I have no idea why.

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