Search found 13 matches

by keaster
02 Oct 2013 19:31
Forum: mikroC PRO for PIC General
Topic: Basic Timer Question
Replies: 2
Views: 1259

Basic Timer Question

I there a way to have a Pic pin toggle every time a counter increments by 1? I want to be able to have a pic pin oscillate at half the speed of the instruction oscillator.
I don't see anything in the datasheet about this, and if its not build in is there a simple way to do it?

Thanks
by keaster
16 May 2013 21:46
Forum: mikroC PRO for PIC General
Topic: Reading analog sensor with ADC
Replies: 0
Views: 998

Reading analog sensor with ADC

Hi, I have a variable foot pedal that uses a hall sensor to convert its position to a electrical signal, its a cheap china pedal used for electric scooters and I can't even find a datasheet for it. I know from the stock controller outputs 5v to the v+ lead, when I connect the output wire to a volt m...
by keaster
01 May 2013 04:24
Forum: mikroC PRO for PIC General
Topic: BMP085 sensor with strange problem
Replies: 6
Views: 3099

Re: BMP085 sensor with strange problem

Thank you for posting for code it looks very close to what I have. But I still have the problem of if there half of the calculations lines commented out the display flashes but if I have all the calculations uncommented the LCD doesn't even init, this seems like a very odd problem..I hope people und...
by keaster
20 Apr 2013 04:09
Forum: mikroC PRO for PIC General
Topic: BMP085 sensor with strange problem
Replies: 6
Views: 3099

Re: BMP085 sensor with strange problem

Thanks for the reply I didn't write this code I found it awhile ago, yours seem very similar just not using functions What speed is your PIC running, would that make any difference? I can get the raw pressure its just the calculations that are giving me problems If I un-comment the math one at a tim...
by keaster
12 Apr 2013 04:02
Forum: mikroC PRO for PIC General
Topic: BMP085 sensor with strange problem
Replies: 6
Views: 3099

BMP085 sensor with strange problem

I Started looking for code to read temp and pressure from this sensor and shelved it for a while, I started playing around with it again only to be stuck with the same problem. The problem I have with this code is when I try to read the temp from the sensor with the pressure function commented out s...
by keaster
06 Nov 2012 22:23
Forum: mikroBasic PRO for PIC General
Topic: Interfacing BMP085 digital pressure sensor
Replies: 17
Views: 9817

Re: Interfacing BMP085 digital pressure sensor

I'm trying to get this to work with mikroc Pro, ( i know this is the basic forum but there is no other good thread on here about this) I have a code close to this working with pro with a PIC16F887 @ 4mhz I think I have temp working but its the pressure I'm having problems with, 1 section of the calc...
by keaster
21 Oct 2012 15:31
Forum: mikroC PRO for PIC General
Topic: Ethernet-basics
Replies: 9
Views: 4308

Re: Ethernet-basics

I have a question regarding the SPI Ethernet example for the PIC16 why is it that in the manual it says test with PIC16F887 @ 10mhz but the circuit shows 8mhz? Why does it seem that when searching this topic on google there is a couple different version of the circuit? mostly with the connection of ...
by keaster
15 Jun 2012 21:57
Forum: mikroC PRO for PIC General
Topic: High voltage meter
Replies: 8
Views: 2951

Re: High voltage meter

Hi, sorry to bring on old topic back but I have another volt meter question, I think my problem is more electronic the PIC or MikroC but I'm trying to measure the volt drop across a resistor with no luck, I want to be able the read 2 voltages at the time with 2 adc pins on a pic, this is for setting...
by keaster
18 Dec 2011 21:01
Forum: mikroC General
Topic: USART interrupt example
Replies: 23
Views: 73242

Re: USART interrupt example

I Im trying to receive data from one PIC to another through the hardware UART and have used a the code in the first example and Im having a small problem first off im using a PIC16F887 not the 877 but I checked both data sheets and the registers are the same The problem Im having is that it seem lik...
by keaster
08 Dec 2011 21:36
Forum: mikroC PRO for PIC General
Topic: 18F4550 Soft SPI and Port Expander
Replies: 13
Views: 4801

Re: 18F4550 Soft SPI and Port Expander

Forgot to post that it works fine on PORTB but when I switch to PORTC I get that error, is there something that need to be set different when using PORTC?
by keaster
07 Dec 2011 23:42
Forum: mikroC PRO for PIC General
Topic: 18F4550 Soft SPI and Port Expander
Replies: 13
Views: 4801

Re: 18F4550 Soft SPI and Port Expander

I've been trying to use this example for the port expander with Soft_SPI but why do I get this error with PORTC
17 400 ; expected, but 'TRISC4_bit' found port.c
by keaster
21 Jun 2011 16:36
Forum: mikroC PRO for PIC General
Topic: High voltage meter
Replies: 8
Views: 2951

Re: High voltage meter

I'm using this to measure the B+ voltage of a tube amp power supply, what is the best way to check the impedance?
Thanks
by keaster
20 Jun 2011 21:46
Forum: mikroC PRO for PIC General
Topic: High voltage meter
Replies: 8
Views: 2951

High voltage meter

I've been doing some searching on come up short handed, I'm trying to make a 0-500v voltmeter with no luck. I've put together a resister voltage divider to get a 0-5v range, that part is OK but when I feed it into the pic the voltage from the divider drops very low. Even with a bought voltmeter its ...

Go to advanced search