Hi Anyone got a sample code for controlling LED's brightness with ADuc812 (and a potentiometer)? LED should blink very rapidly by pulse width modulation. Thanks in advance. Mark
"Sorry no can do! I have no idea what I should do with this..." So it is a homework assignment, then? If so, you won't have been set this assignment unless the course so far should have equipped you to complete it. In that case, it's time to review your course notes, and ensure that you're up-to-date with all the required reading, etc. If it's not a homework assignment, you need to start by doing some basics first so that you do at least had an idea of what to do! Here are some book lists: http://www.keil.com/books/8051books.asp http://www.8052.com/books.phtml Here are some tutorials on the 8051: http://www.8052.com/tutorial.phtml There are loads of allpication notes & examples on this site - see http://www.keil.com/dd/chip/3007.htm for a list of the ones particularly relevant to this processor. I'm sure the AD site will also have plenty of resources specific to this processor: http://www.analog.com/en/prod/0,2877,ADUC812,00.html So, if it wasn't homework before, it is now...! ;-)
Alternatively, just hire a consultant: http://www.keil.com/condb/
If it's not a homework assignment, you need to start by doing some basics first so that you do at least had an idea of what to do! Also "the bible" is invaluable. Erik here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf