home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / electron / 13637 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.4 KB  |  38 lines

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