Search found 31 matches

by Rob1234
10 Feb 2011 09:32
Forum: mikroC General
Topic: Help NeededCapture Module:
Replies: 0
Views: 1054

Help NeededCapture Module:

Dear Readers, I am generating a 30 ms signal using Timer 0 and i toggle a particular pin on a port. I capture this Signal and i want to toggle another pin based upon the Capture IF SET. My Code MCU : PIC16F877A Crystal Frequency : 8 MHz // TO Capture a 30 ms signal and to Toggle a port pin. void int...
by Rob1234
19 Oct 2010 06:11
Forum: mikroC General
Topic: Timer 0 Querry
Replies: 4
Views: 1813

Re: Timer 0 Querry

Hmm i use Unsigned int & long as my declarations and checked them with both..
I'll post my code ASAP
by Rob1234
18 Oct 2010 05:38
Forum: mikroC PRO for PIC General
Topic: Code for Square waveform generation on PORT using TIMER 0
Replies: 1
Views: 932

Code for Square waveform generation on PORT using TIMER 0

Dear Readers, Jus a simple code .. :) void interrupt() { if(intcon.tmr0if=1) { TMR0=20; intcon.tmr0if=0; PORTD = PORTD ^0x03; } } void main() { intcon.gie =1; intcon.tmr0if=0; intcon.tmr0ie=1; option_reg = 0x05; // 1:64 Prescaler with internal Clock TMR0=20; TRISB = 0x00; TRISD=0x00; //Lcd_init(&por...
by Rob1234
18 Oct 2010 05:02
Forum: mikroC General
Topic: Timer 0 Querry
Replies: 4
Views: 1813

Re: Timer 0 Querry

Yup karan. Thank u but When observing the TMR0 Register of Timer 0 with a config Internal Oscillator..the value on the LCD..goes even below than the one entered in the TMR0 register.. Mayb i gotta to check ma compiler.hmmm


will do that and post a reply ..
thank u karan..
by Rob1234
17 Oct 2010 04:16
Forum: mikroC General
Topic: Timer 0 Querry
Replies: 4
Views: 1813

Timer 0 Querry

Dear readers I have a small doubt with timer.. The timer0 of a P16F877a is configured with internal clock source and a Prescaler 1:2 with a Fosc = 1 Mhz. The datasheet specifies that the Timer0 register reads from 255 - 0 and then rolls over. when a Value is being entered in the timer0 register.. fo...
by Rob1234
01 Oct 2010 09:11
Forum: mikroC PRO for PIC General
Topic: Proteus Not compiling..!!
Replies: 2
Views: 13560

Re: Proteus Not compiling..!!

Thank you Alain .. Will start to Search for A Solution..
by Rob1234
01 Oct 2010 05:59
Forum: mikroC PRO for PIC General
Topic: Proteus Not compiling..!!
Replies: 2
Views: 13560

Proteus Not compiling..!!

Dear readers, I am new to Proteus and i am facing a problem. I am following an example posted on the net.. but i always receive an error message for even a simple LED blinking Program. I use mikroC for writing my code and i Load my .hex file. The error message is as follows: DSIM model LCDALPHA.dll ...
by Rob1234
28 Jun 2010 13:42
Forum: mikroC PRO for PIC General
Topic: LM35 PIC16F887 LCD Problem with ADC
Replies: 6
Views: 6259

Re: LM35 PIC16F887 LCD Problem with ADC

Play with ur declarations like int or long or char.. because i too had a problem and my error was in the declaration part..
by Rob1234
25 Jun 2010 08:30
Forum: mikroC PRO for PIC General
Topic: LM35 PIC16F887 LCD Problem with ADC
Replies: 6
Views: 6259

Re: LM35 PIC16F887 LCD Problem with ADC

Try this code KOTI sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD_D5 at RB1_bit; sbit LCD_D6 at RB2_bit; sbit LCD_D7 at RB3_bit; sbit LCD_RS_Direction at TRISB4_bit; sbit LCD_EN_Direction at TRISB5_bit; sbit LCD_D4_Direction at TRISB0_bit; sbit LCD_D5_Direction at T...
by Rob1234
23 Jun 2010 06:02
Forum: mikroC PRO for PIC General
Topic: Problem with ADC+LCD
Replies: 4
Views: 1631

Re: Problem with ADC+LCD

HIHIHI :lol: Found the Bug in the code.. I tried without ADCON1 and CMCON and it was still working.. But i declared the Variable Value1,Value2 and Output.... as unsigned long.. and it works.. Finally relived a lil bit.. Now to the next phase of my programming part.. I LOVE The EMBEDDED WORLD... :lol...
by Rob1234
23 Jun 2010 05:23
Forum: mikroC PRO for PIC General
Topic: Problem with ADC+LCD
Replies: 4
Views: 1631

Re: Problem with ADC+LCD

Thank You Peter, Thank u Ranko Peter i have checked the code and its working. But i dont know what is difference between the way i have syntaxed the LCD_CHR(48+output); and they you have done it. I havent initialized ADCON1 and CMCON. which are registers in PIC16F877A .. But in the previous compiler...
by Rob1234
19 Jun 2010 10:48
Forum: mikroC PRO for PIC General
Topic: Problem with ADC+LCD
Replies: 4
Views: 1631

Problem with ADC+LCD

Hello Readers,, first of all i would like to apologize if this is jus another similar code that u have read b4. But i am not able to find what is going wrong with the code. Plz help me out MCU : PIC16F877A DVLP Board: EasyPIC4 Crystal Frequency: 4 MHz Compiler : mikroC PRO for PIC V 3.8 {LCD Initial...
by Rob1234
26 Oct 2009 11:31
Forum: mikroC General
Topic: Query about ADCON config ??
Replies: 1
Views: 4189

Query about ADCON config ??

I have a question about the ADCON1 configuration.. Sometimes we configure the ADCON1= 0x07; or 0x06; to config them as digital I/O. In certain codes of motor control or timer control, The configuration of ADCON1 is added and made to be digital I/O.. So does ADCON1 = 0x06; make all PORT's A , B,C ,D ...
by Rob1234
19 Oct 2009 11:08
Forum: mikroC General
Topic: coding delay help
Replies: 5
Views: 1919

hi zidane

hi zidane ..

are u going to cross check a with any input and check its 1000ms long .

or are u going to use somekind of Timer module for doing this operation.

Can u be breif about what u want to do ?
by Rob1234
19 Oct 2009 11:01
Forum: mikroC General
Topic: TEMPERATURE SENSOR READING USING PIC18F452, CODE IS NEEDED
Replies: 13
Views: 6025

The code for mikroC PRO sbit LCD_RS at RD4_bit; sbit LCD_EN at RD5_bit; sbit LCD_D4 at RD0_bit; sbit LCD_D5 at RD1_bit; sbit LCD_D6 at RD2_bit; sbit LCD_D7 at RD3_bit; sbit LCD_RS_Direction at TRISD4_bit; sbit LCD_EN_Direction at TRISD5_bit; sbit LCD_D4_Direction at TRISD0_bit; sbit LCD_D5_Direction...

Go to advanced search