Search found 53 matches

by mcu_chip
04 Jun 2009 23:49
Forum: mikroC PRO for PIC General
Topic: i need help in using interupts for PIC16F877A
Replies: 5
Views: 3376

Code: Select all

void interrupt()
{
  porte.f0 = 1;
  if(portc.f0 == 1)
  {
    porte.f0 = 1;
    delay_ms(20);
    porte.f0 = 0;
  }
}

by mcu_chip
11 May 2009 10:12
Forum: mikroC General
Topic: strange error ?
Replies: 0
Views: 1048

strange error ?

Dear developers, programmmers I'm working with the microC Pro v1.65. I try to compile my project but one c file doesn't compile. I'm working with the PIC18F2550 I see the log file and the report says "0 356 main function is not defined main function is not defined" All the other files compiled succe...
by mcu_chip
21 Apr 2009 22:14
Forum: mikroC General
Topic: USART interrupt example
Replies: 23
Views: 72795

When do you send it?
by mcu_chip
21 Apr 2009 22:09
Forum: mikroC PRO for PIC General
Topic: Internal ADC of the PIC18F2550
Replies: 4
Views: 3477

Re: Internal ADC of the PIC18F2550

Its an float value.
I have the same problem with this internal ADC but I have problems with the config setting. In the program PicFlash are the configuration setting default. It burn seccessfully but when I start it on my EasyPIC board it's does nothting.
by mcu_chip
30 Mar 2009 22:33
Forum: mikroC General
Topic: AD9833
Replies: 3
Views: 1890

Hi reab,

I have tested the Master SPI and it works en can show on the scope the SCK and SDO great

Next step is link en communication from the PIC to the AD9833
In wich order send I the frequency word to my DDS chip?

Kind regards
Stephane
by mcu_chip
30 Mar 2009 14:36
Forum: mikroC General
Topic: AD9833
Replies: 3
Views: 1890

AD9833

Hi All, I have an few problem in which order send it the data via SPI MSB first or LSB first? 10KHz = 2100 636E 4006 8000 8000 C000 E000 2000 (hex) void main() { Spi_Init(); Usart_Init(9600); TRISA.F5 = 1; while(1) { // We zenden 10KHz SPI_Write(0x00); Delay_us(500); SPI_Write(0x20); Delay_us(500); ...
by mcu_chip
30 Mar 2009 12:39
Forum: mikroC General
Topic: Software SPI works
Replies: 1
Views: 1281

Software SPI works

Software SPI works

But I don't find an example for test hardware SPI in the mE examples

Have someone an hardware SPI example?ar
by mcu_chip
30 Mar 2009 11:58
Forum: mikroC General
Topic: SPI problem
Replies: 3
Views: 1816

Re: SPI problem

Hello

I will it tested with hardware SPI how can I do that in my code here and I want to measure SCK and SDO?
by mcu_chip
30 Mar 2009 11:06
Forum: mikroC General
Topic: SPI problem
Replies: 3
Views: 1816

SPI problem

Dear programmers, I don't measure with the scopĂŞ pulses on the SDO en SCK pins on my PIC16F877A attached into my EasyPIC4 development board. What do I mistake? Here is my code that I try it ================== I'm using the default kristal 8MHz #define SDI PORTB.F1 #define SDO PORTB.F2 #define SCK PO...
by mcu_chip
29 Mar 2009 23:18
Forum: mikroC PRO for PIC General
Topic: 2Checkout server doesn't work
Replies: 1
Views: 2757

2Checkout server doesn't work

Hi sales, I try to place my order en when I would like payed with creditcard it fails why? My father have try it 5 times and give it up. He know there is enough money on his creditcard. He asked it to his bankcard campany What can I do for place an order ??? Dear sales, Please send my your bank acco...
by mcu_chip
29 Mar 2009 22:53
Forum: mikroC PRO for PIC Wish List
Topic: More ADC functions with or without interrupts
Replies: 0
Views: 3301

More ADC functions with or without interrupts

/* $Id: adcbusy.c,v 1.1 2003/12/09 22:43:28 GrosbaJ Exp $ */ #include <p18cxxx.h> #include <adc.h> /**************************************************************** * Function Name: BusyADC * * Return Value: char: 1 - A/D busy, 0 - Done converting * * Parameters: void * * Description: This routine ...
by mcu_chip
27 Mar 2009 12:28
Forum: mikroC PRO for PIC General
Topic: AD9833
Replies: 2
Views: 3348

AD9833

Roger, How do you calculate this?? What is the formula // ***************************************************************************** // AD9833 Waveform generator word manual tuning values:- // // 2100 4002 4000 8000 8000 C000 E000 2000 = 0.2hz output // 2100 4015 4000 8000 8000 C000 E000 2000 = 2...
by mcu_chip
27 Mar 2009 11:53
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: At last - SUCCESS with AD9833 waveform generator
Replies: 21
Views: 24863

Project AD9833

Dear sir How do you obtain this calculation. Can you please give me the formula for this equation. I'm working with the chip AD9833 an DDS chip for an project Bodediagram Plot. I have done much research for control to the chip in SPI mode, but I don't know how to control I would like to ask you the ...
by mcu_chip
24 Mar 2009 22:20
Forum: mikroC General
Topic: Respons
Replies: 22
Views: 8960

Read two analog value: example please for how I can do this

Hey I need the interrupt for store the ADC result en send it to the USART as raw data to the PC for processing. Can someone help me en post an example that used an ADC with 2 channels. I have studied the examples but it's one channel en not interrupt handling why not? I have need an example for star...
by mcu_chip
24 Mar 2009 17:21
Forum: mikroC General
Topic: Respons
Replies: 22
Views: 8960

Hey

I read Vin and Vout then an Vout/Vin en send to the USART with 10 bits The buildin function ADC_Read() don't support interrupt handling that's the problem is there an solution you can written own functions for the ADC and try it with free functions from Microchip C18 compiler see above the include f...

Go to advanced search