Re: read state of P3.2
"Bernard" <[email protected]> Fri, 21 May 2004 21:06:43 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <003601c43f66$c1e15280$8f03a8c0@Uranowa> |
Dear Kohen, before using P3.2 as input, you must write a 1 to this port pin (SETB P3.2 or ORL 0B0h,#4) - see chapter 10.6 of "high_speed_micro_user_guide.pdf' . Regards Ben ----- Original Message ----- From: "Koen Swinters" <[email protected]> To: <tini-6tN4nzCoH/[email protected]> Sent: Friday, May 21, 2004 4:09 PM Subject: [TINI]read state of P3.2 > Hi All, > > I'm trying to read the state of P3.2 in a native methode with the following > code: > > mov R4,0B0H > mov A,#04H > anl A,R4 ; > When I check what is in A I get always 04H (the pin is high accorcing to > this, but the pin is tied to ground). > does someon know how I can read the status of a pin on the ds80C400 in a > native method? > > regards > Koen > > > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/[email protected] > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini