> For the complete documentation index, see [llms.txt](https://ykkim.gitbook.io/ec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ykkim.gitbook.io/ec/ec-course/preparation-for-ec.md).

# Preparation for EC

## Preparation for Embedded Controller

Embedded Controller 수업에서는 MicroControllerUnit(MCU) 디지털회로 구조를 이해하고 MCU의 Peripheral Input/Output 회로(register) 설정 등의 Firmware 프로그래밍을 실습할 계획입니다.

본 수업의 권장 선수 교과목은 다음과 같습니다.

1. 디지털로직 (논리설계-전산전자) 교과목 수강
2. C 프로그래밍 교과목 수강 / C 프로그래밍 경험

Please complete the followings before taking this course.

## **1. Review Digital Logic Circuit**

디지털로직회로 교과목을 수강하지 못한 학생은 아래 내용을 공부하시면 됩니다.

* Binary Numbers
* Logic Gates
* MUX, DEMUX, Encoder, Decoder
* Flip-Flops
* Counter
* Finite State Machines

{% embed url="<https://www.tutorialspoint.com/digital_circuits/index.htm>" %}

## **2. Review C-Programming**

{% embed url="<https://ykkim.gitbook.io/ec/c-programming/c-programming-review>" %}

#### **Study " Structures & Bitwise Operation in C-programming"**

{% embed url="<https://ykkim.gitbook.io/ec/c-programming/c-programming-review/structure>" %}

{% embed url="<https://ykkim.gitbook.io/ec/c-programming/c-programming-review/bitwise-operation>" %}

#### **Do Exercise**

* Structure

{% embed url="<https://ykkim.gitbook.io/ec/c-programming/c-programming-review/structure#exercise>" %}

* Bitwise Operation

{% embed url="<https://ykkim.gitbook.io/ec/c-programming/c-programming-review/bitwise-operation#exercise>" %}

## 3. Prepare EC Workspace

### Create local folders

We will create the main directory under **C:\Users\yourID\source\repos**

> e.g. **C:\Users\ykkim\source\repos**

* docs : documents and lab reports
* include :library header files
* lab : lab source files
* tutorial : tutorial source files

Example 1:

* **C:\Users\yourID\source\repos\EC\docs**
* **C:\Users\yourID\source\repos\EC\tutorial**
* **C:\Users\yourID\source\repos\EC\include**
* **C:\Users\yourID\source\repos\EC\lab**

Example 2:

![local repository](https://user-images.githubusercontent.com/91526930/191554413-5ac21137-b68f-4792-8b42-e2ef27aec442.png)

###

You can search for 'repos' in window menu

<figure><img src="https://user-images.githubusercontent.com/38373000/185348195-07f482ba-3aac-4fc8-8298-9928f06fc534.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ykkim.gitbook.io/ec/ec-course/preparation-for-ec.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
