We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys, I am Alvin, I got some problem with handling switches that are embedded in micro controller. I saw the sample program, it says that if the switch is being press then it is "0" if not it is "1". So I added the blinking code inside the if loop, if its a 0, it will light up if not it wont like up.
If(SW2==0){ //light up LED } IF(SW1==0){ //Dont light up LED }
Something like this.
Also, If I want to read data from USB port, so which part should i look for in the header section? Is it the I/O hexadecimal or other special hexadecimal?
thank You Very Much!
Is there any recommended book for micro controller, for beginners like me?
There are (problably) 3 things that you need to learn:
1. Programming in general - not specific to microcontrollers;
2. Digital electronics in general - not specific to microcontrollers;
3. Something that brings the above together with specific reference to microcontrollers.
Take a look at:
http://www.keil.com/books/
www.8052.com/books.phtml
www.8052.com/tutorial.phtml
Sorry, that link is dead!
Try: http://www.8052.com/links
See also: http://www.8052.com/book/
And: www.8052.com/.../159254