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

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!csd4.csd.uwm.edu!pegasus
  3. From: pegasus@csd4.csd.uwm.edu (David R Hucke)
  4. Subject: 8051 help needed urgently!
  5. Message-ID: <1992Jul30.070338.6778@uwm.edu>
  6. Originator: pegasus@csd4.csd.uwm.edu
  7. Sender: news@uwm.edu (USENET News System)
  8. Organization: Computing Services Division, University of Wisconsin - Milwaukee
  9. Date: Thu, 30 Jul 1992 07:03:38 GMT
  10. Lines: 48
  11.  
  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.  
  18. I was able to invoke the onboard serial program load mode and load a
  19. program on the chip...
  20.  
  21. The program simply set a bit on a port...
  22.  
  23. I had an LED hooked up to port 1 pin 1 with a resistor and connected to
  24. ground like this:
  25.  
  26.                |
  27.            |  Port 1 Pin 1
  28.            |
  29.            LED
  30.            |
  31.            ^v^v^v  150 ohm resistor
  32.             |
  33.                 |
  34.             GND
  35.  
  36. So my first program was this:
  37.  
  38. setb P1.1  ;; Set Port 1 Pin 1 to 1  
  39.  
  40. This turned on the LED as expected...
  41.  
  42. Now my second program was this:
  43.  
  44. clr P1.1  ;; Set Port 1 Pin 1 to 0
  45.  
  46. This should have turned off the LED.. It did not turn off the LED... In fact
  47. nothing I do turns the LED off...
  48.  
  49. Anybody have any idea what is going wrong?
  50.  
  51. When I go into Serial Load mode (RST goes low) the LED still on also.
  52.  
  53. Any help would be appreciated...
  54.  
  55.  
  56. -- 
  57. pegasus@csd4.csd.uwm.edu                David R. Hucke
  58.                                         UW-Milwaukee Film Major
  59. --
  60.