I have programmed a PIC16F648A to control some LED's (at the moment) and I have tested the circuit with 4.5v from 3 AA batteries and it works fine the LED's light up.
I then wanted to power the circuit from a single 9v battery so I had to regulate the voltage to 4.5v. to do this I used a ~4.7v zener diode and used the circuit like the one on this website: http://www.reuk.co.uk/Zener-Diode-Voltage-Regulator.htm.
But when I powerd the circuit up the LED's did not come on I checked the voltages around the circuit and it appears correct. I then just connected it to a single LED and it lit up so I think it could be a current problem. But after calculating the current their should be ample for the circuit. There is only 1 PIC and 4 LED's.
The zener diode is a 4.7v at 500mW.
The resistor is 1kΩ @ 1/4W
The battery is 9v.
The pic is a 16F648A and according to the datasheet the operating current is 120uA @ 1Mhz @ 2.0v.
I am running it at 4MHz @ 4.7v so I make that to be around 1.2mA if i just scale it up. so I cant see there not being enough current.
The circuit is very simple and im using the internal oscillator so im only using Vdd, Vss and the 4 ouput pins connected to LED's.
I also tried using a potential divider circuit with two 1KΩ resistors which produced the right voltage but still no LED's light up.
I then wanted to power the circuit from a single 9v battery so I had to regulate the voltage to 4.5v. to do this I used a ~4.7v zener diode and used the circuit like the one on this website: http://www.reuk.co.uk/Zener-Diode-Voltage-Regulator.htm.
But when I powerd the circuit up the LED's did not come on I checked the voltages around the circuit and it appears correct. I then just connected it to a single LED and it lit up so I think it could be a current problem. But after calculating the current their should be ample for the circuit. There is only 1 PIC and 4 LED's.
The zener diode is a 4.7v at 500mW.
The resistor is 1kΩ @ 1/4W
The battery is 9v.
The pic is a 16F648A and according to the datasheet the operating current is 120uA @ 1Mhz @ 2.0v.
I am running it at 4MHz @ 4.7v so I make that to be around 1.2mA if i just scale it up. so I cant see there not being enough current.
The circuit is very simple and im using the internal oscillator so im only using Vdd, Vss and the 4 ouput pins connected to LED's.
I also tried using a potential divider circuit with two 1KΩ resistors which produced the right voltage but still no LED's light up.