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.
Actually using the getchar and putchar was stupid..I used printf("%0.1f",temperature)..but still its not printing any data..I used the functions printf and while inside "void main(void)"..
I mean I've tried to print the data "temperature" which contains the ADC result with "printf" inside the "void main(void)" but its not showing any result..whereas I printed a string on Termite 2.6 to test the USART using printf and it was a success..
---------- Post added at 23:18 ----------...
Hi,
Once again I'm back with my stupidity..I'm working on a project that process an ADC data and transmit them to the PC using a DB9 COM port.For that I need the USART working.For testing purposes I'm using HyperTerminal 7 .I came up with a program (its worse enough to laugh) but its highly...
Thanks again alexan_e...It worked.Changing the variable types at project configuration did the job...I am posting the final code which actually works along with all the settings..
Settings::
Chip:Atmega16
Clock:16MHz
ADC Channel:2nd ADC channel is used
ADC frequency:250KHz (Use this frequency...
http://www.8051projects.net/e107_files/public/1288161733_30870_FT37769_cd.png[COLOR="Silver"]
---------- Post added at 11:59 ---------- Previous post was at 11:58 ----------
I compiled it with CVAVR...the error its generating is that "pointer to the function 'adc_val = read_adc(i);' must...
Hi,
I am presently trying to build up a project on a temperature sensor with the help of LM35DZ using an atmega16 uC and trying to display the result on a 16x2 LCD...I have compiled a code but its not working(since I'm a complete noob)...I am posting the code in this thread..Please correct...
The 1 MHz internal oscillator is too slow for usbasp, unless the jumper is installed. Newer versions of usbasp code do not need the jumper. If an updated avrdude.exe is used, you can control the sck frequency right from the command line. An example command line:avrdude -c usbasp -p t45 -C...
I faced a similar problem like this...But mine was stupid..I accidentally configured the fuse bits to use its internal 1 Mhz clock..And thus was unable to reprogram the mega16..but after closing the "slow sck" pins of the usbasp which by the way uses atmega8 with a jumper enabled me to access...
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.