Search found 8 matches

by jrigley
31 Aug 2015 15:29
Forum: mikroBasic PRO for PIC General
Topic: PIC16F630 Comparator - LCD
Replies: 0
Views: 3901

PIC16F630 Comparator - LCD

Hi, I have searched the forums but can't find any answers. I want to input a voltage 1 - 5v on one of the pins and output the result on an LCD Display. I can connect an LCD no problem but not sure how to do the rest. From what I have read there has to be some reference voltage which it compares, thi...
by jrigley
28 Jul 2015 06:44
Forum: mikroBasic General
Topic: Interrupts on PIC16F628A
Replies: 2
Views: 2739

Re: Interrupts on PIC16F628A

Thank you that example works perfectly. Thank you for taking the time to explain too.

Jonathan
by jrigley
27 Jul 2015 12:26
Forum: mikroBasic General
Topic: Interrupts on PIC16F628A
Replies: 2
Views: 2739

Interrupts on PIC16F628A

Hi, I have started to learn about interrupts reading what I can. I have a PIC16F628A with an LED on Port A1. I want to be able to apply ground or positive not sure which to Pin 6 (RB0/INT). Below is the code Im using however the LED remains off no matter if I set the Int to high or low. Can anyone s...
by jrigley
26 Jul 2015 14:45
Forum: mikroBasic PRO for PIC General
Topic: Code for HC SR04 ultrasonic ?
Replies: 20
Views: 26398

Re: Code for HC SR04 ultrasonic ?

Could someone explain the values 1.716 * 0.927856 and how they came to them?

Thank you
by jrigley
07 Apr 2005 16:18
Forum: mikroBasic General
Topic: PIC16F628 - Button
Replies: 4
Views: 3300

Many thanks to you both, I careated a new project and set CMCON=7. It now works fine.

Jonathan
by jrigley
06 Apr 2005 17:11
Forum: mikroBasic General
Topic: PIC16F628 - Button
Replies: 4
Views: 3300

PIC16F628 - Button

Hi, I am trying to get a button to switch on an LED using the following code: Program LED_Button main: TRISB 0 PORTB = 0 MyLoop: If TestBit(PORTA,0) = 1 Then SetBit(PORTB,0 Else ClearBit(PORTB,0) End IF Goto MyLoop End. and: main: TRISB = 0 PORTB = 0 MyLoop: If PORTA.0 = 1 Then PORTB.0 = 1 Else PORT...
by jrigley
14 Mar 2005 16:56
Forum: mikroBasic General
Topic: LCD - PIC16F628
Replies: 3
Views: 4490

Thank you, it now works perfect !!
by jrigley
11 Mar 2005 16:03
Forum: mikroBasic General
Topic: LCD - PIC16F628
Replies: 3
Views: 4490

LCD - PIC16F628

Please help this has been diving me mad now for ages. I have a 2X16 HD44780 Comatable LCD and a PIC16F628. I have connected it up as follows: LCD - PIC DB7 PIN 13 (RB7) DB6 PIN 12 (RB6) DB5 PIN 11 (RB5) DB4 PIN 10 (RB4) E PIN 09 (RB3) R/W GROUND RS PIN 08 (RB2) Vee 10K POT Vdd +5v Vss 0v I have a 4M...

Go to advanced search