Search found 5 matches
- 05 Feb 2016 11:03
- Forum: GLCD Font Creator Software
- Topic: USB HID + EXTERNAL INTERRUPT
- Replies: 1
- Views: 6815
USB HID + EXTERNAL INTERRUPT
Hello i'm using pic18f4550 and i also use an external interrupt to change LCD display bu the code doesn't work. plzz help me :( void interrupt() { if(PIR2.USBIF==1) { USB_Interrupt_Proc(); PIR2.USBIF=0; } if(INTCON.T0IF==1 ) { SW++; INTCON.T0IF==0; return; } } void INCurrent_Read() //FIELD CURRENT {...
- 27 Dec 2015 08:32
- Forum: mikroC PRO for PIC General
- Topic: interfacing 4*3 keypad
- Replies: 0
- Views: 3464
interfacing 4*3 keypad
hello frndzz.. i'm trying to interface my 4*3 keypad in pic16f877A. The given library support only one specific port but i want to connect my row at PORTC and column at PORTD. unsigned short kp, cnt, oldstate = 0;char txt[6];// Keypad module connections char keypadPort at PORTD;// End Keypad module ...
- 21 Sep 2015 20:00
- Forum: mikroC PRO for AVR General
- Topic: PWM in ATTiny48 :? :?
- Replies: 3
- Views: 2271
Re: PWM in ATTiny48 :? :?
Hyyy... char current_duty; void main() { PWM16bit_Init(_PWM16_PHASE_CORRECT_MODE_10BIT, _PWM16_PRESCALER_16bit_8, _PWM16_NON_INVERTED, 255,1); current_duty = 255; DDRB.B0 = 1; //pwm DDRD.B7=0; DDRD.B0=0; do { if(PIND.B0) // Detect if PORTD pin 0 is pressed { PWM16bit_Start(_TIMER1_CH_A ); current_du...
- 19 Sep 2015 11:40
- Forum: mikroC PRO for AVR General
- Topic: PWM in ATTiny48 :? :?
- Replies: 3
- Views: 2271
PWM in ATTiny48 :? :?
Hello frndzz im working on project I want to turn on PWM accoding to the ADC value but the code does not generate any PWM signal. PORTB.B5 = 0; if(adc_bsens > 307 ) //for battery power more then 45% { PORTB.B4 = 1; PWM16bit_Start(_TIMER1_CH_A); past=adc_bsens; current_duty=past; PWM16bit_Change_Duty...
- 15 Sep 2015 21:18
- Forum: GLCD Font Creator Software
- Topic: Attiny-20
- Replies: 1
- Views: 3619
Attiny-20
Hello friends I want to program my Attiny-20 but when I start a new project I'm unable to find Attiny-20 in IC list.
what should i do!!!!
what should i do!!!!