We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, i'm using MCU AT89C5131. I use WINDRIVER 8.0 to make a VB 6.0 to communicate with MCU(HID class). I use tools of ATMEl but no thing done, i don't exactly what happen in MCU.
Now i want write code in Assembly, my idea is that : use MCU as HID class/Mass storage class: receive 3 command bytes from host and return a value to host.
Can anybody help me? thanks a lot. my email: sixday06@yahoo.com (my board from http://www.futurlec.com--USB development board)
"i don't know how to program on AT89C5131. what steps i have to do?".
First, you have to obtain suitable tools for programming the AT89C5131. The AT89C5131 processor uses the 8051 architecture, so C51 is the correct choice from Keil's products. Other 8051 tools are available.
Then you have to understand how to use the tools. For Keil C51, you need to read the uVision Getting Started guide, and work through the example projects in it. This will give you a proper introductions to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep-end!
You also have to undertsand how the 8051 architecture works: read the following documents - commonly referred to as "the bible" for the 8051:
Chapter 1 - 80C51 Family Architecture: www.semiconductors.philips.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.semiconductors.philips.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.semiconductors.philips.com/.../80C51_FAM_HARDWARE_1.pdf
Here are some other introductory & reference materials: http://www.keil.com/books/8051books.asp www.8052.com/books.phtml www.8052.com/tutorial.phtml
That covers the 8051 in general; you will also need to know the specifics of the AT89C5131 - for that, you ll need to read the Data Sheet for your particular processor, and the Manual(s) for any development boards, etc. Also check for Application Notes, samples, reference designs, etc on Atmel's website.
For a USB development, you will also need to understand how USB works. There are 2 book recommendations here: www.8052.com/.../read.phtml