Forum: Assembly Nov 3rd, 2009 |
| Replies: 6 Views: 520 But does your simulation work when you apply a logic high or low to the port pin, by means of, say a switch?
When you connected a voltmeter to the output of the LDR, what readings did you get when... |
Forum: Assembly Nov 3rd, 2009 |
| Replies: 6 Views: 520 You don't need a ADC. Put the LDR in series with a resistor of about 10K and connect the output of the LDR to a port pin. When the Laser shines on the LDR, its resistance will be much lower than 10K... |
Forum: Assembly Nov 2nd, 2009 |
| Replies: 6 Views: 520 You've explained what you need to do, but you haven't asked a question.
An LDR in a voltage divider would replace the switch, if your code works for a switch, it will work with a LDR. But it's not... |
Forum: Assembly Oct 20th, 2008 |
| Replies: 4 Views: 583 If P1.2 is set and you move P1.2 to C, then C is set. |
Forum: Assembly Oct 20th, 2008 |
| Replies: 4 Views: 583 MOV C, P1.2 simply moves the value on the port pin to the carry. |
Forum: Assembly Feb 23rd, 2008 |
| Replies: 2 Views: 1,558 http://www.allaboutcircuits.com/vol_4/index.html
Chapters 7,8 |