J
janosandi
Guest
Sveiki draugi man ir nepieciešams mazs PIC16F84 15min taimeris programmas aizdegties ar jebkuru ieejas ostā vadīt lika par jebkuru produkciju Any help tiks appricciated
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
programmu Timer_15min "Microcontroller: Microchip PIC 16F84A" Kompilators: mikroBASIC PRO PIC v3.20 "System Pulkstenis: 4MHz" Pulkstenis Avots: Crystal "Kad tiek nospiesta poga, gaismas diode deg, tad gaida 15 minūtes, tad LED ir izslēgts simbols TriggerPin = PORTA.B0 simbols LEDPin = PORTB.B0 const Piecpadsmit = 900.000 '900, 000 miliseconds = 15 minūtes galvenais: TRISA = $ FF "Visas ievadi TRISB = 0" Visa produkcija PORTB = 0, ja (TriggerPin = 0), tad 'Ja poga nospiesta LEDPin = 1 delay_ms (piecpadsmit) '15 minūtes LEDPin = 0 beigām, ja vienlaikus patiesi iet beigām.
programmu Timer_15min "Microcontroller: Microchip PIC 16F84A" System Pulkstenis: 4MHz "Pulkstenis Avots: Crystal" Kad tiek nospiesta poga, gaismas diode deg, tad gaida 14 minūtes, otro LED deg, tad boths LED ir izslēgts simbols TriggerPin = PORTA.B0 simbols LEDPin = PORTB.B0 simbols LED2Pin = PORTB.B1 const FourteenMin = 840.000 '840, 000 miliseconds = 14 minūtes const OneMin = 60.000 '60, 000 miliseconds = 1 minūte galvenais: TRISA = $ FF "Visi input TRISB = 0 'Visa produkcija PORTB = 0 ja (TriggerPin = 0), tad' Ja poga nospiesta LEDPin = 1 delay_ms (FourteenMin) '14 minūtes LED2Pin = 1 delay_ms (OneMin) '1 minūte PORTB = 0 'Ieslēgt LED off beigām, ja bet taisnība iet beigām.