Ķĥ襷֥ ޥӥ󥿤

TESTACH Υե졼ȤɥХ˾äƤޤƥʥ󥹤ȤȤ
PICޥȤäŻҹͥư饸إꡢWindowsץꥱȯȤ鲿Ǥ褻븫ʤblog֥ȥ 襷򤿤

2010ǯ01

¢ˤäƤޤ

ФѤСޤȤʤǤ

̤̾-6


PICΥƥȥܡɤȤƤǤ¢äƤޤ
¿ʬҥޤʤΤǤĤä򹹿ޤͽ

ơPICϡ

ޤꤿΤϤǤɤ⡣

֥åɥܡɾǥƥȤΤѤ
LCD˥åȤȤ֥åɥܡɤɤ
å¢ƤʤPICǤϥåȤĤǤʤ

Ȥ櫓ɾܡɤΤ褦ʤΤ뤳Ȥˤޤ

ƼPIC򤺤餷ƺȻȤȤΤۤǤԥ֤㤤ΤȴѤޤʤʤLED饤Ȥ;äΤȤˤᡢ28ԥPIC(PIC16F873A, 876A, 16F886)򥿡åȤ˹ʤäƺޤ

universalpic

ƥԥνϳǧѤLEDȡѤ˥㥿󥰽դΥ饤ɥåդ512KbitI2C EEPROMܡץ륢å񹳤ϥѤڤΥǽ
վ˥åȤɬפʤ鱦üϤ߽ФǼդǽȥ饹ĴVRդäƤΤŸԥ2ѥ󤢤Τǡ⥸ѺؤбǽR/WȤʤˡΥԥLCD⤫ǽ
ICSPüҤϥ饤ɥåڤΥǽ

ʬפĤ¤ΤΤƤߤޤ

㥿󥰽ΤȤɽ̼74HC14̵̤ΤäȤ᤮…

Ȥꤢå󥰤Ƥߤޤ

IMG_2946

ޤפäݤɡ…
Ϥ̵7̤Ȥˤʤ롣

IMG_2947



IMG_2947_2

ɤߤƤ⥷硼ȤƤޤˤ꤬Ȥޤ
ȤǸƤߤ顢ο̤äƤäǤξƤ0.008inch, 0.01inch
߷ץߥ…

ʤΤǥץ饫åǤ롣

󡼡

󤸤ʤΤ졣

IMG_2948



IMG_2948_2

פäݤ
ƥ¬äƤ⥷硼ȤƤޤ󡣤褷

äƤǤ͡

IMG_2949

äLED饤ȤĥѥΥå˺Ŭ롣
ĤƩΤǥѥΥ硼ȤȤڤ줬ä®Ĥꤽʤ餤衼ޤɤ

Ȥ櫓Ƿ곫ƥեåɤäƴĤϴ

IMG_2953

ʤʤΤ³Ϥޤ٤ʡ

1WLEDǷӾ

ˤäȻȤä1WLED
ȡǶ㾾̾ǰꤷƤ।Хåƥ꡼
Ȥ߹碌ƽż饤ȤȤäȤ뤫ʡȤפäƤߤ

।Ӥʤߤ˥ФǤ뵡ϼǤϤऺΤǴ¢ˤΤɤȻפޤ
ǤϥͥˤȤи򴹤ǽǤ
ȤʤȡּΤ˽ŵǽĤƤʤȤޤ

㤢åڤؤơONˤLEDOFFˤ齼ŲϩˤĤʤäơξ֤Ÿ򶡵뤷齼ŤФ

ȤLEDɤ餻뤫
ñƸ餻Ƥ⤤ǤŰѲˤä뤵ѤäƤޤޤ
ʤήưǤ…ࡣ
ȤPICĴȤͤޤϩʣˤʤꤹʤΤǰޤ

Ȥ櫓

LTC4054Ȥä¢।Ӥ
ŸONˤȽ1WLED×2Ĥήưǥۤߤ뤯
LEDभФȤޤ֤«椷ΤƩĤǥǥե塼äƼդ
LEDΤ󥺤˰ϲä㤤ʤˤʤäƤΤݸΰ̣

Ȥǡ

ޤLEDȯǮäƤߥľ夷ޤ
ɤäƤˡǤ…

P1010451

˷ꤢơ

P1010452

LEDĤäࡣ
1WLEDˤǮΤ˥ꥳ󥰥ꥹɤäƤޤ
θ塢ݥޤǥɤǤޤ
LEDϽɽѤLEDǤ

˸Ȼ뤿Υǥե塼
򿧤ΥĤ򥱡ƱǤΤ5Ѱդ…

IMG_2913

곫ƹޤ1­ޤ󤬸夫ޤ

IMG_2914

ŤͤƤΤäƤСβLEDޤäƤ֤ˤʤȤ櫓

IMG_2916

ϩ֥åɥܡɤǤȥƥȡ

ޤǽ˹ͤΤϥȥ󥸥2ĻȤäήϩǤ…
ή񹳤Ű߲0.6V⤢Τǡ।ӤǤϥޥȥLED餻Ǥޤ(LEDVf3.04.0V, typ.3.3VפŸŰ3.9VڤȤ⤦ʤ׻)
ή񹳤򾮤ФǤʤȥڥפȤäήϩˤɬפޤ
LMV358ǻƤߤޤ।ŸŰǤϥڥפνʬʽŰ줺뤵Ⱦü…
ƤRail-to-RailʤäΡ
줸㤢ʤŸ5V˾…ȻפäǤ350mAήLED2ĤʤΤ700mAή뤳ȤɬפǤHT7750A4ɬפäƤȤˡʤˤ줳襤

Ȥ櫓ǹͤľޤפϥڥפŸ5VˤʤФǡڥפŸHT7750ǾΤȤˤޤ
ȤŸŰ3V餤ڤäLEDȤߤɬס
ήϩΤŰɬ…

Ȥ櫓

ŸOFFϥХåƥ꡼ŲϩˤĤʤ롣
ŸONˤȥᥤϩ˵š
ӤŰHT7750AȤä5Vꥪڥפ˵Ť롣
ڥפNͥMOSFETǹήϩLEDưLEDľӤš
ήϩδŰϡŰȡ5Vʬƺä3VӤŽŰˤӤ̤TL431̤ƺ
褦ŰʲˤʤήϩߤޤꡢLEDä롣

Ȥϩˤ褦ʡ

Ȥ櫓EAGLEȳƮ…
ϩޤǤ

1wattled2

Ȥ˸꤬ޤޤΤʲϩǤʤ
ڥפ3ϩɬפˤʤäΤLMV324Ȥˤޤ
ή񹳤0.1ΩǤ0.1Ωɽ̼ʤäΤǵ㤯㤯꡼ɤλ2W񹳤ˡǤ
뾦ˤ1Ωʲ⤢äɡ⤦¾äƤ麣Ѥʤä衼…
50KΩ㤤˺줿Τǵ㤯㤯ܥ100KΩ2ˡޤѤ…

¾ϲǽʸ¤ɽ̼ʤȤ褦ˤޤŲ򥳥ǥ󥵤Ⱦ񹳤ϽƻȤäƤߤ

Ȥϴĥѥ򤷤…

1wattled2-ptn

Top쥤䡼Ƥޤξ̴Ĥˤ󤸤ʤ̵̤äݤäΤɽ˥ФȤˤʬǤ…
ξ̤ˤ󥸤Ƥߤ…äѤä̵ʡ…

ȤϤĤ̤Ǥ

IMG_2921

ե

IMG_2923



IMG_2925

å󥰡

IMG_2927

ꤢ;פʽڤäƴ
¤Ϥλ150ʬʤ
ҤźȤɤƤⴰäΤǤ
ŤʤΤǰ濿ðš

³ʤμդ
ǡƤߤLMV324Ф
­ԥå0.65mmǤ
0.65ϺޤǤFT232RLդΤ٤ʡ
Ť˼դޤ…꤬ץץ뤹롣ѥबߤʤ

ǰΤ롼ڤǥϥ֥åʤǧ…

IMG_2932


IMG_2930

IMG_2929

פʤ褦Ǥ

Ȥ¾ʤ⥬դ

IMG_2934

̤Ĥä
ʤ󤫤Ǥ͡Ų򥳥ǥ󥵤ΩäƤȰ쵤ʷϵѲϩäƴˡʤ
Ƥߤޤ礦

IMG_2933



ͥʪŪ˺ͤ

ۤǤͼʬ
ʤΤӰʳľȾդǤ…㤱롣
ʤߤӤ2ˤޤ2200mAh
3ĤʪŪʤä…

IMG_2936

ͥ󥰥ͥǤ
겡Ǵʤ

IMG_2941

OFF֡Ÿ

IMG_2942

ӥá
ľ뤹ܤ٥롣Ǥ̿Ȥ褯狼Ǥ͡ʤ

Ȥ櫓Ǵޤꡣ


।ӤΡܶˤˤɤƤϥ餺ϫƤΤǤWikipediaܶˤΥ֤ˤϥߡݶˤˤϥ˥åȤΤ餷Ǥ
㥢ߤդʤ…
Ȥ櫓ǡߥϥդľޤ…ȤȤˤäΤǤ380餤β٤դΤΤ褦ǡ⥯⤤ǰ
üҤȤäƻߤޤʤʤϤ褤Ǥ

100ߥɥåȥޥȥꥯLEDŸǼġ6 ʤȤꤢѤ

ȤꤢפĤΤϰ̤դΤǡäȤȤǡ

˥ưˤ𤷤ޤ



ϲʡ

PICθ̿Ǥޤ˺𤹤Τ

ޤȤƤʡȡ

𤹤뤫äƥ꡼ե饰Ǥ
Z80ǤJZȤJGȤJLȤ̿᤬Ф䤹ä餤ǤPICBTFSC STATUS, CȤ꡼ե饰ɤʤ뤫İƤʤȽ񤱤ʤ褦̿ᤷʤΤ…

ʤΤİȤäƻǤ͡ʬޤ

Υߥϡ̿᤬ȤW쥸2û̿äƤȤǤ͡
¾CPUƱǤʤȤPICϥˤΤޤޤȤ᡼
Ȥ櫓ǤޤȤ񤤤Ƥߤޤ…񤯤ΤڤʤΤSUBLWǡ

SUBLW k
W2kûW˳Ǽ
W=(-W)+k=k-W (W-k ʤ)

ƶե饰
C:夢դ줬ȯΩ
DC:4ӥåȤ夢դ줬ȯΩġ←Ȥäʤ
Z:׻̤0Ω


W=1, k=3 ξ (3-1)
W2=255
k+255=258 (0x102)
夢դ줬ȯƷ̤2ˤʤΤ
W=2, C=1, Z=0

W=3, f=1 ξ (1-3)
W2=253
f+253=254 (0xfe, -2)
夢դȯƤʤΤ
W=254(-2), C=0, Z=0

W=2, f=2 ξ (2-2)
W2=254
f+254=256 (0x100, 0)
夢դ줬ȯΤ
W=0, C=1, Z=1

Ȥ櫓…
ȹͤȰ츫ܥȯƤʤCե饰Ωġ
ȤΤ狼ˤ衼

SUBWF ƥ뤬F֤Ʊ

褯ȤΤϡäѤF쥸ƤûƤäơ줬ͤĶɤȽǤ礦

  CLRF COUNTER
LOOP1
  MOVLW 30
  SUBWF COUNTER, W
  BTFSC STATUS, C
  GOTO EXIT
  INCF COUNTER, F
  GOTO LOOP1
EXIT

ȤФʤĤǤ͡
4ܤSUBWFǤϥͤ30櫓Ǥ
ͤܥȯΤCե饰ΩޤʤŪ˵ա
ͤ30ˤʤZե饰Cե饰Ωޤ
Τǡ٥EXITإפޤ

η̤ޥʥˤʤȤϥ꡼ե饰ꥢˤʤ

äƤȤǤΤʡ󡣤줬ֳФפ

blogˤĤ
blogϡΥۡڡƥġĤǤ⤦ǯ⤳äᥤǤ
ۡڡϤ顣
http://www31.ocn.ne.jp/~yoshio2/
2ϷǼĤ˽񤭹ȤΥȥåפ GBrDo4K0i. ѤƤޤ
GoogleAds
ǿ
Ĥä
ʤ
ʤƸä餤褯ʬʤͧãʤblogʤ
ž֥ƤȤޥ˥ɥ󥯤Ȥȥ٥顼ΡȤȤ
hazimelog
ΥˤꡢϤblogSCOTT FOIL Team IssueȤääƤȤɤޤΤʤ
Դѹ˼
ž̶֤ФƤ륢˥繥ʥꥹȡSڤHP
livedoor ץե

  • 饤֥ɥ֥