Hello po, nabasa ko tong thread from the start, new mem po ako. pano po ba macontrol ng potentiometer yung delay ng 8LEDs ko? proton din po gamit ko. di ko lang po alam kung pano yun mangyayari. Nasa RA1 yung Potentiometer. RC0-RC7 yung 8LEDs. 4x3 keypad sa PortD.LCD sa PortB. Pano po ba yung program nun sa Proton, ok na po lahat except yung control ng potentiometer yung delay ng 8LEDs. Thanks.
mga master, im doing my seniors project ryt now and im confined with the dilemma of what micro-controller should i use... im not fun of programing that is why its my dilemma coz im more on the electronic side of ece.... can any one help me with this,btw im doing a integration of several sensing network(temperature, humidity and soil moisture) to control a solenoid valves and a motor pump for irrigation...ill appreciate any suggestion...
Remarks OnDevice 18F1220Config_StartOSC = XTFSCM = OnIESO = OnPWRT = OFFBOR = OFFWDT = OFFWDTPS = 32768MCLRE = OFFSTVR = OnLVP = OFFDebug = OFFCP0 = OFFCP1 = OFFCPB = OFFCPD = OFFWRT0 = OFFWRT1 = OFFWRTB = OFFWRTC = OFFWRTD = OFFEBTR0 = OFFEBTR1 = OFFEBTRB = OFFConfig_EndDeclare Xtal 4Declare Watchdog = OFFDeclare FSR_CONTEXT_SAVE = On Hserial_Baud = 9600 Hserial_RCSTA = %10010000Hserial_TXSTA = %00100100 Hserial_Clear = On Declare Adin_Res 10Declare Adin_Tad 2_FOSCDeclare Adin_Stime 500Symbol tailLight = PORTB.0Symbol leftLight = PORTA.2Symbol rightLight = PORTA.3ADCON1 = $FCADCON2 = $80TRISA = $F3TRISB = $FCDim aRead1 As Word, aRead2 As WordDelayMS 500While 1 = 1 aRead1 = ADIn 0 aRead2 = ADIn 1 If aRead1 > 600 Then leftLight = 1 rightLight = 0 ElseIf aRead1 < 400 Then leftLight = 0 rightLight = 1 Else leftLight = 0 rightLight = 0 EndIf If aRead2 > 350 And NFlag = 0 Then tailLight = 1 ElseIf aRead2 < 150 And DFlag = 0 Then tailLight = 0 Else tailLight = 0 EndIf DelayMS 500WendEnd
Pwede naman pero ang masaklap nyan dami mo gagamiting port (for your example 10 na agad) so probably kulang ang isang port. For 1 by 1 pwede namang convert yung binary to decimal para counter na lang. Sa akin pwede na yan simple lang circuit hiwalayin mo na lang yung word then group it by port para madali lang program.Delay is too short I believe it should at least be more than 500 msec.
mga sir paano po magset ng fusebits using proton?