You are on page 1of 10

Vi iu khin ARM Cortex M3

Trnh by ST Yahoo
Email

: Phm c Khanh : 01656 053 721 : phamkhanh178


: phamkhanh.hut@gmail.com

Bi 2 K thut lp trnh cho ARM

Ni Dung
1. Cc kiu d liu. 2. Th vin CMSIS (Cortex Microcontroller Software Interface Standard) 3. K thut lp trnh 3 lp. 4. Khi to 1 module. 5. Chun lp trnh CMMI. 6. Demo.

Cc kiu d liu.
typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned __int64 uint64_t; typedef signed char int8_t; typedef signed short int int16_t; typedef signed int int32_t; typedef signed __int64 int64_t;

Th vin CMSIS

K thut lp trnh 3 lp
Data layer - Business layer - Presentation layer u im :
Tng kh nng s dng li => pht trin nhanh h thng Chuyn i h thng nhanh v d dng. Cung cp cc ti nguyn linh hot.

V d.

Khi to 1 module
Cp xung nhp clock. Khi to GPIO. Khi to cc tham s cn thit. Khi to ngt.

Khi to 1 module
V d : Khi to USART1. Khi to ADC. Khi to IO.

Chun lp trnh CMMI

Demo

You might also like