Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/15/09 19:41
Read: times


 
#171635 - BASCOM help
Hi Everybody,

I'm quite new in microcontrollers, and I have a bunch of basic questions.
I'm a university student, and we are learning about 8051 on Digital systems subject.
We are using AT89S52 mcu, and sadly, the education of the programming is so bad. We are using an old C based
IDE, and I'm not very good in C, but I'm using qbasic for a long time, so I started to use BASCOM for my 8052 at home.
I made led blinker and running light programs, but now I want more: using external signals to control the mcu.
So I want to make basic programs, which should work something like this (for example): if I press a button which is connected to a port of the mcu, a led (connected to a port) lights up, when I press the button once again, it goes dark.
I wrote a program that made a led light up until I held the button pressed, but it sometimes worked, sometimes not and I don't know why.
So I would like to know how to start writing a program which uses outer signal(s) to control program flow.

If anyone can help me, please let me know!

Thanks,
Levente Trifonov

List of 26 messages in thread
TopicAuthorDate
BASCOM help            01/01/70 00:00      
   Debounced key?            01/01/70 00:00      
      problem mostly solved            01/01/70 00:00      
   Learn the architecture, hardware, and instruction set            01/01/70 00:00      
      BASIC - Acronym            01/01/70 00:00      
         depends on whom you ask, I guess            01/01/70 00:00      
            "all-purpose" isn't a new definition            01/01/70 00:00      
               What's in a name?            01/01/70 00:00      
                  Well, I never found it to be particularly "algorithmic"            01/01/70 00:00      
                     Indeed!            01/01/70 00:00      
                        Relic of the GOTO mayhem of original BASIC            01/01/70 00:00      
                           Wasn't that the order of the day back then?            01/01/70 00:00      
                              That wasn't its intent ...            01/01/70 00:00      
                                 possible to write spaghetti code in Pascal or in 'C'            01/01/70 00:00      
            From the horse's mouth!            01/01/70 00:00      
            A clear case of PCMCIA            01/01/70 00:00      
      Basics - in the "foundational" sense            01/01/70 00:00      
         Other programming languages are available            01/01/70 00:00      
         programming languages            01/01/70 00:00      
            Assembler            01/01/70 00:00      
            Focus!            01/01/70 00:00      
            How about MIDE-51?            01/01/70 00:00      
      thanks            01/01/70 00:00      
   Why is that "bad"?            01/01/70 00:00      
      That's not bad :-)            01/01/70 00:00      
         Not necessarily true            01/01/70 00:00      

Back to Subject List