... array DCD 2, 4, 7, 3, 1, 2, 10, 11, 5, 13 Trang 4array DCD 10 Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE, ... UpperCase- Chuyển thành chữ hoa Đề: Viết chương trình asm chuyển từ ký tự thường sang ký tự hoa Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ... nghiemj phức và 0 với trường hợp còn lại Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA quadraticEquation, CODE, READONLY
Ngày tải lên: 17/01/2018, 21:45
... (Sách Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C (Third Edition) – Dr Yifeng Zhu ) Đại Học Bách Khoa Đà Nẵng BÀI TẬP CHƯƠNG 7 SÁCH (Có code đính kèm) 71_ChuyenSangChuHoa ... Trang 22INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA variance, CODE, READONLY Trang 23LDR r4, =n ; r4 = &n Trang 24INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE, ... Trang 16cua hang thu i Trang 17check_i INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE, READONLY ENTRY Trang 18;r0 = flag, r1 = num, r2 = i , r3 = i*i BNE loop Trang 19INCLUDE
Ngày tải lên: 17/01/2018, 23:29
Lập trình vi điều khiển STM32L152 bài tập chương 10 sách Embedded Systems with ARM CortexM Microcontrollers in Assembly Language and C (Third Edition – Dr Yifeng Zhu)
... PIN 7), CLK INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants Trang 6IMPORT strcat AREA main, CODE, READONLY EXPORT main ; make main ... connected RESET ; - GREEN LED: connected to PB7 (GPIO Port B, PIN 7), CLK RCC_AHBENR_GPIOBEN ; - BLUE LED: connected to PB6 (GPIO Port B, PIN 6), CLK RCC_AHBENR_GPIOBEN Trang 9; - Linear touch ... (Sách Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C (Third Edition) – Dr Yifeng Zhu ) BÀI TẬP CHƯƠNG 10 (Có code đính kèm) 1 XoaKyTuTrongChuoi_C Call a C Program
Ngày tải lên: 18/01/2018, 11:03
Lập trình vi điều khiển chip STM32L152 bài tập chương 8 sách Embedded Systems with ARM CortexM Microcontrollers in Assembly Language and C (Third Edition – Dr Yifeng Zhu)
... đoạn dịch chuyển 3, chữ A thành chữ D, chữ B thành chữ E… Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE, READONLY ... giá vé 7$… Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE, READONLY EXPORT linker main ; make main visible ... Viết chương trình sử dụng chương trình để tìm có bits tồn số 32 bits Code: INCLUDE stm32l1xx_constants.s ; Load Constant Definitions INCLUDE stm32l1xx_tim_constants.s ; TIM Constants AREA main, CODE,
Ngày tải lên: 18/01/2018, 14:54
Socket programming in C
... the new sockets The server gets a socket for an incoming client connection by calling accept () int accept(int socket, struct sockaddr *clientAddress, unsigned int *addressLength) accept() dequeues ... new socket using send() and r ecv ( ) 9 Close the client connection using c l o s e ( ) Creating the socket, sending, receiving, and closing are the same as in the client The differences in the ... s t r u c t sockaddr_in) When connect () returns successfully, the socket is connected and c o m m u n i c a t i o n can proceed with calls to send() and recv() int send(int socket, c o n s t
Ngày tải lên: 05/11/2012, 14:45
network programming in c
... = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); Trang 24Accepting Connections#include <sys/types.h> #include <sys/socket.h> int connfd; struct sockaddr_in cliaddr; ... give structure to the address struct in_addr { in_addr_t s_addr; }; struct sockaddr_in { uint8_t sin_len; sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; char sin_pad[16];}; ... structure to the address struct in6_addr { uint8_t s6_addr[16];}; struct sockaddr_in6 { uint8_t sin6_len; sa_family_t sin6_family; in_port_t sin6_port; uint32_t sin6_flowinfo; struct in6_addr
Ngày tải lên: 05/09/2013, 09:57
Socket Programming in C/C++ ppt
... 1Socket Programming in C/C++cSeptember 24, 2004 Trang 3Sockets are a protocol independent method of creating a connection between processes Sockets can be either I connection based or connectionless: ... connection is completed, thesocket is closed, and next connection can beaccepted Forking server: After an accept, a child process is forked off to handle the connection Variation: the child processesare ... build a concurrent server: I a fork is performed after the accept I The child process closes listenFd, and communicates usingconnectFd I The parent process closses connectFd, and then loops back tothe
Ngày tải lên: 15/03/2014, 17:20
Windows Phone Programming in C# doc
... contain much code: using using using using using using using using using using using using System; System.Collections.Generic; System.Linq; System.Net; System .Windows; System .Windows. Controls; ... of conductors underneath the screen surface detects the change in capacitance caused by the presence of a finger on the surface. The touch screen hardware then works out where on the screen ... comparable between processors. The processor in the Windows PC might take five clock ticks to do something that the Windows Phone processor needs ten ticks to perform. The Windows PC processor might
Ngày tải lên: 17/03/2014, 13:20
Network programming in c
... error checking for these calls: bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)); listen(sockfd, BACKLOG); Trang 19sin_size = sizeof(struct sockaddr_in);new_fd = accept(sockfd, ... will be connecting to int main(int argc, char *argv[]) { int sockfd; struct sockaddr_in their_addr; // connector’s address information struct hostent *he; Trang 29their_addr.sin_family = AF_INET; ... to use AF_INET in your struct sockaddr_in and PF_INET in your call to socket() But practically speaking, you can useAF_INET everywhere And, since that’s what W Richard Stevens does in his book,
Ngày tải lên: 19/03/2014, 13:41
Windows Phone Programming in C# pptx
... Server 156 7.3 Creating a Transmission Control Protocol (TCP) Connection 157 Reading a Web Page 157 7.4 Connecting to a Data Source 163 Using the WebClient class 163 7.5 Using LINQ to Read from ... Application Switching 210 The Windows Phone Application LifeCycle 211 Fast Application Switching in an application 213 Fast Application Switching and Development 218 Fast Application Switching and ... Windows Phone 10 Windows Phone Gyroscope A mechanical gyroscope is a device that always points in a particular direction The Windows Phone contains an electronic version which
Ngày tải lên: 23/03/2014, 22:21
Tài liệu Object-Oriented Programming in C++, 3rd Edition docx
... Statement Constructing the CRC Cards Classes Responsibilities Collaborators The Tenant CRC Card The Expense CRC Card The Rent Input Screen CRC card The Rent Record CRC Card The Expense Input Screen CRC ... Class Members A User-Defined String Type The Standard C+ + string Class Defining and Assigning string Objects Input/Output with string Objects Finding string Objects Modifying string Objects Comparing ... and Base Class Specifying the Derived Class Accessing Base Class Members The protected Access Specifier Derived Class Constructors Overriding Member Functions Which Function Is Used? Scope Resolution...
Ngày tải lên: 21/02/2014, 06:20
Questions to .NET and Programming in C#
... when the object is accessed. c) A static constructor can have public as a accessibility modifiers 74. class A { public static int X = B.Y + 1; } class B { public static int Y = A.X ... explicitly or implicitly. b) Static constructors can have accessibility modifiers. e) Static constructors are called when the class is loaded. c) Static constructors cannot be called ... error. c) Incompatible type for ’=’ can’t convert SubClass to SuperClass. b) No constructor matching SuperClass() found in class SuperClass d) Wrong number of arguments in constructor....
Ngày tải lên: 21/08/2012, 15:55
Question Bank Introduction to .NET and Programming in C#
... is called automatically when the object is accessed. c) A static constructor can have public as a accessibility modifiers 74. class A { public static int X = B.Y + 1; } class B { public static ... value c) get b) set d) find 100. public class A:B ,C, D{ } The above code represents ______ [0.5] a) multilevel interface c) multiple interface b) hierarchical interface d) multiple inheritance 101. ... False 25. Access Modifiers for variables in C# can be the following (Select all that apply) [1.0] a) Public c) Private b) Protected d) Public protected 26. In C# , an underscore is allowed as an initial...
Ngày tải lên: 09/04/2013, 09:10
Tài liệu Programming in C++ docx
... Information http://www.fz-juelich.de/zam/cxx/ ➠ Parallel Programming with C+ + ➠ Forschungszentrum Jülich Local C+ + Information ❑ Official C+ + On-line FAQ http://www.cerfnet.com/~mpcline /C+ +-FAQs-Lite/ Programming in C+ + ... Fortran Boolean (int) boolean logical Character char, wchar_t char character(n) Integer short int integer integer int long int FloatingPoint float real real double Complex ❖ (in C9 9) ❖ complex ❑ Size ... function definitions included in class definitions are automatically inline! ❑ re and im: declared by and belong to calling object (c1 above) ❑ Note: constructor not called for cp! ➠ How about constructors...
Ngày tải lên: 13/12/2013, 08:15