단순하게 함수 이름이나 바꾸고 그러는걸 리팩토링이라고 하는줄 알았는데
어떻게 보면, 내부 루틴을 함수로 꺼내내거나 하는식으로 유지보수가 편하도록 하는 행위이다.

소프트웨어 공학에서 리팩토링(refactoring)은 주로 '결과의 변경 없이 코드의 구조를 재조정함'을 뜻한다. 주로 가독성을 높이고 유지보수를 편하게 한다. 버그를 없애거나 새로운 기능을 추가하는 행위는 아니다. 사용자가 보는 외부 화면은 그대로 두면서 내부 논리나 구조를 바꾸고 개선하는 유지보수 행위이다. 

[링크 : http://ko.wikipedia.org/wiki/리팩토링]   

[링크 : http://www.ibm.com/developerworks/kr/library/os-ecref/]

'Programming > 소프트웨어 공학' 카테고리의 다른 글

디자인 패턴 - singleton  (0) 2014.04.02
매번 느끼는 서글프지만 인정하고 싶지 않은 것  (0) 2012.02.08
간트차트  (0) 2012.01.31
SRS / SDS  (0) 2011.06.20
CMMI / TMMI  (0) 2011.06.20
Posted by 구차니
Linux/Ubuntu2012. 1. 14. 22:42
lshw는 lspci나 lsusb 등의 자료를 조합해서 트리구조로 출력해주는 유틸리티이다.
그런데 너무 상세하게 나와서... 오히려 보기가 힘드네 -_-
다행히도! lshw-gtk 라는 이름의 GUI 툴도 제공한다.!!

$ sudo apt-get install lshw-gtk
 


$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 12)
06:00.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:00.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
06:00.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:00.4 SD Host controller: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
06:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05) 

$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 152d:2339 JMicron Technology Corp. / JMicron USA Technology Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

$ lshw
WARNING: you should run this program as super-user.
devbuntu                  
    description: Computer
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 1015MiB
     *-cpu
          product: Intel(R) Pentium(R) M processor 1.73GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          version: 6.13.8
          size: 1733MHz
          capacity: 1733MHz
          width: 32 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2 cpufreq
     *-pci
          description: Host bridge
          product: Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 04
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel
          resources: irq:0
        *-display:0
             description: VGA compatible controller
             product: Mobile 915GM/GMS/910GML Express Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:16 memory:b0080000-b00fffff ioport:1800(size=8) memory:c0000000-cfffffff(prefetchable) memory:b0040000-b007ffff
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 915GM/GMS/910GML Express Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: cap_list
             configuration: latency=0
             resources: memory:44000000-4407ffff
        *-multimedia
             description: Audio device
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=HDA Intel latency=0
             resources: irq:16 memory:b0000000-b0003fff
        *-pci:0
             description: PCI bridge
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: pci bus_master cap_list
             configuration: driver=pcieport
             resources: irq:24 ioport:2000(size=4096) memory:b4000000-b7ffffff ioport:d0000000(size=67108864)
           *-network
                description: Ethernet interface
                product: 88E8036 PCI-E Fast Ethernet Controller
                vendor: Marvell Technology Group Ltd.
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: eth0
                version: 12
                serial: 00:e0:91:0b:75:8c
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical
                configuration: broadcast=yes driver=sky2 driverversion=1.25 firmware=N/A ip=192.168.0.154 latency=0 multicast=yes
                resources: irq:26 memory:b4000000-b4003fff ioport:2000(size=256)
        *-pci:1
             description: PCI bridge
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: pci bus_master cap_list
             configuration: driver=pcieport
             resources: irq:25 ioport:3000(size=4096) memory:b8000000-bbffffff ioport:d4000000(size=67108864)
        *-usb:0
             description: USB Controller
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=uhci_hcd latency=0
             resources: irq:23 ioport:1820(size=32)
        *-usb:1
             description: USB Controller
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2
             vendor: Intel Corporation
             physical id: 1d.1
             bus info: pci@0000:00:1d.1
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=uhci_hcd latency=0
             resources: irq:19 ioport:1840(size=32)
        *-usb:2
             description: USB Controller
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: pci@0000:00:1d.2
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=uhci_hcd latency=0
             resources: irq:18 ioport:1860(size=32)
        *-usb:3
             description: USB Controller
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4
             vendor: Intel Corporation
             physical id: 1d.3
             bus info: pci@0000:00:1d.3
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=uhci_hcd latency=0
             resources: irq:16 ioport:1880(size=32)
        *-usb:4
             description: USB Controller
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
             vendor: Intel Corporation
             physical id: 1d.7
             bus info: pci@0000:00:1d.7
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=ehci_hcd latency=0
             resources: irq:23 memory:b0004000-b00043ff
        *-pci:2
             description: PCI bridge
             product: 82801 Mobile PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@0000:00:1e.0
             version: d4
             width: 32 bits
             clock: 33MHz
             capabilities: pci bus_master cap_list
             resources: ioport:4000(size=4096) memory:bc000000-bc0fffff memory:40000000-43ffffff(prefetchable)
           *-pcmcia
                description: CardBus bridge
                product: PCIxx21/x515 Cardbus Controller
                vendor: Texas Instruments
                physical id: 0
                bus info: pci@0000:06:00.0
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pcmcia bus_master cap_list
                configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=192
                resources: irq:16 memory:fedff000-fedfffff ioport:4000(size=256) ioport:4400(size=256) memory:40000000-43ffffff(prefetchable) memory:48000000-4bffffff
           *-firewire
                description: FireWire (IEEE 1394)
                product: OHCI Compliant IEEE 1394 Host Controller
                vendor: Texas Instruments
                physical id: 0.2
                bus info: pci@0000:06:00.2
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=ohci1394 latency=32 maxlatency=4 mingnt=2
                resources: irq:16 memory:bc006000-bc0067ff memory:bc000000-bc003fff
           *-storage
                description: Mass storage controller
                product: PCIxx21 Integrated FlashMedia Controller
                vendor: Texas Instruments
                physical id: 0.3
                bus info: pci@0000:06:00.3
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: storage bus_master cap_list
                configuration: driver=tifm_7xx1 latency=57 maxlatency=4 mingnt=7
                resources: irq:16 memory:bc004000-bc005fff
           *-generic
                description: SD Host controller
                product: PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
                vendor: Texas Instruments
                physical id: 0.4
                bus info: pci@0000:06:00.4
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=sdhci-pci latency=57 maxlatency=4 mingnt=7
                resources: irq:16 memory:bc007000-bc0070ff memory:bc006c00-bc006cff memory:bc006800-bc0068ff
           *-network
                description: Wireless interface
                product: PRO/Wireless 2200BG [Calexico2] Network Connection
                vendor: Intel Corporation
                physical id: 2
                bus info: pci@0000:06:02.0
                logical name: eth1
                version: 05
                serial: 00:13:ce:18:65:9f
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=ipw2200 driverversion=1.2.2kmprq firmware=ABG:9.0.5.27 (Dec 12 2007) ip=192.168.0.162 latency=32 maxlatency=24 mingnt=3 multicast=yes wireless=IEEE 802.11g
                resources: irq:18 memory:bc008000-bc008fff
        *-isa
             description: ISA bridge
             product: 82801FBM (ICH6M) LPC Interface Bridge
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-ide:0
             description: IDE interface
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller
             vendor: Intel Corporation
             physical id: 1f.1
             bus info: pci@0000:00:1f.1
             logical name: scsi0
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: ide bus_master emulated
             configuration: driver=ata_piix latency=0
             resources: irq:18 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:1810(size=16)
           *-cdrom
                description: DVD-RAM writer
                product: DVD-RAM UJ-822S
                vendor: MATSHITA
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/cdrom
                logical name: /dev/cdrw
                logical name: /dev/dvd
                logical name: /dev/dvdrw
                logical name: /dev/scd0
                logical name: /dev/sr0
                version: 1.02
                capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
                configuration: ansiversion=5 status=nodisc
        *-ide:1
             description: IDE interface
             product: 82801FBM (ICH6M) SATA Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 04
             width: 32 bits
             clock: 66MHz
             capabilities: ide bus_master cap_list
             configuration: driver=ata_piix latency=0
             resources: irq:19 ioport:18c8(size=8) ioport:18c0(size=4) ioport:18a8(size=8) ioport:180c(size=4) ioport:18b0(size=16) memory:b0004400-b00047ff
        *-serial UNCLAIMED
             description: SMBus
             product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 04
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
             resources: ioport:18e0(size=32)
  *-scsi
       physical id: 1
       bus info: scsi@4
       logical name: scsi4
       capabilities: scsi-host
       configuration: driver=usb-storage 


[링크 : http://ezix.org/project/wiki/HardwareLiSter]
    [링크 : http://linux.die.net/man/1/lshw]
    [링크 : http://linux.die.net/man/8/lsusb]
    [링크 : http://linux.die.net/man/8/lspci]
Posted by 구차니
Linux/Ubuntu2012. 1. 14. 22:30
FALinux 세미나에서 득템(?)한 smi 자막 파일을 지원하는 동영상 재생 프로그램이다.

mplayer의 front-end라는데.. mplayer 패키지를 설치하면 cui로만 있어서 흐음..
아무튼 간에 기본으로 iso-9660 자막으로 되어 있기에 한글 자막은 깨지므로 CP949로 변경을 해주어야 한다.


[링크 : https://help.ubuntu.com/community/SMPlayer]
    [링크 : http://smplayer.sourceforge.net/]
Posted by 구차니
Linux/Ubuntu2012. 1. 14. 20:39
APM 서비스 설시치 필요한 패키지 목록

 $ sudo apt-get install apache2 mysql-server php5-mysql php5 php5-gd 

$ sudo a2enmod rewrite
$ sudo vi /etc/apache2/sites-available/default

$ sudo service apache2 restart

[링크 : http://imj2y.inetiz.com/25

문제점 목록
php5-gd를 설치하지 않으면 설치조건 검사에서 gd 쓸수없다고 나옴
php5-gb만 설치시에는 apache2를 재시작하기 전에는 인식하지 않음
php5-mysql을 설치하지 않으면 mysql 을 설치하더라도 db연결 목록에 나오지 않음
Posted by 구차니
Programming/forth2012. 1. 14. 11:15
forth는 꽤 좋다는데 흐음.. 머가 좋은진 미지수 -ㅁ-
안정적이고 저용량에 킹짱왕이라는데.. 공부할 자료가 그리 많지 않은건 좀... OTL
그리고 AVR용으로도 나와있다고 하니 한번 공부해볼만 할 듯. (디버깅 용도로 많이 쓰는것 같다)

[링크 : http://www.forth.org/] << 공식
[링크 : http://www.delorie.com/gnu/docs/gforth/gforth_toc.html] << 메뉴얼(tutorial)
[링크 : http://no-smok.net/nsmk/ForthLanguage

[링크 : http://win32forth.sourceforge.net/]
    [링크 : http://sourceforge.net/projects/win32forth/] << win32용 forth

[링크 : http://amforth.sourceforge.net/]



'Programming > forth' 카테고리의 다른 글

스택기반의 프로그래밍 언어 - forth  (2) 2012.01.15
Posted by 구차니
개소리 왈왈2012. 1. 13. 17:33



## ARM PC
이번에 처음본 녀석으로 arm pc 라는 녀석이다.
ATX 규격홀과 표준 pc 파워를 이용한 arm 보드인데 우분투 11.10이 올라가있다.
우분투에서 ARMv5 부터 패키지를 유지하고 있어서 쓰는데 큰 문제는 없어보이고
원래개발 컨셉은  대표이사님의 영혼이 담긴 샤우팅으로 요약
"크로스컴파일 개나줘버려 우린 개발보드에서 직접 컴파일한다!!"

확실히 ffmpeg같은건 크로스컴파일 환경이 괴랄해서 욕나오는데
늦더라도 넉넉한 메모리에서 컴파일 돌리는건 확실히 매력이고
우분투에서 패키지가 존재하니 lib***-dev 패키지가 존재하면 이러한 부담역시 한번에 해결할 수 있는 멋진 솔루션이다.
(대충 가격은 arm PC로서는 두자수 중반이라고 하니 저전력 서버로서의 가능성도 조금은 가져본다.)


## Zeroboot
제로부트는 가장 흥미를 가지던 녀석인데, 사용자 입장에서는 매우 좋은 기술이지만
임베디드 장비를 개발하는 개발자 입장에서는 크게 도움이 되지 않는 녀석이라는 면에서는 조금 실망 ㅠ.ㅠ
임베디드 개발의 경우 타겟 보드 자체를 완전 리부팅을 해야 하는데 이렇게 시스템의 변화 이후에 리부팅에 대해서는
스냅샷을 떠도 의미가 없고, 뜨는 시간보다는 리부팅 하는게 이득일테니
개발자에게는 1분의 부팅시간을 커피타임으로 쓸 수 있는 기회가 아직은 날아가지 않았으니 희망차게 커피나 타러... (응?)

아무튼, 과거의 하이버네이션이나 현재의 최대절전모드(머 그게 그거지만)와 유사하지만
저장하는 용량이나 복구방법의 차이로 인해 더욱 빠르게 하는 것이 특징이고,
대략적으로 부팅시에 MTD로 부터 일어오는 스냅샷의 크기는 최소 1MB 정도부터 시작을 한다고 한다.
그러니 빠를수 밖에~ 란 생각도 들면서도 하이버네이션이 모든 메모리를 덤프하고 그걸 복구하는데 한참 걸린걸 감안하면
그걸 얼마나 추려낸다고 노가다를 했을까, 하드웨어 분석한다고 얼마나 고생했을까라는게 마구마구 상상이 된다 -_-

[링크 : http://badayak.com/archives/1197 ]
Posted by 구차니
개소리 왈왈2012. 1. 13. 17:27
탈때 900원 이길래 싸네? 했는데....
꼴랑 2정거장(양재시민의숲-양재-강남) 가는데 내릴때
700원이 더찍히는 센스 ㅠㅠ

이녀석은... 끝에서 끝을 왕복해야 이득이겠구나 ㅠㅠ
머.. 그래도 양재-강남이 무지막히니 시간/비용대비로는 나쁘지 않은건가?

+
그나저나 몇분뒤에 오는지 안나오고 열차번호를 적어두니 헷갈리자너!!

'개소리 왈왈' 카테고리의 다른 글

전국고딩들의 로망 노스페이스!  (0) 2012.01.20
falinux 공개세미나 - arm pc / zeroboot  (0) 2012.01.13
똥차  (0) 2012.01.11
바보같은짓 더 바보같이 하기  (0) 2012.01.09
곡선구간 운전시 팁?  (2) 2012.01.06
Posted by 구차니
embeded/ARM2012. 1. 12. 19:44
winavr 처럼 윈도우용으로 만든(포팅한) avr gcc 이다.

[링크 : http://pinkwink.kr/28]
    [링크 : http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/#winarm]
[링크 : http://www.gnuarm.com/]

'embeded > ARM' 카테고리의 다른 글

TI LM3S 시리즈 특징 - hibernate module / non-volatile memory  (0) 2012.03.06
arm-linux-gcc 와 arm-elf-gcc의 차이점  (2) 2012.01.16
ARM infocenter  (0) 2011.12.10
ARM NEON  (0) 2011.08.04
arm용 linux 패치  (0) 2011.06.20
Posted by 구차니
개소리 왈왈2012. 1. 11. 23:26
어릴때는 이유는 모르겠지만 하루에 똥차 세대를 보면 운이 좋다고 했었는데
요즘에는 정말 그 미신이 가능하지 않을가 싶을 정도로 똥차보기가 힘들다. 

그런데 출근길 우리 회사가 있는 아파트형 공장 곳곳에 숨어있는
파란색의 똥차 3개 발견! 먼가 운이 좋을까 싶었는데 딱히 그런것도 아니고..
역시 로또를 사야 하는거였나 -_- 




아무튼 좀 드럽기는 하지만(?)
녹색똥차가 그리워지는 하루였다고 할까? 

'개소리 왈왈' 카테고리의 다른 글

falinux 공개세미나 - arm pc / zeroboot  (0) 2012.01.13
신분당선 비싸 ㅠㅠ  (2) 2012.01.13
바보같은짓 더 바보같이 하기  (0) 2012.01.09
곡선구간 운전시 팁?  (2) 2012.01.06
2012년 한해 목표  (2) 2012.01.01
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2012. 1. 11. 17:35
24CXX EEPROM 을 이용한 TWI 예제라는데
데이터시트를 살펴보면 8bit 레지스터를 위한 주소를 가지는 녀석이다.
용량이 큰녀석들은 16bit 주소를 사용하므로 nongnu에서 공개하는 소스대로 사용하면 안될듯 하다.
[링크 :  http://www.nongnu.org/avr-libc/user-manual/group__twi__demo.html



[링크 :  http://pdf1.alldatasheet.com/datasheet-pdf/view/200505/SANYO/LE24C0221M.html]


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

AVR ISP 핀 순서  (0) 2012.01.22
AVT FFT + DAC = 보청기?  (0) 2012.01.18
AVR EEPROM / CODE section 관련  (0) 2012.01.03
AVR ATmega용 JTAG과 AVR32 호환성?  (0) 2011.12.29
ATMEL AVR 시리즈별 플래시 / 메모리 용량  (2) 2011.12.29
Posted by 구차니