개발자/Arduino

아두이노 멀티태스킹 구현하기 3.5 - Multi-tasking the arduino 라이브러리 링크 페이지

지구빵집 2017. 4. 21. 14:53
반응형

 

 

 

아두이노에서 멀티태스킹 구현하기 3 편에 설명한 더 읽을 거리의  라이브러리 링크 페이지

 

전체 포스팅한 자료는 아래와 같다.

아두이노에서 멀티태스킹 구현하기 1 - Multi-tasking the arduino : Blink without delay

아두이노에서 멀티태스킹 구현하기 2 - Multi-tasking the arduino : Blink without delay

아두이노에서 멀티태스킹 구현하기 3 - Multi-tasking the arduino : Blink without delay

아두이노에서 멀티태스킹 구현하기 3.5 - Multi-tasking the arduino 라이브러리 링크 페이지

아두이노에서 멀티태스킹 구현하기 4 - Multi-tasking the arduino

 

 

 

 

 

Libraries and Links 

 

타이머는 다양한 주파수에서 작동하고 다른 모드에서 작동하도록 구성 할 수 있습니다. 인터럽트를 생성하는 것 외에도 PWM 핀을 제어하는데도 사용됩니다. 타이머를 구성하고 사용하는 방법을 이해하는 데 도움이되는 훌륭한 자료는 다음과 같습니다.

 

Arduino 101 Timers 

http://robotshop.com/letsmakerobots/arduino-101-timers-and-interrupts

 

Secrets of Arduino PWM 

https://www.arduino.cc/en/Tutorial/SecretsOfArduinoPWM

 

Timer/PWM Cheat Sheet 

http://playground.arduino.cc/Main/TimerPWMCheatsheet

 

 

Timer Libraries

 

웹에는 수많은 Arduino 'timer'라이브러리가 있습니다. 많은 사람들이 millis ()를 항상 모니터링하고 처음에 봤던 것처럼 지속적인 폴링을 사용한다. 실제로 인터럽트를 생성하도록 타이머를 구성 할 수 있는 방법들은 거의 없다.

 

 

Paul Stoffregan의 탁월한 TimerOne 및 TimerThree 라이브러리는 타이머 인터럽트 구성에 대한 많은 세부 사항을 처리합니다. (TimerThree는 UNO에는 적용되지 않으며 Leonardo, Mega 및 일부 Teensy 보드와 함께 사용할 수 있습니다)

 

TimerOne & TimerThree Libraries

https://www.pjrc.com/teensy/td_libs_TimerOne.html

 

아래 직접 다운

 

Included with the Teensyduino Installer
Latest TimerOne on Github
Latest TimerThree on Github

 

 

Pin Change Interrupts

 

Arduino UNO에는 2 개의 외부 인터럽트 핀만 있습니다. 하지만 2 개 이상의 인터럽트가 필요한 경우에는 어떻게해야합니까? 다행히 Arduino UNO는 모든 핀에서 "핀 변경"인터럽트를 지원합니다.

핀 변경 인터럽트는 외부 인터럽트와 유사합니다. 차이점은 8 개의 연관된 핀 중 하나에서 상태가 변경되면 하나의 인터럽트가 생성된다는 것입니다. 인터럽트를 유발 한 8 개의 핀 중 어느 것이 었는지 파악하기 위해 8 개의 모든 핀 중 마지막으로 알려진 상태를 추적해야하기 때문에 좀 더 복잡합니다.

 

Arduino 놀이터의 PinChangeInt 라이브러리는 인터럽트 핀 변경을 위한 편리한 인터페이스를 구현합니다.

인터럽트 변경  : http://playground.arduino.cc/Main/PinChangeInt 참조

 

 

벨라지오 호텔 분수

 

반응형