Search found 173 matches

by Mike Brearley
13 Aug 2010 11:31
Forum: mikroC PRO for AVR General
Topic: I2C PCF8574 I/O port expander
Replies: 3
Views: 3961

Re: I2C PCF8574 I/O port expander

Hi There
I looked at the datasheet for this device and you must set the outputs high before you can use them as inputs.

http://www.datasheetcatalog.com/datashe ... 8574.shtml

Mike
by Mike Brearley
19 Jul 2010 14:59
Forum: mikroC PRO for PIC General
Topic: UART interrupt problem (beginer)
Replies: 7
Views: 2596

Re: UART interrupt problem (beginer)

Enabling the global interrupt might be a good idea
by Mike Brearley
13 Jul 2010 14:00
Forum: mikroC PRO for PIC General
Topic: ADC Library
Replies: 13
Views: 3629

Re: ADC Library

Hi aestech
I have just compiled for 4550 and 4450 with version 3.2 and got the same results as you. I have also checked the datasheets for both devices and they both use BIT 1 as you have noticed. I think you should let the team know at the support desk.
Mike
by Mike Brearley
13 Jul 2010 13:04
Forum: mikroC PRO for PIC General
Topic: ADC Library
Replies: 13
Views: 3629

Re: ADC Library

The ADC does not work if you switch it off !!! Why dont you look at the datasheet and find out what

Code: Select all

ADCON1 = 0x0FH
actually does ?
You have configured all the ADC channels as Digital inputs. Why not look at the examples to find out how it should be done.
Mike
by Mike Brearley
05 Jul 2010 10:06
Forum: mikroC PRO for AVR General
Topic: keypad on PORTF - ATMEGA128
Replies: 5
Views: 4135

Re: keypad on PORTF - ATMEGA128

Please find the library in the attachment and overwrite the existing one in \mikroC for AVR PRO\Uses\lte64kW\ folder.
I think the library should go into
\mikroC for AVR PRO\Uses\gt64kW\ folder
because the device in greater than 64k not less than 64k
Mike
by Mike Brearley
14 Jun 2010 14:34
Forum: mikroC PRO for PIC Wish List
Topic: Calculator
Replies: 3
Views: 2444

Re: Calculator

Isnt that is what the Quick Convertor is for?
Mike
by Mike Brearley
11 Jun 2010 07:11
Forum: mikroC PRO for PIC General
Topic: timer 1 and adc in 12f675
Replies: 8
Views: 4577

Re: timer 1 and adc in 12f675

Hi Nick Thanks for coming up with more ideas, I have already tryed setting temp to a value instead of loading from the ADC but if I simulate in MPLAB it does not load this number but loads 0x0000. I am thinking of using a larged PIC with the debug option built in and seeing if this can show me where...
by Mike Brearley
10 Jun 2010 15:49
Forum: mikroC PRO for PIC General
Topic: timer 1 and adc in 12f675
Replies: 8
Views: 4577

Re: timer 1 and adc in 12f675

Hi Nick I have left justified the adc result so I get a range of 0 to 0xffc0 for a value of temp. It is loading the timer1 registers in the interrupt service routine that is giving me the problem. I tryed using MPLAB simulation but for some reason whatever value temp is the timer1 regs are loaded wi...
by Mike Brearley
10 Jun 2010 12:21
Forum: mikroC PRO for PIC General
Topic: timer 1 and adc in 12f675
Replies: 8
Views: 4577

Re: timer 1 and adc in 12f675

I have simulated this in Mikro C but since the only way to simulate the timer1 overflow interrupt is by pressing the interrupt icon everything seems OK BUT I also simulated in MPLAB and found when I animated the simulation, for some reason the timer registers were both loaded with 0x00. This seems t...
by Mike Brearley
10 Jun 2010 06:33
Forum: mikroC PRO for PIC General
Topic: timer 1 and adc in 12f675
Replies: 8
Views: 4577

Re: timer 1 and adc in 12f675

Hi There Thanks for you suggestion. The out put does toggle at approx 1Hz with OR without these line in the code. That is the problem I have the frequency does not change as the pot position changes. If I output the 2 most significent bits on GPIO 0 and GPIO 1 then these change as expected but I can...
by Mike Brearley
09 Jun 2010 20:28
Forum: mikroC PRO for PIC General
Topic: timer 1 and adc in 12f675
Replies: 8
Views: 4577

timer 1 and adc in 12f675

Hi Everyone I am trying to make a voltage controlled oscillator with a 12f675 PIC using a pot connected to GPIO.2 to set the frequency of Timer 1 and GPIO.4 as the output. I am using the following code but the problem is the frequency will not change as I try to change the values of TMR1H and TMR1L....
by Mike Brearley
03 Jun 2010 10:45
Forum: mikroC PRO for 8051 General
Topic: Helping in an External Interrupt!!
Replies: 3
Views: 2178

Re: Helping in an External Interrupt!!

It looks like you have forgotten to enable the global interrupt !!!
by Mike Brearley
28 May 2010 07:40
Forum: Development Boards
Topic: Easy8051B board and the AT89C51ED2
Replies: 3
Views: 2110

Re: Easy8051B board and the AT89C51ED2

You will probably find the devices you are trying to program cannot be programmed using the spi port. It might be a good idea to look at the datasheet to find out how these devices are ment to be programmed. I think most of the devices that can be programmed using the 8051 flash programmer are AT89S...
by Mike Brearley
26 May 2010 15:03
Forum: Development Boards
Topic: EP6 + 12F675
Replies: 2
Views: 1452

Re: EP6 + 12F675

Have you looked at the manual It shows link settings for differant PICs and tells you to move the crystal
http://www.mikroe.com/eng/downloads/get ... l_v100.pdf
Mike
by Mike Brearley
21 May 2010 10:54
Forum: mikroC PRO for PIC General
Topic: PIC16F877A + DS1307
Replies: 17
Views: 14075

Re: PIC16F877A + DS1307

Have you initialized the LCD.
I could not see

Code: Select all

Lcd_Init();
before

Code: Select all

Lcd_Cmd(_Lcd_CLEAR); // Clear display
Lcd_Cmd(_Lcd_CURSOR_OFF); // Turn cursor off
(
Mike

Go to advanced search