'Programming > lisp' 카테고리의 다른 글
lisp 예제 (0) | 2014.04.05 |
---|---|
lisp 반복문 dolist, dotimes, do (0) | 2013.01.30 |
lisp cond (0) | 2013.01.28 |
lisp when/unless macro (2) | 2013.01.28 |
lisp 명령어 if progn (0) | 2013.01.28 |
lisp 예제 (0) | 2014.04.05 |
---|---|
lisp 반복문 dolist, dotimes, do (0) | 2013.01.30 |
lisp cond (0) | 2013.01.28 |
lisp when/unless macro (2) | 2013.01.28 |
lisp 명령어 if progn (0) | 2013.01.28 |
어드레스 맵 구조 까지 나오는 예제가 있으면 좋으련만...
그나저나 SDA, SCL에 풀업을 꼭 달으라네..
[링크 : http://electronicsdo.tistory.com/entry/I2C-The-I2C-of-ATmega128]
SCL 과 SDA 단자는 오픈 콜렉터 또는 오픈 드레인 방식으로 되어 있어 Wired-AND 기능을 합니다. 이 단자는 외부에 풀업 저항(수 K 오옴) 을 연결해 주어야 합니다.
[링크 : http://cafe.daum.net/_c21_/bbs_search_read?grpid=lH2L&fldid=GSYT&datanum=85]
SDA,SCL핀에 풀업저항을 꼭 달아줍니다.
[링크 : http://openctrl.tistory.com/entry/I2C-TWI]
자체 Pull-Up 저항은
30-50kΩ 정도로 저항치가 좀 높은 편이라서, 실제로 Data 와 Clock 라인에는
4.7kΩ 정도로 따로 Pull-Up 저항을 걸어두는 편이 좋습니다.
USART UBRR error rate (0) | 2015.07.29 |
---|---|
avr-libc 8bit AVR C++ (0) | 2015.07.28 |
atmega128 gpio 인터럽트 데이터시트 내용 (0) | 2015.07.18 |
AVR Studio / AVRdude 연동 (0) | 2015.03.12 |
AVRISP 호환 제품 ? (0) | 2015.03.11 |
임베디드 쪽이라던가 조금 뜨는(?) 녀석 같은데..
lighttpd 등과 비교해서 머가 우위일려나...
[링크 : https://embedthis.com/goahead/]
[링크 : http://egloos.zum.com/sharkynara/v/1485910]
GoAhead is only 115K of code
[링크 : https://embedthis.com/goahead/overview.html]
HTTP Server Engine
Full HTTP/1.1 support
Single-threaded, event-based server
Performance
Request throughput (> 10,000 requests per second)
Event-based core for efficient processing of multiple requests
Small memory footprint: 115K code
Dynamic Content
Server-Side JavaScript
CGI/1.1
GoActions — In-memory URL actions
Custom C Handlers
Javascript Templates (JST)
Web page templating engine
Embedded Javascript (subset) in HTML pages
Fast, automatic reloading of updated web pages
Ajax View Controls with jQuery support
Session state management
Developer Support
Extensive C API
Embedding Support
Supports ARM, MIPS, X86, PPC and Sparc processors
Execute from ROM (XIP)
Standards
HTTP/1.1
CGI/1.1
[링크 : https://embedthis.com/goahead/specs.html]
Linux Appliance Design: A Hands-on Guide to Building Linux Appliances
lighttpd 1.4.14
goahead 2.1.8
비교 우위 정하기 모호한.. 테이블 내용
[링크 : https://books.google.co.kr/books...]
라즈베리 파이 오디오 스트리밍 관련 문서 (0) | 2015.09.18 |
---|---|
HelpNDoc (0) | 2015.07.29 |
OMV - Opensource Media Valut (0) | 2015.07.15 |
freetype / jam (0) | 2015.06.25 |
knime - 빅데이터 분석툴 (0) | 2015.05.28 |
PE4/PE5 는 Output Compate (OC3)
PE6은 Timer/counter 3 clk input(T3)
PE7은 Input Capture (IC)
PD쪽은.. 통신을 쓰면 4개 선을 쓰지 못하니
실질적으로 사용가능한 falling edge / rising edge 탐지는 2개 정도 일려나?
결론은.. 핀하나하나 while로 감지 하지 않으려면...
tie-up해서 잡는 수 밖에 없을 것으로 보이네..
External Interrupts
The External Interrupts are triggered by the INT7:0 pins. Observe that, if enabled, the interrupts will trigger even if the INT7:0 pins are configured as outputs. This feature provides a way of generating a software interrupt. The External Interrupts can be triggered by a falling or rising edge or a low level. This is set up as indicated in the specification for the External Interrupt Control Registers – EICRA (INT3:0) and EICRB (INT7:4). When the external interrupt is enabled and is configured as level triggered, the interrupt will trigger as long as the pin is held low. Note that recognition of falling or rising edge interrupts on INT7:4 requires the presence of an I/O clock, described in “Clock Systems and their Distribution” on page 35. Low level interrupts and the edge interrupt on INT3:0 are detected asynchronously. This implies that these interrupts can be used for waking the part also from sleep modes other than Idle mode. The I/O clock is halted in all sleep modes except Idle mode. Note that if a level triggered interrupt is used for wake-up from Power-down mode, the changed level must be held for some time to wake up the MCU. This makes the MCU less sensitive to noise. The changed level is sampled twice by the Watchdog Oscillator clock. The period of the Watchdog Oscillator is 1µs (nominal) at 5.0V and 25°C. The frequency of the Watchdog Oscillator is voltage dependent as shown in the “Electrical Characteristics” on page 318. The MCU will wake up if the input has the required level during this sampling or if it is held until the end of the start-up time. The start-up time is defined by the SUT fuses as described in “Clock Systems and their Distribution” on page 35. If the level is sampled twice by the Watchdog Oscillator clock but disappears before the end of the start-up time, the MCU will still wake up, but no interrupt will be generated. The required level must be held long enough for the MCU to complete the wake up to trigger the level interrupt.
EICRA와 EICRB는 조금 다르게 설명이 적혀있으니 자세히 읽어 봐야 할 듯..
avr-libc 8bit AVR C++ (0) | 2015.07.28 |
---|---|
avr twi / i2c 예제 및 풀업관련 (0) | 2015.07.19 |
AVR Studio / AVRdude 연동 (0) | 2015.03.12 |
AVRISP 호환 제품 ? (0) | 2015.03.11 |
SED1520 데이터시트 / Page, Line, Column (0) | 2014.03.27 |
초음파 관련 루틴을 while로 처리해서
오차가 있을것으로 생각되다 보니..
인터럽트 처리방식 검색...
gpio 유틸에도 존재는 한다.
gpio edge <pin> rising/falling/both/none This enables the given pin for edge interrupt triggering on the rising, falling or both edges. (Or none which disables it) |
python 버전
GPIO.add_event_detect(17, GPIO.FALLING, callback=my_callback, bouncetime=300) GPIO.add_event_detect(23, GPIO.FALLING, callback=my_callback2, bouncetime=300) [링크 : http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-part-3] |
c 버전
void myInterrupt(void) { eventCounter++; } int main(void) { if (wiringPiSetup () < 0) { fprintf (stderr, "Unable to setup wiringPi: %s\n", strerror (errno)); return 1; } // set Pin 17/0 generate an interrupt on high-to-low transitions // and attach myInterrupt() to the interrupt if ( wiringPiISR (BUTTON_PIN, INT_EDGE_FALLING, &myInterrupt) < 0 ) { fprintf (stderr, "Unable to setup ISR: %s\n", strerror (errno)); return 1; } // display counter value every second. while ( 1 ) { printf( "%d\n", eventCounter ); eventCounter = 0; delay( 1000 ); // wait 1 second } return 0; } [링크 : http://cs.smith.edu/dftwiki/index.php/Tutorial:_Interrupt-Driven_Event-Counter_on_the_Raspberry_Pi] |
라즈베리 파이 출력 변경(부팅 이후) (14) | 2015.08.03 |
---|---|
라즈베리 파이 B / composite & HDMI + 해상도 (0) | 2015.07.30 |
라즈베리 파이 키보드가 이상해! (0) | 2015.07.17 |
라즈베리 파이 2 - 릴레이 (2) | 2015.07.13 |
라즈베리 파이 - 초음파 거리 센서 2 (2) | 2015.07.13 |
8월 할일 (0) | 2015.08.02 |
---|---|
8월... (0) | 2015.08.01 |
codility 잼나네.. (0) | 2015.07.06 |
자바의 앞날은.. (0) | 2015.07.03 |
아씨... 오실로스코프 하나 질러? (0) | 2015.06.21 |
전에 쓴적이 있던가?
아무튼.. 지금글을 보고 있노라니..
국제화 관련 설정에서
gb가 기본값이었던거 같은데..
영국에서 만든게 왜...중국이 기본값이 된걸까?
+
2017.09.12
gb는 영국임. Great Britain
키보드 레이아웃은 집에가서 테스트 해봐야지 ..
[링크 : http://raspberrypi.stackexchange.com/questions/1042/why-is-my-symbol-not-working]
~!@#$%^&*()_+| 를 입력한 화면 확실히 먼가 이상하게 나온다.
프랑이라던가? 이.. 미묘한 기호순서라니!
XKBLAYOUT을 gb에서 us로 바꾸고
pi@raspberrypi ~ $ sudo cat /etc/default/keyboard # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="gb" XKBVARIANT="" XKBOPTIONS="" BACKSPACE="guess" |
setupcon을 해주면 빠르게 설정이 된다는데 ssh나 터미널로는 안된다
pi@raspberrypi ~ $ sudo setupcon We are not on the console, the console is left unconfigured. |
pi@raspberrypi ~ $ sudo service lightdm stop ctrl -alt - f1 pi@raspberrypi ~ $ sudo setupcon |
아무튼 리부팅 하고 오니
~!@#$%^&*()_+|
원하는대로 잘 나온다.
라즈베리 파이 B / composite & HDMI + 해상도 (0) | 2015.07.30 |
---|---|
wiringpi GPIO 인터럽트 처리 (0) | 2015.07.18 |
라즈베리 파이 2 - 릴레이 (2) | 2015.07.13 |
라즈베리 파이 - 초음파 거리 센서 2 (2) | 2015.07.13 |
라즈베리 파이 - 초음파 거리 센서 (0) | 2015.07.07 |
영.. 회복이 안되네.. -_-
그래도 막 3000~4000 오던게
2000 이하로 ㅋㅋㅋ
그래도 네이버 비율이 그리 낮아지지 않았다는게 참.. 슬프다 -_-
구글 비율이 좀 오르고 전체 방문자가 늘면 좋으련만..
머.. 6월 부터는 계속 2000명대네 ㅋㅋ
방학이라 그런건가?!
기분전환겸 스킨 변경 (0) | 2015.09.04 |
---|---|
네이버가.. 50% 돌파? (2) | 2015.07.31 |
출장여파 ㅋㅋㅋ (0) | 2015.07.12 |
댓글 알림은 있는데 댓글이 사라졌다? (4) | 2015.06.11 |
한RSS 역사의 뒤안길로.. (0) | 2015.05.14 |
ADEX 2015 (0) | 2015.10.27 |
---|---|
ADEX 2015 사진은 .. 나중에 ㅠㅠ (0) | 2015.10.25 |
NAS 프로그램인데
라즈베리용도 있다. ㄷㄷ
(그런데 라즈베리 USB 하드라서 속도가 안날텐데.. 게다가 USB로 랜이라...)
[링크 : http://www.openmediavault.org/]
[링크 : http://sourceforge.net/projects/openmediavault/files/]
HelpNDoc (0) | 2015.07.29 |
---|---|
goahead 웹 서버 (0) | 2015.07.19 |
freetype / jam (0) | 2015.06.25 |
knime - 빅데이터 분석툴 (0) | 2015.05.28 |
redmine / 레드마인 (0) | 2015.04.14 |