Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
12v15cp bulb
Hi all,
I am helping my friend in doing a basic electricity demostration in kindergarten. We would like to show to the children that when we insert the battery to the circuit, the light bulb switches on. I bought a 12W light bulb in a shop, and I would like to buy a AA battery...
vinash, as AT89C4051 does not have a "real" ADC, the ADC in your application note is made by a comparator and some simple RC circuit. You have to read the document before you want to get the analog value. It should not be done by simply typing adc_data=P1_1.
Please check carefully about your...
hi,
you better check how the ADC works in your document first. if you wanna put the value from P1.1 and store it in adc_data, it should be
adc_data = P1_1;
for driving the 7 segment LED, you have to enable the LED before sending out the value, the P1.2 and P1.3 in the schematic, enable one LED...
I don't really know how this schematic works as an ADC, so I can't answer you how to get the data.
For the input, vinash you should be right. You may just try in your circuit.
As you said you can't display in LED, I wonder what code you wrote for controlling your LED. Do you mind posting it for us?
If you are trying to assign 8bit data to adc_data, isn't it adc_data=xxx???
if you are using the circuit provided in your document, seems that some pins in P1 is already used for your ADC, how you can connect the LED by P1?
I wonder what data you stored in adc_data and also the schematic you are using.
If you use the whole P1 (8 pins) to control the LED, where you get the adc_data?
Also, what is the meaning of P1_1=adc_data?
From my opinion, 10-bit ADC is not a consideration for ?-bit MCU. Same as what kieennx said, n-bit MCU contains n-bit data bus.
If you read carefully about the datasheet, you may find the format of the ADC return value on p.286 of Chapter 17, and you will know more about it. Even it is a 10-bit...
plz help
Actually there are many temperature sensors in the market. You may browse the internet (some famous IC companies) to check your sensor requirements. If you want to pass the value of the senor to the MCU, you may try some digital temperature sensor.
HTH
What do you mean by converting pixel values to binary values?
if there is a 8-bit image, you got a value 129 from a pixel, then you want to change it to 1000 0001??
If so, what you need is a function change from decimal to binary, but not a image processing problem. As I remember, there is a...
Simple DCT problem
What programming language you are using to write this program?
If you are using something other than Matlab, you may use Matlab with DCT function to test your result.
HTH
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.