World of Komastar

고정 헤더 영역

글 제목

메뉴 레이어

World of Komastar

메뉴 리스트

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 분류 전체보기 (130)
    • Development (23)
      • Embedded (9)
      • C / C++ (4)
      • .NET (2)
      • Python (4)
      • HTML/CSS/JS (1)
      • PHP (1)
      • C# (0)
      • Unity3D (1)
      • Photography (1)
    • Server (3)
      • Windows (1)
      • Linux (2)
    • Dev Tools (5)
      • Git (4)
      • Editor (1)
    • Entertainment (0)
      • WOW:Warlords of Drenor (0)
      • WOW:Legion (0)
    • Review (24)
      • Device (13)
      • Application (0)
      • Game (4)
      • Restaurant (1)
      • Camera & Lens (0)
      • Exhibition (2)
      • Movie (2)
    • Photo (43)
      • 2012 (1)
      • 2013 (2)
      • 2015 (16)
      • 2016 (24)
      • 2017 (0)
      • 2018 (0)
      • 2019 (0)
      • 2020 (0)
      • 2021 (0)
    • STAR (26)
      • 홍진영 (26)
    • etc (1)
    • Project (0)
    • 무지개산방 (5)
    • Komas Talk (0)

검색 레이어

World of Komastar

검색 영역

컨텐츠 검색

소스 파일

  • STM32F103 - USART Interrupt 소스

    2020.01.20 by Komastar.Dev

  • [C언어 연습문제] 알파벳 피라미드

    2014.06.04 by Komastar.Dev

  • [C언어 연습문제] 별로 사선 채우기

    2014.06.04 by Komastar.Dev

  • Windows Console Command TREE 를 구현해보자

    2014.05.27 by Komastar.Dev

  • ATmega128 MPU6050

    2014.03.18 by Komastar.Dev

  • STM32F103 - QuadCopter 참고 소스

    2014.02.19 by Komastar.Dev

  • STM32F103 - PWM 소스

    2014.02.19 by Komastar.Dev

  • ATmega128 - PWM Mode 14 소스

    2014.02.19 by Komastar.Dev

STM32F103 - USART Interrupt 소스

stm32f103 / usart / usart interrupt USART Polling 방식은 이전의 포스팅에서 구현을 했으니 이번엔 Interrupt 방식을 구현 할 차례이다. 쿼드콥터의 제어 코드가 돌아가는 중에 조종 데이터를 전송 받아야 하니 Polling 방식은 부적절 하다고 볼 수 있다. 그래서 Interrupt 방식의 USART 통신을 구현해야 한다. #include "stm32f10x_conf.h" //stm32f10x_conf.h 파일에는 필요한 각종 헤더를 포함시키는 코드를 삽입 //stm32f10x_gpio.h ~_usart.h ~_rcc.h //misc.h void USART2_IRQHandler(void); int putchar(int ch); u16 tmp; int main() ..

Development/Embedded 2020. 1. 20. 12:18

[C언어 연습문제] 알파벳 피라미드

Windows 7 64bit / Visual Studio 2013 Express 32bit#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { char ch = 'A'; int height = -1; printf_s("Input Height : "); scanf_s("%d", &height); for (int heightCount = 0; heightCount < height; heightCount++) { for (int spaceCount = 0; spaceCount < height - heightCount; spaceCount++) { printf_s(" "); } for (int widthCount = 0; widthCount < heightCo..

Development/C / C++ 2014. 6. 4. 14:07

[C언어 연습문제] 별로 사선 채우기

환경 : Windows 7 64bit / Visual Studio 2013 Express#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { int width = -1; int height = -1; int gap = -1; printf_s("Input Width : "); scanf_s("%d", &width); printf_s("Input Height : "); scanf_s("%d", &height); printf_s("Input Gap : "); scanf_s("%d", &gap); int gapPrint = 0; for (int printCount = 0; printCount < height * width; printCount++) { if (..

Development/C / C++ 2014. 6. 4. 13:56

Windows Console Command TREE 를 구현해보자

2014. 05. 27. 10:00 작성 시작 Windows 7 64bit Visual Studio Express 2013 for Windows Desktop 32bit 윈도우 명령창에서 동작하는 명령어인 tree 를 C++로 구현한다. 외관상 같은 결과를 보이도록 동작하게 만드는 것이 목표이다. 우선 tree의 출력 내용을 본다. 윈도우 명령창을 실행시키고 tree를 입력한다. 현재 경로의 하위 폴더를 모두 표시해준다. 옵션을 알아보기 위해 도움말을 호출해본다. 도움말을 보는 옵션은 /? 이며 윈도우 명령어들은 이 옵션으로 도움말을 볼 수 있다. 도움말에 옵션이 있으니 옵션을 사용해보도록 한다. 기본적으로 폴더만 보여주는데 /f 옵션을 추가하니 설명대로 파일도 출력된다. /a 옵션을 보자 깔끔한 그래픽..

Development/C / C++ 2014. 5. 27. 10:31

ATmega128 MPU6050

ATmega128 에서 MPU6050 의 가속도 자이로 값을 읽어오는 방법 100Hz로 샘플링을 하기 위해 타이머 오버플로우로 0.01초마다 인터럽트가 걸리게 설정함 TIMSK = 0x01; TCCR0 = 0x07; TCNT0 = 99; SREG = 0x80; 그리고 인터럽트 소스를 작성 interrupt [TIM0_OVF] void timer_int0(void) { getRawData(); getAcclDegree(); getGyroDegree(); compFilter(); TCNT0 = 99; } 가속도 센서와 자이로 센서 값을 읽어오는건 이전에 올린 소스가 있음 MPU6050_read() 함수는 지난 포스팅 참조 -Click- void getRawData() { buffer[0] = MPU6050_..

Development/Embedded 2014. 3. 18. 20:12

STM32F103 - QuadCopter 참고 소스

첨부 파일 참조 첨부 파일에 IAR EWARM 용 프로젝트 전체가 들어있음 2014 / 02 / 19 - 22:42 최초 작성2014 / 02 / 20 - 01:43 태그 정리2014 / 02 / 20 - 03:33 첨부 파일 재등록

Development/Embedded 2014. 2. 19. 22:42

STM32F103 - PWM 소스

STM32F103 / PWM / Cortex M3 STM32F103 에서 PWM 을 생성하는 소스임 Timer 3의 CH 1 / CH 2 / CH 3 / CH 4 에서 PWM 생성 전체 소스에서 PWM 부분만 잘라서 올림 헤더 파일 포함 시키는 것이 맞는지 잘 기억이 안남 소스 내용 자체는 정확하니 참고용으로 쓰시길#include #include #include u16 PrescalerValue = 0; double i_motor1 = 0; double i_motor2 = 800; double i_motor3 = 800; double i_motor4 = 0; void PWM_Init(void); void RCC_Configuration(void); void GPIO_Configuration(void); ..

Development/Embedded 2014. 2. 19. 22:18

ATmega128 - PWM Mode 14 소스

atmega128 / pwm / pwm mode 14 / atmega128 pwm #include void main(void) { DDRB = 0xFF; DDRE = 0xFF; PORTB = 0xFF; PORTE = 0xFF; /* FastPWM 14 mode setting */ TCCR1A |= (1

Development/Embedded 2014. 2. 19. 20:37

추가 정보

인기글

최신글

페이징

이전
1 2
다음
TISTORY
World of Komastar © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바