CGa@MCT PIC X'mas Illumination@
cGa@MCT PIC X'mas illumination@
PD
@15NxJABEE@C}A wNfAuB TbJ[IDAw`DA3ENDA GR3AvRB
@M`[tdq(S)ANHK{REn DASxXg8B{bguv @\AvmZpAX_ voBZSC yAxxenf{bg[ Bw\Bng pB@~hmB
@buA{e1`bv}CRPIC\bhXe[gE[ (ASSR)pAS~Vbv_NX}X c[pC~l[VEv^1Dp^[H B\Z~Ap\RSA A1`bv}CRPICpdqHB
^1 NX}XEC~l[VEvpd
QD1`bv}CRPIC
@}CNERs[^dq@jAA~VA@A AgBKvsB dqHw3NuvZ@Hw1vGA u{ZpvoCASL2/COMET2zAZu/}CR (JLP)BAOVX eCPU(Z80)(S-RAM)oLSI8255{[h }CRgpACygAliB
@KgprRg[ A8`40s 1`bvE}CRsBAMicrochip TechnologyPICA AtmelAVRB1`bv}CR(20MHz)Ad(30A)A \(LoCg)Aos(RS232C,I2C\)AHA i(320~x)AJc[(\tgEFAFt[)Lxp\R PJB
@I}CRpiAlCBA{R `[PICpBAx`[pB RAPIC^tBAxy vO\AgWX^jPICB
@SNxwVuKsANHM sJuJB{ZwQ B
PICJQl1) 2)APB
- n[hEFAHvB^2A}1,2HpB
- Jc[MPLABAAZuCvOB
- p\RVA|[gA Ql3)ic-progpB
^2 PICn[hEFA()
}1 z}(vgCADuPCBEv)
}2 SH}( Ql4)Bsch)NbNB
^2EC^(E[RlN^PCVA|[g)Ap] {[h(XCb`x3,ZbgXCb`x1,oLEDx2,tLCDjbgpRlN^, I2CA^NbNp\Pbgt)B
@ACRpCL(25,000~x)At[ ()BMzAAZuA Ql2) cvOYAQIB BACvOCu(RS232C,I2CM^C} )AyvO~OA LAAZuA \BRA{RS AZuLqB
RDn[hEFA(H)
@100~VbvAoBNX}XOA _NX}XEc[pC~l[VEvB PIC}CRpADp^[_l BAC100VXCb`OA^3 \bhXe[gE[(SSR)B SSRQl3) AvLEDgCAbN(}2H}TCX^) [BM{LWNufWbgv 350~BDC28VAoAC100VA 5V\B^4n[hEFASiB
^3 \bhXe[gE[
^4 n[hEFASi
PICXCb`gOXCb`2(Wp)pA p^[xXBSSRHAC100VA SA~V[VgB^5,6OAwplB PICt(LCD)W[RlN^gB
^5 SSROpl
^6 SSRwpl
SD\tgEFA
@\tgEFAPCBSXgt^B CRpCQl6) CCSPCMBA delay_ms(int)CuPwB oAinput(s)Aport=olsBset_tris_b(0); |[gBow(0oA1)B main()iv[vp^[JA pXpLqA Bs^1B
TD
@NX}XEC~l[^HvpB A{RORgARXCb` pI(SSR Ql7)Hdq)B udqvt}CRg@ wB1`bv}CRPICgA [wsb^Bge[}g B
Ql(NW)
- cASFuvWFNgFPIC&AVR1`bv}CRpZpv (2002/6/20)
- F dqH
- IC-Prog Prototype Programmer
- WFVXeASSR
- cFICAH}GfB^Bsch
- CCSF PICpCRpC
- SSRF Hdq (SSRB1250~)
t^FPICSSRNX}XEC~l[^CvO
///////////////////////////////////// // SSR 4bit illuminatar // This is an example of SSR control. LED controlled by parallel output. // The interval is about 0.3sec x coeff. RB4-RB7 to SSR , RA3,RA2:coeff ///////////////////////////////////// #include #fuses HS,NOWDT,NOPROTECT,PUT #use delay(clock=20000000) #byte port_b=6 void wait(int msec) { int i=0,j; if(input(PIN_A2)) bit_set(i,0); if(input(PIN_A3)) bit_set(i,1); for(j=0;jz!!
0 コメント:
コメントを投稿