« Home « Chủ đề lập trình nhúng

Chủ đề : lập trình nhúng


Có 20+ tài liệu thuộc chủ đề "lập trình nhúng"

NGÔN NGỮ LẬP TRÌNH C++ (Dùng cho sinh viên)

tailieu.vn

Chương 2: Con trỏ và mảng. Đối tượng (Object). Đối tượng = dữ liệu + phương thức. CON TRỎ VÀ MẢNG. Con trỏ hàm. Cấp phát bộ nhớ cho con trỏ. 2.1 KHÁI NIỆM CON TRỎ 2.1.1 Khai báo con trỏ. Cú pháp khai báo một con trỏ như sau:. *<Tên con trỏ>;. Có thể viết dấu con trỏ. Khai...

Kỹ thuật lập trình nhúng - Phần 1: Giới thiệu chung về hệ thống nhúng

tailieu.vn

Gi i thi u chung v h th ng nhúng ớ ệ ề ệ ố. Lĩnh v c ng d ng c a h nhúng ự ứ ụ ủ ệ. K nguyên công ngh m i đã và đang ỷ ệ ớ ti p t c phát tri n không ng ng nh m ế ụ ể ừ ằ thông...

Đồ án tốt nghiệp "Thiết kế KITS nhúng và lập trình nhúng"

tailieu.vn

GIAO VIÊN H ́ ƯƠ NG DÂN. Tr ướ c kia các h th ng s 4, 8 hay 16 bit đã đ ệ ố ố ượ ử ụ c s d ng r t r ng rãi. I H th ng nhúng - ệ ố Embedded system 1. Đ nh nghĩa h th ng nhúng: ị ệ ố. HTN...

Lập trình nhúng

tailieu.vn

Sourcery là m t công ty đ i tác c a ARM chuyên phát tri n các trình biên d ch dành cho lõi ộ ố ủ ể ị ARM d a trên GNU Toolchain. Hi n t i phiên b n Sourcery G++ h tr biên d ch v i các t p ự ệ ạ ả ỗ ợ...

Programming Embedded Systems I

tailieu.vn

21 P3.0 P1.7. RST P1 .6 P1.5 P1.4 P1.2. P1 .3 P1.1 P1.0. X T L1 P3 .7 P3.6 P3.5 P3.3. P3 .4 P3.2 P3.1 / EA P0 .6. P0 .2 P0.0 VCC. P2 .0 P2.2. P2 .6 / PSEN ALE. Preparation for the next seminar 20. Preparation for the next seminar 44. Preparation for the next seminar 75. Re-structuring...

Seminar 1: “Hello, Embedded World”

tailieu.vn

13 12 11 GND P3.4 P3.5 P3.3 P3.2 XTL1 P3.1 XTL2 P3.0 RST. P3.7 P1.1 P1.0 P1.2 P1.3 P1.4 P1.6 P1.5 P1.7 VCC. 21 P3.0 P1.7 RST P1.6 P1.5 P1.4 P1.2P1.3 P1.1 P1.0. XT L1 P3.7 P3.6 P3.5 P3.3 P3.4 P3.2 P3.1 / E A P0 .6. P0 .7 P0.5 P0.4 P0.3 P0.1. P0 .2 P0.0 VCC. P2 .0 P2.2....

Seminar 2: Basic hardware foundations (resets, oscillators and port I/O) Vcc Vcc EA Atmel

tailieu.vn

21 P3.0 P1.7. RST P1 .6 P1.5 P1.4 P1.2. P1 .3 P1.1 P1.0. XT L 1 P3.7 P3.6 P3.5 P3.3. P3 .4 P3.2 P3.1 / EA P0 .6. P0 .2 P0.0 VCC. P2 .0 P2.2. P2 .6 / PSEN AL E. This circuit is the ‘heartbeat’ of the system and is crucial to correct operation.. A variant of the Pierce...

Seminar 3: Reading Switches

tailieu.vn

sbit Switch_pin = P1^0;. Set switch pin for reading. Switch_pin = 1;. x = Switch_pin. <<. void Display_Byte(const unsigned char);. Display_Byte(x);. Display_Byte(~x);. Display_Byte(x &. Display_Byte(x | 0x0f);. Display_Byte(x ^ 0x0f);. Display_Byte(x <<= 1);. Display_Byte(x >>= 4);. Display_Byte((unsigned char) (y >>. Display_Byte((unsigned char) (y &. void Display_Byte(const unsigned char CH). c <<= 1;. void Write_Bit_P1(const unsigned char, const bit);. bit Read_Bit_P1(const...

Seminar 4: Adding Structure to Your Code

tailieu.vn

Port Header (Port.H). We will describe how to create and use a ‘Project Header’. This file encapsulates key aspects of the hardware environment, such as the type of processor to be used, the oscillator frequency and the number of oscillator cycles. We will describe how to create and use a ‘Port Header’ file.. This brings together all details of the...

Seminar 5: Meeting Real-Time

tailieu.vn

Values for 50 ms delay. Timer 1 Timer 0. When cleared timer “x” is enabled whenever “TRx” control bit is set.. Hardware_Delay_50ms.C (v1.00). void LED_FLASH_Init(void);. void LED_FLASH_Change_State(void);. void DELAY_HARDWARE_One_Second(void);. void DELAY_HARDWARE_50ms(void);. LED_FLASH_Init();. LED_FLASH_Change_State();. DELAY_HARDWARE_One_Second();. LED_FLASH_Init(). void LED_FLASH_Init(void). LED_FLASH_Change_State(). void LED_FLASH_Change_State(void). DELAY_HARDWARE_One_Second(). void DELAY_HARDWARE_One_Second(void). Call DELAY_HARDWARE_50ms() twenty times. DELAY_HARDWARE_50ms();. DELAY_HARDWARE_50ms(). void DELAY_HARDWARE_50ms(void). #include "LED_Flash.h". Timer preload values for use in simple...

Seminar 6: Creating an Embedded Operating System

tailieu.vn

The current speed of the vehicle must be measured at 0.5 second intervals.. The display must be refreshed 40 times every second. The calculated new throttle setting must be applied every 0.5 seconds.. A time-frequency transform must be performed 20 times every second.. The engine vibration data must be sampled 1000 times per second.. The frequency-domain data must be classified...

Seminar 7: Multi-State Systems and Function Sequences

tailieu.vn

Multi-State Systems and Function. Two broad categories of multi-state systems:. Multi-State (Timed). In a multi-state (timed) system, the transition between states will depend only on the passage of time.. For example, the system might begin in State A, repeatedly executing FunctionA. Multi-State (Input / Timed). For example, the system might only move between State A and State B if a...

Overview of this seminar

tailieu.vn

Discuss the RS-232 data communication standard. Consider how we can use RS-232 to transfer data to and from deskbound PCs (and similar devices).. What is ‘RS-232’?. In 1997 the Telecommunications Industry Association released what is formally known as TIA-232 Version F, a serial communication protocol which has been universally referred to as ‘RS-232’ since its first ‘Recommended Standard’ appeared in...

Seminar 9: Case Study: Intruder Alarm System

tailieu.vn

When initially activated, the system is in ‘Disarmed’ state.. The system remains in this state until the user enters a valid password via the keypad (in our demonstration system, the password is “1234. When a valid password is entered, the systems enters ‘Arming’ state.. In Arming state, the system waits for 60 seconds, to allow the user to leave the...

Seminar 10: Case Study

tailieu.vn

Controlling a Mobile Robot. In this session, we will discuss the design of software to control a small mobile robot.. The robot is “Mr Line”. http://www.microrobotna.com. What can the robot do?. The robot has IR sensors and transmitters that allow him to detect a black line on a white surface - and follow it.. The robot brain. Mr Line is...

Hệ thống nhúng - Chương 5

tailieu.vn

Program space visibility. Investigating memory allocation. MPLAB® C30 memory models. In this lesson we will review the basics of string declaration as an excuse to introduce the memory allocation techniques used by the MPLAB C30 compiler.. The RISC architecture of the PIC24 poses some interesting challenges and offers. This lesson will be performed exclusively with software tools including the MPLAB...

Hệ thống nhúng - Chương 1

tailieu.vn

Th c sĩ Lê M nh H i ạ ạ ả. Embedded Systems. Programming 16-Bit PIC Microcontrollers in C: Learning to Fly the PIC24. Designing Embedded Systems with PIC Microcontrollers. Th c sĩ Lê M nh H i. PIC24 16-bit microcontroller PIC24FJ128GA010 – MPLAB® IDE. Our first line of code is going to be:. This is not yet a proper...

Hệ thống nhúng - Chương 2

tailieu.vn

Lesson 2 : A loop in the pattern. A loop in the pattern. the “equal-to” operator. notice it is composed of two equal signs to distinguish it from the “assignment” operator we used in the previous lesson,. the “NOT-equal to” operator,. the “greater-than” operator,. >= the “greater-or-equal to” operator,. the “less-than” operator,. <= the “less-than-or-equal to” operator.. To test the...

Hệ thống nhúng - Chương 3

tailieu.vn

We will learn how much memory the compiler allocates for the numerical variables and we will investigate the relative efficiency of the routines used to perform arithmetic operations by using the MPLAB. MPLAB C30 compiler (Student Version). project, though, it is always good practice to disable all optimizations as they might modify the structure of the code being analyzed and...

Hệ thống nhúng - Chương 4

tailieu.vn

We will learn how much memory the compiler allocates for the numerical variables and we will investigate the relative efficiency of the routines used to perform arithmetic operations by using the MPLAB. This experience will help you choose the “right”. MPLAB C30 compiler (Student Version). project, though, it is always good practice to disable all optimizations as they might modify...