1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

How to Use MMC/SDC with 8051

Discussion in '8051/8951' started by Frosty_47, May 2, 2009.

  1. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    Dear Komrades,

    My school curriculum never covers enough material on a lot of topics in electronics. I just finished my 8051 course yet, I know only the basics (i.e. timers, interupts, RS-232 interfacing, etc.). I want to know how I can interface MMC/SDC with 8051. What is SPI mode ? How can I "emulate SPI" using 8952 ? What are some more advanced topics that I don't know about? Is there a good book on "advanced 8051 techniques" ?

    Thanks

    P.S. I realy want to learn more about 8051 but have no clue where to look...
     
    Last edited: May 2, 2009
  2. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    SPI stands for Serial Peripheral Interface. It's a bidirectional clocked serial interface that's popular for many small devices.
    Serial Peripheral Interface Bus - Wikipedia, the free encyclopedia

    It's not very difficult to interface with it using an 8051 with software SPI code. If you want more information on the 8051 simple use Google, there are oodles of code for the 8051 out there. The hard part with accessing an SD card is managing the file system, there's a lot of code required for that if you want read/write access. Simple read access is a little easier.
     
  3. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    So far I've only found SPI interface using C. I don't know C and was wondering if I can do it in assembly...
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada

    A Canadian school is teaching the 8051? Is it a Amish?
     
  6. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    LOL! I dunno but RCC Institute of Technology is one of the most Industry/Military recognized schools in Toronto. However I still think that $15,000 per year is not worth the basics of electronics....

    BTW, whats wrong with teaching 8051?
     
    Last edited: May 2, 2009
  7. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    It's ancient, and not very popular anymore.
     
  8. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    The 8952 he's using is a modern devices. Basic 8051 compatible devices are still made by a number of chip makers. I thought they were still widely used in automotive and industrial applications?
     
  9. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    They are still widely used in manufacturing, like COBOL and Fortran is widely used in programming (well, maybe not that bad). They are well known and tested for standard applications and have a lot of certifications. I'm sure learning 8051 is a good uC foundation.
     
  10. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    Better learn 8051 than waste time on subjects such as "Psycology" or "Speach" or "Statistics" and last but not least "Economics". The latter subject is need not be studied as the economy in the Americas region is moving in one direction only...
     
  11. tresca

    tresca Member

    Joined:
    Apr 11, 2004
    Messages:
    194
    Likes:
    2
    Location:
    Canada
    LOL ! I went to RCC. Scam.

    8051 is old. There are much better architectures out there. If you continue to techno, you they should teach you the PIC, which is much better type of uC to learn.

    Give it some time, and like it was suggested, use google. You said you don't know C, RCC teaches C, so maybe you just havent hit that semester yet.
     
  12. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    Of course Frosty, because learning how people think, how to talk convincingly, and how to process data are completely useless skills =) (If you don't see the sarcasm I intended please note there's a LOT of it)
     
  13. tresca

    tresca Member

    Joined:
    Apr 11, 2004
    Messages:
    194
    Likes:
    2
    Location:
    Canada
    Economics is actually pretty interesting. People can create mathematical models that can predict trends of the future. I think thats pretty cool anyways.

    It kind of reminds me of Isaac Asimov's Foundation Series where the character Hari Seldon used a branch of mathematics called psychohistory that can predict the behaviour of large groups of people to an insane accuracy.
     
  14. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    I liked the Foundation Series. Still haven't read all of the books though, never figured out what I was missing.
     
  15. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    Yeah except it doesn't help me learn 8051...

    And I'de rather spent more time learning electronics so that I will be less of a NOOB when I get out to a workforce. I agree that those subjects are usefull in specific fields. But not in my field so I care less....
     
    Last edited: May 3, 2009
  16. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    I dont care how people think. I can talk convincingly when needed. And processing statistical data is not my field of work and I hope it never will be...

    All I want is for my school to focus more on electronics so that I will be more of a specialist when I get out into the workforce. Or should I say Less of a Noob ?
     
  17. colin mac

    colin mac New Member

    Joined:
    Jun 3, 2007
    Messages:
    367
    Likes:
    4
    Location:
    Ireland
    Not really. 8051s have a nice, intuitive instruction set and one of the nicest microcontrollers to program in my opinion. PICs have a horrible instruction set.
    But they are great in that they are cheap and well supported.

    At the end of the day it doesn't matter what they teach you as long as you learn the theory. It's your employer that will dictate what architecture you use if you do get a job in the field.
     
  18. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    If you're using electronics and micro controllers basic statistical analysis is a VERY good idea.
     
  19. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    Why? Please explain and provide examples...
     
  20. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    Switch denouncing, ADC decimation and oversampling for averaging techniques which can increase either bit depth or decrease noise. Any digital filter you'll ever create. That's all I can think of off the top of my head.
     
  21. Frosty_47

    Frosty_47 New Member

    Joined:
    Oct 3, 2006
    Messages:
    493
    Likes:
    3
    Location:
    Canada
    You mean the're crazy out there that collect statistical information on switch bounce and ADC sampling ? A lot of people neglect switch bouncing, never mind collecting data about it...
     
    Last edited: May 3, 2009

Share This Page