embeded/AVR (ATmega,ATtiny)2016. 4. 16. 22:55

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



음.. 이것들로 멀 하면 좋을까나...

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

우리로봇기술 사이트 폐쇄  (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
Posted by 구차니
embeded/raspberry pi2016. 4. 15. 17:34

한줄요약하면..

마스터가 둘이거나, 선이 뒤바뀌었거나?



$ 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]


+ 젠장.. 멀티 마스터였던건가!

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2016. 4. 14. 17:16

음... 생각해보니 스테핑 모터 L297에 클럭으로 넣어줄때.. PWM을 이용해 주파수를 변조하면 될 기분?

덤으로.. 스피커 붙여서 pwm으로 스피커 달때도 쓸만해 보이고?


[링크 : http://aquaticus.info/pwm-frequency]

[링크 : http://eleccelerator.com/avr-timer-calculator/]



헐?! 프로그램!




[링크 : http://www.avrcalc.com/download.html]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

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
Posted by 구차니
embeded/arduino(genuino)2016. 4. 14. 17: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] 라이브러리

'embeded > arduino(genuino)' 카테고리의 다른 글

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
Posted by 구차니
embeded/Cortex-M3 Ti2016. 4. 14. 13:51

아.. 이래서 시간이 초기화가 안된거였나..





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(); 


'embeded > Cortex-M3 Ti' 카테고리의 다른 글

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
Posted by 구차니
embeded/arduino(genuino)2016. 4. 13. 15:42

그냥 정말 날로 먹는 코드

D3와 D6을 스피커로 연결해서

GPIO를 통해 해보니..

492.8Hz 로 duty 50% 정도의 PWM 파형이 나오는데

이걸로 음악을 어떻게 해볼까...




void setup() {
  // put your setup code here, to run once:
  pinMode(3, OUTPUT);
  pinMode(6, OUTPUT);
  digitalWrite(6, 0);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(3, 1);
  delay(1);
  digitalWrite(3, 0);
  delay(1);
}


'embeded > arduino(genuino)' 카테고리의 다른 글

arduino usb joystic / atmega32u4  (0) 2016.04.19
processing / arduino / mpu-6050  (0) 2016.04.14
아두이노 스테핑 모터..  (0) 2016.04.13
아두이노 내장 온도 센서 테스트  (0) 2016.04.11
아두이노 3.3V  (0) 2016.04.09
Posted by 구차니
embeded/arduino(genuino)2016. 4. 13. 09:39

와... 몰라도 쓸수 있을 것만 같은 기분?

어째... 달링턴 쓰는게 더 직관적인 기분이지?


[링크 : http://wiki.vctec.co.kr/opensource/arduino/steppermotor] L293D / 아두이노 스테핑 라이브러리

[링크 : http://www.ohm.co.kr/...&num1=999987&num2=00000&lock=N] UNL2003 달링턴 어레이


'embeded > arduino(genuino)' 카테고리의 다른 글

processing / arduino / mpu-6050  (0) 2016.04.14
아두이노.. gpio로 pwm 신호 출력  (0) 2016.04.13
아두이노 내장 온도 센서 테스트  (0) 2016.04.11
아두이노 3.3V  (0) 2016.04.09
아두이노 퓨즈비트 설정관련  (0) 2016.04.07
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2016. 4. 12. 21:24

74HC573 D latch를 이용하여 사용


주소(ATmega -> SRAM)와 데이터(SRAM -> ATmega) 는 동일 포트를 사용하며

래치를 통해 데이터의 방향을 결정하여 송신/수신한다.



[링크 : http://alnova2.tistory.com/673]


생각해보니.. 보드가 하나 있네.. 해봐야지

[링크 : http://www.us-technology.co.kr/product/product_main.asp?mode=101&smode=9]



[링크 : http://www.us-technology.co.kr/product/doc/mpb008.pdf]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

부품들 정리  (0) 2016.04.16
avr pwm timer 계산기  (0) 2016.04.14
avr에 스피커 달기  (0) 2016.03.16
클론 avrisp avr studio 6 호환성(?)  (0) 2016.03.07
AVR ISP 부활의 조짐?!  (0) 2016.03.05
Posted by 구차니
embeded/Cortex-M4 Ti2016. 4. 12. 18:02

keil 에서 --c99주고 이런 에러 발생.

[링크 : http://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm]

[링크 : http://www.keil.com/support/man/docs/armcc/armcc_chr1359124904416.htm]


uint32_t 등은 c99 타입인데...

#include <stdint.h>

#include <stdbool.h>

를 추가해주면 일단 패스

[링크 : http://www.keil.com/forum/17012/]

[링크 : http://www.keil.com/support/man/docs/armcc/armcc_chr1359124241645.htm]


error:  #1059-D: an entity with internal linkage cannot be referenced within an inline function with external linkage


굳이 해석하자면...

internal linkage와 함께 있는 항목(entity)은 external linkage와 함께 있는 inline function안에서 참조될 수 없다.



음.. inline 대신 static으로 쓰도록 해야 하는건가?

Note that instead of using static for internal linkage it is better to use anonymous namespaces into which you can also put classes. The linkage for anonymous namespaces has changed between C++98 and C++11 but the main thing is that they are unreachable from other translation units.

[링크 : http://stackoverflow.com/questions/1358400/what-is-external-linkage-and-internal-linkage-in-c]


클래스 내에서 안써서 그런가?

[링크 : https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspx]



+

2018.04.20

일단.. extern __inline 으로 하니 문제없이 빌드는 됨.

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

TM4C1231E6PM ADC  (0) 2016.05.20
tm4c1231e6pm / lm3s1607 타이머 차이점...?  (0) 2016.05.06
tm4c1231e6pm DIV400 ?  (0) 2016.04.12
lm3s1607 대체제 검색중..  (0) 2016.04.12
cortex-m4용 ti 라이브러리 tivaware  (0) 2016.04.12
Posted by 구차니
embeded/Cortex-M4 Ti2016. 4. 12. 16:27

lm3s1607에는 제공되지 않던 기능인데...

main 클럭을 PLL을 통해 400MHz로 올리고

그걸 다시 1/2 로 분기 후(200MHz)


클럭 디바이더를 통해 작동할 클럭을 설정하는데...

lm3s1607은 50MHz

tm4v1231e6pm은 80MHz 까지 작동한다고 해서 찾아보니...



위는 tm4v1231e6pm

아래는 lm3s1607 메뉴얼에서 발췌


tm4v1231e6pm 메뉴얼에서 발췌

DIV400을 설정시 사용가능한 클럭으로 /5에 80MHz 가 존재..


아무튼.. DIV400을 설정해야만 80MHz 최고 속도로 작동이 가능 할 것으로 보이니..

맘편하게 기존 회로에서 클럭 그대로 설정하면 50MHz로 쓰는데 지장없다는 걸려나?

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

TM4C1231E6PM ADC  (0) 2016.05.20
tm4c1231e6pm / lm3s1607 타이머 차이점...?  (0) 2016.05.06
keil/c99 에서 __inline ...?  (0) 2016.04.12
lm3s1607 대체제 검색중..  (0) 2016.04.12
cortex-m4용 ti 라이브러리 tivaware  (0) 2016.04.12
Posted by 구차니