'embeded > arduino(genuino)' 카테고리의 다른 글
arduino clcd (0) | 2016.11.25 |
---|---|
arduino nano 스펙(PWM) (0) | 2016.11.25 |
arduino firmata (0) | 2016.04.27 |
attiny2313 usb client (0) | 2016.04.19 |
arduino usb joystic / atmega32u4 (0) | 2016.04.19 |
arduino clcd (0) | 2016.11.25 |
---|---|
arduino nano 스펙(PWM) (0) | 2016.11.25 |
arduino firmata (0) | 2016.04.27 |
attiny2313 usb client (0) | 2016.04.19 |
arduino usb joystic / atmega32u4 (0) | 2016.04.19 |
자꾸 이상해서 데이터시트 비교하니..
헐.. 16bit 모드로 2개씩 쓰는게 불가능한건가?
아무튼.. timer match던 interval load던 lm3s에서는 둘다 쪼개져 있던게
tm4c에서는 하나로 합쳐져 있다...
얘는 lm3s1607
#define TIMER_CFG_16_BIT_PAIR 0x04000000 // Two 16-bit timers // Set the global timer configuration. HWREG(ulBase + TIMER_O_CFG) = ulConfig >> 24; |
CFG에 24비트 쉬프트 해서 하는데.. GPTMCFG의 값이 그러면...
0x4로 16bit timer 로 설정되고..
얘는 tm4c1231e6pm
#define TIMER_CFG_SPLIT_PAIR 0x04000000 // Two half-width timers HWREG(ui32Base + TIMER_O_CFG) = ui32Config >> 24; |
얘도.. 쪼개서 쓰는게 있긴한데...
+
되긴 되는데.. 클럭의 차이로 인해서(50MHz / 80Mhz) 타이머 load 값에 차이가 생기니까..
그게 문제인듯...
50,000,000 를 /1000 하면 50,000 으로 65535를 안넘는데
80,000,000 을 /1000 하면 80,000 으로 65525를 넘어서서 오작동 하는 듯...
아무튼 프리스케일러 써봐야하나...
오늘의 지름.. 개발보드 (0) | 2016.08.24 |
---|---|
TM4C1231E6PM ADC (0) | 2016.05.20 |
keil/c99 에서 __inline ...? (0) | 2016.04.12 |
tm4c1231e6pm DIV400 ? (0) | 2016.04.12 |
lm3s1607 대체제 검색중.. (0) | 2016.04.12 |
아두이노 예제에 있는데 머하는 넘인지 찾아 봐야지
[링크 : https://www.arduino.cc/en/Reference/Firmata]
arduino nano 스펙(PWM) (0) | 2016.11.25 |
---|---|
아두이노 프로세싱(언어) (0) | 2016.05.09 |
attiny2313 usb client (0) | 2016.04.19 |
arduino usb joystic / atmega32u4 (0) | 2016.04.19 |
processing / arduino / mpu-6050 (0) | 2016.04.14 |
attiny 12MHz로 일반 gpio를 이용 저속 usb 통신하는 녀석..
int0 / int1 인가.. gpio로 pd2 / pd3 일려나..
[링크 : http://codeandlife.com/2012/01/22/avr-attiny-usb-tutorial-part-1/]
[링크 : http://codeandlife.com/2012/01/25/avr-attiny-usb-tutorial-part-2/]
[링크 : http://codeandlife.com/2012/01/29/avr-attiny-usb-tutorial-part-3/]
[링크 : http://codeandlife.com/2012/02/04/avr-attiny-usb-tutorial-part-4/]
USBtiny is a software implementation of the USB low-speed protocol for the Atmel ATtiny microcontrollers.
[링크 : http://dicks.home.xs4all.nl/avr/usbtiny/]
V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.
아두이노 프로세싱(언어) (0) | 2016.05.09 |
---|---|
arduino firmata (0) | 2016.04.27 |
arduino usb joystic / atmega32u4 (0) | 2016.04.19 |
processing / arduino / mpu-6050 (0) | 2016.04.14 |
아두이노.. gpio로 pwm 신호 출력 (0) | 2016.04.13 |
아두이노로 조이스틱이나 키보드 만드는게 보여서 검색을 해보니
특정 버전의 아두이노에서만 되는 이유가
ATmega??U4 시리즈에는 USB 컨트롤러가 내장되어 있어서 였군 -_-
ATmega16U4/ATmega32U4
8-bit Microcontroller with 16/32K bytes of ISP Flash and USB Controller
[링크 : http://www.atmel.com/images/atmel-7766-8-bit-avr-atmega16u4-32u4_datasheet.pdf]
[링크 : http://www.instructables.com/id/Add-USB-Game-Controller-to-Arduino-LeonardoMicro/]
[링크 : https://github.com/MHeironimus/ArduinoJoystickLibrary]
arduino firmata (0) | 2016.04.27 |
---|---|
attiny2313 usb client (0) | 2016.04.19 |
processing / arduino / mpu-6050 (0) | 2016.04.14 |
아두이노.. gpio로 pwm 신호 출력 (0) | 2016.04.13 |
아두이노 스테핑 모터.. (0) | 2016.04.13 |
atmega 시리즈
UST-MPB-ATmega128 v1 7H46 HC573
http://www.us-technology.co.kr/product/product_main.asp?mode=101&smode=2
UST-MPB-ATmega128 v3 74HC573 / CS18LV02565ACR70
http://www.us-technology.co.kr/product/product_main.asp?mode=101&smode=9
http://www.gravitech.us/arduino.html / arduino nano 3.1
? arduino nano 3.0
MEGA128_XBee
http://www.cpuplaza.co.kr/goods_detail.php?goodsIdx=446
GS-08A ATmega8
http://www.gersangin.com/shop/goods/goods_view.php?&goodsno=1092&category=025
gy-291 / adxl-345
https://www.eleparts.co.kr/EPXFBJ8Cbrand
AT89S52
ATTINY2313-20PU
ATMEGA8A-PU
HD74HC244P
MAX232CPE
LM324
L297 / L298N
SLA7033M
음.. 이것들로 멀 하면 좋을까나...
우리로봇기술 사이트 폐쇄 (0) | 2016.08.24 |
---|---|
avr iar __flash winavr PROGMEM (0) | 2016.07.06 |
avr pwm timer 계산기 (0) | 2016.04.14 |
atmega sram external (0) | 2016.04.12 |
avr에 스피커 달기 (0) | 2016.03.16 |
한줄요약하면..
마스터가 둘이거나, 선이 뒤바뀌었거나?
$ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10: 10 11 12 13 14 15 16 17 18 19 1a UU 1c 1d 1e 1f 20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70: 70 71 72 73 74 75 76 77 |
Generally this happens because something is pulling SDA (pin 3) low.
The i2cdetect program checks for the existence of a device by sending its address then letting SDA float high. If the device exists it should pull SDA low to signal its presence.
Check your wiring to make sure SDA hasn't been inadvertently connected to ground.
[링크 : http://raspberrypi.stackexchange.com/questions/32719/i2cdetect-shows-every-possible-address]
1. Two masters on the same I2C bus.
2. SDA & SCL swapped.
[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=93222]
+ 젠장.. 멀티 마스터였던건가!
으아아아아 앙대 ㅠㅠ 케이블 단선? (4) | 2016.05.25 |
---|---|
라즈베리 mpeg2 / vc-1 라이센스 (0) | 2016.05.23 |
라즈베리는.. i2c slave 모드 불가? (0) | 2016.04.06 |
OV5647 라즈베리 카메라 관련 (0) | 2016.04.05 |
라즈베리 파이 CSI multiplexer (0) | 2016.04.05 |
음... 생각해보니 스테핑 모터 L297에 클럭으로 넣어줄때.. PWM을 이용해 주파수를 변조하면 될 기분?
덤으로.. 스피커 붙여서 pwm으로 스피커 달때도 쓸만해 보이고?
[링크 : http://aquaticus.info/pwm-frequency]
[링크 : http://eleccelerator.com/avr-timer-calculator/]
헐?! 프로그램!
avr iar __flash winavr PROGMEM (0) | 2016.07.06 |
---|---|
부품들 정리 (0) | 2016.04.16 |
atmega sram external (0) | 2016.04.12 |
avr에 스피커 달기 (0) | 2016.03.16 |
클론 avrisp avr studio 6 호환성(?) (0) | 2016.03.07 |
음... euler angle 이란걸 발견해서 이미지로 검색하다 보니..
역시 세상은 넓고 찾아 쓰는것도 빡세구나..
[링크 : http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A850550620]
이미지에 보니.. FreeIMU 란게 보이는데.. 보드네?
[링크 : http://www.varesano.net/projects/hardware/FreeIMU]
[링크 : http://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/]
[링크 : http://www.geekmomprojects.com/mpu-6050-dmp-data-from-i2cdevlib/]
[링크 : https://en.wikipedia.org/wiki/Gimbal_lock]
[링크 : https://github.com/jrowberg/i2cdevlib] 라이브러리
attiny2313 usb client (0) | 2016.04.19 |
---|---|
arduino usb joystic / atmega32u4 (0) | 2016.04.19 |
아두이노.. gpio로 pwm 신호 출력 (0) | 2016.04.13 |
아두이노 스테핑 모터.. (0) | 2016.04.13 |
아두이노 내장 온도 센서 테스트 (0) | 2016.04.11 |
아.. 이래서 시간이 초기화가 안된거였나..
unsigned long ulStatus; unsigned long ulNVData[64]; // // Need to enable the hibernation peripheral before using it. // SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); // // Enable clocking to the Hibernation module. // HibernateEnableExpClk(SysCtlClockGet()); // // User-implemented delay here to allow crystal to power up and stabilize. // // // Configure the clock source for Hibernation module, and enable the RTC // feature. This configuration is for a 4.194304 MHz crystal. // HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128); HibernateRTCEnable(); // // Set the RTC to 0, or an initial value. The RTC can be set once when the // system is initialized after the cold-startup, and then left to run. Or // it can be initialized before every hibernate. // HibernateRTCSet(0); // // Set the match 0 register for 30 seconds from now. // HibernateRTCMatch0Set(HibernateRTCGet() + 30); // // Clear any pending status. // ulStatus = HibernateIntStatus(0); HibernateIntClear(ulStatus); // // Save the program state information. The state information will be // stored in the ulNVData[] array. It is not necessary to save the full 64 // words of data, only as much as is actually needed by the program. // HibernateDataSet(ulNVData, 64); // // Configure to wake on RTC match. // HibernateWakeSet(HIBERNATE_WAKE_RTC); // // Request hibernation. The following call may return since it takes a // finite amount of time for power to be removed. // HibernateRequest(); |
keil uvision에서 colink-ex 연동하기 (0) | 2016.09.02 |
---|---|
ekc-lm3s811 를 ICDI로 사용하기 (0) | 2016.08.27 |
cortex-m3 인터럽트 관련 조사 (0) | 2016.02.18 |
uart tx interrupt (0) | 2015.12.18 |
coflash 구조 및 에러 메시지.. (0) | 2015.12.11 |