Có 20+ tài liệu thuộc chủ đề "lập trình nhúng"
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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 ự ệ ạ ả ỗ ợ...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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....
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...