SAM4S Xplained Pro kit (ARM based) টিউটোরিয়াল ২

আজকের টিউটোরিয়ালের চারটি পার্ট, প্রথম পার্টে ARMএর খুব সামান্য কিছু থিওরি বলা হয়েছে, ARM development tool নিয়ে কিছু বলেছি, দেখানো স্লাইড টা পাওয়া যাবে এখানে,  https://www.dropbox.com/s/7001efqvg98656h/A%20Short%20Intro.ppsx

সেকেন্ড পার্ট এ হ্যালো ওয়ার্ল্ড প্রোগ্রাম দেখিয়েছি।

Atmel SAM4 এর জেনারেল ডেটাশিট এখানে,

https://www.dropbox.com/s/xhvheq2mlz3odm8/Atmel_11100_32-bit-Cortex-M4-Microcontroller_SAM4S_Datasheet.pdf

পরের দুটা অংশে বোর্ডে ডাউনলোড করে রানিং অবস্থা দেখানো হয়েছে।

১ম পার্ট: ARM সম্পর্কে এক্টুখানি

২নং পার্ট: হ্যালো ওয়ার্ল্ড ইনপুট আউটপুট, SAM4S Xplained Pro kit

৩নং পার্ট: ইনপুট আউটপুট

৪নং পার্ট:আউটপুট

 

যদি board_init() ব্যবহার করতে না চাই, তাহলে নিচের মত লিখেন। ASF এর মডিওল থাকবে আগের মতই, নতুন কিছু যোগ করার দরকার নাই, কেবল ডিলে এর মডিওল ছাড়া

 

#include<asf.h>

#define MY_LED    IOPORT_CREATE_PIN(PIOC,23)

int main(void)

{

sysclk_init();

wdt_disable(WDT); //not necessary, better to disable this in normal application

ioport_init();

ioport_set_pin_dir(MY_LED,IOPORT_DIR_OUTPUT);

while(1)

{

ioport_set_pin_level(MY_LED,1);

delay_s(1);

ioport_set_pin_level(MY_LED,0);

delay_s(1);

}

}

About Nahian Rahman

I received B.Sc. in mechanical eng. from BUET and M.Sc. in mechanical eng. (Intelligent Control and Automation System Division) from PNU, South Korea. I was a lab member of Instrumentation and Control Lab ( http://mclab.me.pusan.ac.kr/ ). Currently I am working as a PhD researcher at Italian Institute of tech. (http://iit.it/en/people/nahian-rahman) My research interest includes Control, Dynamics, Dexterous mechanism, mechatronics. I am a member of Korea Robotic Society (KROS), and IEEE. My Google Scholar profile: https://scholar.google.com/citations?user=W8_LYncAAAAJ&hl=en My ResearchGate profile: https://www.researchgate.net/profile/Nahian_Rahman My Social Profile at facebook: https://www.facebook.com/Nahian.Rahman
This entry was posted in Embedded Tutorial and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s