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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/21/04 09:57
Read: times


 
#83566 - FINALLY!
Responding to: ???'s previous message
hey guys, heh i haven't posted back in a while, but figured i'd go back and give you guys an update.

today i spent about 3 hours in the senior design lab, and i was finally able get some readings off of the board. I ended up using port 2, because it has a lot of various functions on the board. In fact, i ended up taking the voltage at some of the various "solder gout" points on the board... ick.

anyways, i'd like to thank all of you for the help in getting me started. Basically to solve my problem i made sure to INCLUDE that generic startup.a51 file generated by keil. In order to do a lot of the testing i used the debugger/simulator in keil... man that thing works great, i can't wait until we get the full edition. But once it seemed to be working on that, i moved it over to the actual chip, and it worked.

I still have one question... in some of the example code i found on keil's website, they set the ports to be inputs by initially writing 0xFF to them. I know all the ports (i think) start out as 0xFF, so since their latches... this shouldn't change anything should it? i'm still not quite sure about how all that directional setting goes on the 4 various ports that are available. I wasn't really able to find anything about it in a quick skim over "the bible"

In my code i initially write 0x00 to port 2 just to initally set it low, then i have a delay loop, and set it to 0xFF, then repeat forever, kind of like the code i had posted before. I also took out the Reg_c51.h and made my own port definitions in the same file.

anyways, thanks again for all the help/suggestions, i'm sure you'll see me back on here. Next we're tackling writing an LCD driver, that shouldn't be too hard. I know there are more than enough posts on here about that, so i should be able to figure it out.

List of 37 messages in thread
TopicAuthorDate
AT89C51SND1C starter help?            01/01/70 00:00      
   start here            01/01/70 00:00      
   AT89C51SND1C starter help?            01/01/70 00:00      
      more info            01/01/70 00:00      
         ISP            01/01/70 00:00      
   senior design team            01/01/70 00:00      
   skeletal setup            01/01/70 00:00      
      much simpler            01/01/70 00:00      
         "Simpler" is not the objective.            01/01/70 00:00      
            simpler...            01/01/70 00:00      
               Development board            01/01/70 00:00      
                  Don' t mess with hyperterminal            01/01/70 00:00      
                     With respect, I disagree            01/01/70 00:00      
                        Hmm.            01/01/70 00:00      
                           Hmm indeed.            01/01/70 00:00      
               serial port            01/01/70 00:00      
                  lil' more info            01/01/70 00:00      
                     Mix            01/01/70 00:00      
                     No serial port?            01/01/70 00:00      
                        USB            01/01/70 00:00      
   quick question            01/01/70 00:00      
      startup.a51            01/01/70 00:00      
      Post the code            01/01/70 00:00      
         Post the code            01/01/70 00:00      
            here's the code            01/01/70 00:00      
               Some suggestions            01/01/70 00:00      
               Port 0            01/01/70 00:00      
                  development board ports            01/01/70 00:00      
                     yes, you can            01/01/70 00:00      
                        Thats 'cause its            01/01/70 00:00      
                           sorry...            01/01/70 00:00      
                              Pull up resistors            01/01/70 00:00      
   FINALLY!            01/01/70 00:00      
      Finally            01/01/70 00:00      
      Why only taking a +quick skim+?            01/01/70 00:00      
         What? No magic?            01/01/70 00:00      
         Think!            01/01/70 00:00      

Back to Subject List