Search found 27 matches

by zidane86
03 Jan 2010 08:33
Forum: mikroC General
Topic: Zigbee transmission not working
Replies: 2
Views: 1899

This is done in point to point in 2 paired up device and the baud rate is correct as it is configured in this rate but none of the data is sending between the 2 device so i think it is something wrong with the program i did can anyone see for me if there is any error inside ?
by zidane86
02 Jan 2010 11:44
Forum: mikroC General
Topic: Zigbee transmission not working
Replies: 2
Views: 1899

Zigbee transmission not working

controller #include <built_in.h> //declare button and reading variable unsigned char button1 = 0; // button unsigned char button2 = 0; unsigned char button3 = 0; unsigned char button4 = 0; unsigned char button5 = 0; unsigned char button6 = 0; unsigned char button7 = 0; unsigned char button8 = 0; uns...
by zidane86
24 Nov 2009 14:53
Forum: mikroC General
Topic: Double Tasking Methods
Replies: 3
Views: 1650

why not consider some PIC that have 2 ccp so u can use both half bride mode and also another ccp pin for compare mode (pic18f452/4520 have 2 ccp) so u dont have to use 2 microcontroller belive me when using 2 pic and they have to communicate with each other the whole thing become so much messier so ...
by zidane86
24 Nov 2009 12:40
Forum: mikroC General
Topic: Double Tasking Methods
Replies: 3
Views: 1650

question how exactly are u going to measure the speed of a motor using a ccp module are u going to have some sort of external device to measure the turning speed of a motor like a rotary encoder ?
and motor u mean dc motor ?
by zidane86
23 Nov 2009 17:56
Forum: mikroC General
Topic: store and display
Replies: 7
Views: 2820

after thinking twice why need all those excess code and if statement to make it longer when it can be shorter donnno if it will work or not tho
didnt test or debug
by zidane86
23 Nov 2009 17:54
Forum: mikroC General
Topic: store and display
Replies: 7
Views: 2820

lm35 is analog thermometer so hook it to AN port and do a conversion and display it out to the lcd char txtT[6]; unsigned int tlongT = 0; void loop1() { WordToStr(tlongT, txtT); // Word to string conversion Lcd_Out(2, 1, txtT[1]); // Print 100 digit Lcd_Chr_Cp(txtT[2]); // Print 10 digit Lcd_Chr_Cp(...
by zidane86
22 Nov 2009 18:46
Forum: mikroC PRO for PIC General
Topic: Button press on pic18F452
Replies: 9
Views: 3948

from what i can see your circuit your button pin is normally high
when u press the button the pin become low so maybe that your problem ?
so instead of detecting 1>0 u should detect 0>1
by zidane86
22 Nov 2009 08:54
Forum: mikroC General
Topic: 2 CCP function compare mode on special event
Replies: 0
Views: 933

2 CCP function compare mode on special event

well what i wanted to do is using 2 CCP function of my PIC18F452 @4mhz to do a PWM for 12 servo motor (at any one time only maximum 4 will run other dead and all at different pwm pulse width) (servo min 1ms max 2ms neutral 1.5ms 50hz = 20ms per cycle) I read the Xor post but since it is in basic and...
by zidane86
22 Nov 2009 08:43
Forum: mikroC General
Topic: simulation of Keypad_Read()
Replies: 5
Views: 2597

u mean simulating the pressing the key by programming instead of connecting it and pressing it for real ? emm that i am curios also u can call a output pin high by using PORTB.F0 = 1 but input pin i dont think u can make it so if for the purpose of testing why no take the supply voltage thru a resis...
by zidane86
22 Nov 2009 08:31
Forum: mikroC General
Topic: generate sound with PIC16F877A
Replies: 5
Views: 2467

emm i have no problem compiling the coding do u have some other code or have u set the frequency of crystal and mode properly
what compiler u are using ?
by zidane86
22 Nov 2009 08:22
Forum: mikroC General
Topic: store and display
Replies: 7
Views: 2820

well that depend on what sort of temperature sensors u using Commenly a analog thermometer that give analog reading u can declare a unsigned int to store it if it is a digital thermometer u can use one wire function (read the help files on the compiler) to obtain the reading and declare a unsigned i...
by zidane86
22 Nov 2009 01:03
Forum: mikroC General
Topic: Anyone know a freelance developer who can help with a projec
Replies: 4
Views: 1892

is there anyone other than Sobritytest who can take a project help based on microC coding cause i asked him but he said he will be busy for the next 3month or so cant help me i kinda did most of the coding i just need someone to troubleshoot for me so anyone mind to pick up this help request for som...
by zidane86
19 Nov 2009 18:43
Forum: mikroC General
Topic: ADC loop counting
Replies: 1
Views: 1358

ADC loop counting

unsigned int tlong = 0; unsigned short int T1_count = 0; void main () while (1) { tlong = Adc_Read(0) * 5000 / 1023; // Read analog input AN0 if (tlong >= 700) { // if AN0 reading >= 700mV T1_count++; // increment T1_count if (T1_count >= 100) loop1 (); // call loop1 } else { T1_count = 0; // reset...
by zidane86
19 Nov 2009 18:16
Forum: mikroC General
Topic: how to i display decimal point on the resulting temperature?
Replies: 22
Views: 9406

i getting "implicit cast of integral value to pointer" in the line
Lcd_Out(1, 8, txtH[1]);
but still can compile any importance of it ?
by zidane86
06 Nov 2009 09:58
Forum: mikroC General
Topic: Manual PWM signal
Replies: 2
Views: 1735

Manual PWM signal

unsigned char button1 = 0; // button unsigned char button2 = 0; // button unsigned char button3 = 0; // button unsigned char oldstate = 0; void main() { TRISA = 1; TRISB = 1; TRISC = 1; TRISD = 0; ADCON1 = 0b00000011; INTCON = 0; do { if (Button(&PORTB, 7, 1, 0)) oldstate = 0; if (oldstate && Butto...

Go to advanced search