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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/01/07 13:18
Modified:
  05/01/07 13:33

Read: times


 
#138382 - Back to square one?
Responding to: ???'s previous message
Maybe you're beyond this point already, but maybe not. I wonder if you might learn something by backing up a step and trying something really, really, really simple. A quick little test like the following might be worth the effort.

If it runs as expected, great -- use it as a starting point to build towards what you want. If it doesn't, then you know that your problems don't have anything to do with the serial port and that you should focus your attention elsewhere.

-- Russ

/*  Square-one test program to see if anything works at all.  Puts
    a recognizable waveforem on P1.0 that should be perfectly
    stable and look something like this:
    __    __    _______    __    _______    __    _______
      |__|  |__|       |__|  |__|       |__|  |__|       

*/


#define GREEN_LED       0x01    // Green LED is on bit 0 of P1

main() {
    while (1) {                 // Repeat forever
        P1 &= ~GREEN_LED;       // Green LED on
        P1 |=  GREEN_LED;       // Green LED off
        P1 &= ~GREEN_LED;       // Green LED on
        P1 |=  GREEN_LED;       // Green LED off

        P1 |=  GREEN_LED;       // Wait a short while
        P1 |=  GREEN_LED;
        P1 |=  GREEN_LED;
        P1 |=  GREEN_LED;
        }                       // End 'repeat forever'
    }                           // End main()




List of 43 messages in thread
TopicAuthorDate
Very stubborn UARTs...            01/01/70 00:00      
   Keil gives error on your construct            01/01/70 00:00      
      Re: error            01/01/70 00:00      
         a guess            01/01/70 00:00      
            Re: guess            01/01/70 00:00      
               humm humm            01/01/70 00:00      
                  re: humming            01/01/70 00:00      
   PS            01/01/70 00:00      
      have you tried the simulator?            01/01/70 00:00      
         Re: LED            01/01/70 00:00      
            HUH???            01/01/70 00:00      
               again a HLL habit, isn't it...            01/01/70 00:00      
            2 possibilities            01/01/70 00:00      
               Whoops.            01/01/70 00:00      
               Dummy Interupt            01/01/70 00:00      
                  agreed, I do it like this            01/01/70 00:00      
                     Niiice            01/01/70 00:00      
   you could solve a lot of problems if....            01/01/70 00:00      
      Thanks, but...            01/01/70 00:00      
   Back to square one?            01/01/70 00:00      
      blinkenlight            01/01/70 00:00      
         Get a \'scope!            01/01/70 00:00      
         More hints            01/01/70 00:00      
         Re: hints            01/01/70 00:00      
            I am sure it is published            01/01/70 00:00      
   Gah.            01/01/70 00:00      
      read the right spec            01/01/70 00:00      
         specs            01/01/70 00:00      
            Not a spec            01/01/70 00:00      
               why not?            01/01/70 00:00      
                  Proviso            01/01/70 00:00      
                     just a small remark            01/01/70 00:00      
            oh, yes, you can            01/01/70 00:00      
   Huzzah!            01/01/70 00:00      
      value of KISS            01/01/70 00:00      
      I find that hard to beleive!            01/01/70 00:00      
         Okay, so            01/01/70 00:00      
            I thotoughly agree with you there!            01/01/70 00:00      
            Further details            01/01/70 00:00      
      You\'re not finished yet            01/01/70 00:00      
         Lessons            01/01/70 00:00      
            \"does have it all\" is of no good            01/01/70 00:00      
            Thanks for the update            01/01/70 00:00      

Back to Subject List