home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.electronics
- Path: sparky!uunet!nwnexus!ole!ssave
- From: ssave@ole.cdac.com (Shailendra Save)
- Subject: Re: 8051 help needed urgently!
- Message-ID: <1992Jul30.165112.10990@ole.cdac.com>
- Organization: CDAC, WA
- References: <1992Jul30.070338.6778@uwm.edu>
- Date: Thu, 30 Jul 1992 16:51:12 GMT
- Lines: 27
-
- In article <1992Jul30.070338.6778@uwm.edu> pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
- >
- >Hi everybody!
- >
- >Well I finally got my 8051 compatible micro-controller in the mail
- >and got it all wired with a crystal and MAX232 chip and reset hardware.
- >I had an LED hooked up to port 1 pin 1 with a resistor and connected to
- >ground like this:
- >So my first program was this:
- >setb P1.1 ;; Set Port 1 Pin 1 to 1 This turned on the LED as expected...
- >Now my second program was this:
- >clr P1.1 ;; Set Port 1 Pin 1 to 0 This should have turned off the LED..
- >It did not turn off the LED... In fact nothing I do turns the LED off...
- >Anybody have any idea what is going wrong?
- >When I go into Serial Load mode (RST goes low) the LED still on also.
- >Any help would be appreciated...
- >pegasus@csd4.csd.uwm.edu David R. Hucke
- > UW-Milwaukee Film Major
-
-
- When you clear a port pin, it is pulled to a tristate 1. It does not
- put a 0 onto the pin. I would think you want to write a "0" onto the
- port to turn the led off. Same with RST.
-
-
- -S
- ssave@ole.cdac.com
-