week_08

Embeded Programming

Objectives



Assignments



Group assignment


Following are a few different microcontroller architectures available in the market.
1) 8051
The Intel MCS-51 (also known as 8051) is a CISC architecture. These are available in 8-bit, 16-bit and 32-bit microcontrollers. 8051 silicon IP cores are typically smaller size, lower power compared to ARM Cortex-M and MIPS processors.

...


2) ARM
The ARM stands for Advanced RISC machine and it is 32-bit reduced instructions set computer (RISC) microcontroller. It was first introduced by the Acron computers’ organization in 1987. The ARM is a family of the microcontroller developed by the different manufacturers such as ST microelectronics, Motorola and so on.

...


3) AVR
AVR is a family of microcontrollers developed by Atmel that use the RISC processors. AVR are most commonly used in the Arduino line of open source board designs. These are available in 8-bit tinyAVR, megaAVR and XMEGA.

...


4) PIC
PIC stands for Peripheral Interface Controller. It is a family of microcontrollers developed by Microchip with a wide variety of options available. They are not strictly RISC processors as they differ very slightly in their operation.

...


Individual assignment


Research


I researched a microcontroller, in this case the ATmega32U4 Which the microcontroller, you can download the datasheet in >this Website. It was 438pages long. So, I have picked out some of the research that I think is important.
⑴ Overview

⑵ Pin Configurations
The pinout of this microcontroller is presented in the next Figure.

...


⑶ Pin Descriptions

...


...


...


At a certain point, I realized I was quickly going to have more screen captures than I knew what to do with because of just how much information is in the data sheet. But I can't read it all, so is there anything I don't understand about microcontrollers that I need to check the datasheet.

Programming

So, in this week, the first thing that I did is install arduion IDE. You can download arudino IDE from this Website.

...


Then I have selected a board called 4WD MINIQ. This car board can be programmed by Arduino. This card contains: ATmega32U4 microcontroller、 Infrared receiving tube、RGB lamp、buzzer、key and so on.

...


Then I made a first test program by myself to use the buzzer which can play two different sounds.

...


When I finish the program, I connected the board to the computer, and turned on the power. Then I clicked the download button on the Arduino IDE.

Then I tried to use the template program of RGB through the to the course online and to learn how to use it. RGB simply encapsulates three colors of LED lights in one LED. The RGB light on the circuit board comes with a processing chip that sends the values of each color as required, allowing the LED to call up any color you want.
The first thing need I do is all the library file of the Adafruit_NeoPixel.h.

...


Second, I need to define the pin number for the connection to the microprocessor and the data types.
#define PIN 10;

Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);
Third, I need to write the main program, which is initialize LED lamp, display setting effect, light change effect and how to change.

...



HC6800-MS ----51

Next, I have selected a board called HC6800-MS. This car board can be programmed by Keil uVision5. This card contains as follow future.

...


Then I made a test program by myself to use the LED. The LED are on from right to left. Here is the program.

...


Then I generated the type of file which is .HEX.

...


The program is then downloaded to the board for verification.

contact Me


Address: No.10, Kehua street, Wuhou District, Chengdu, Sichuan Province, China
TEL: (028) 85406538 (+86)18981085882
E-mail: linzihao@scuspark.com
QQ: 386866966