Search found 20 matches

by aviraje8@gmail.com
26 Nov 2015 06:42
Forum: mikroC PRO for PIC General
Topic: Reg:function inside function problem
Replies: 1
Views: 878

Reg:function inside function problem

Hi,
I am unable to use function inside function.
Can anyone help me.
here is my code,

unsigned char i=0;
void gsm_init()
{
UART1_Write_Text("AT");
Delay_ms(100);
i++;
if(i>10)
{
goto ab;
}
ab:
gsm_init();
}
void main ()
{
UART1_Init(9600);
Delay_ms(100);

while (1)
{
gsm_init();
}
}
by aviraje8@gmail.com
25 Nov 2015 12:35
Forum: mikroC PRO for PIC General
Topic: Reg:watchdog timer not working
Replies: 6
Views: 1961

Re: Reg:watchdog timer not working

Hi
Can we use goto statement in mikroC?
Can we use function inside function in mikroC?

waiting for your reply
by aviraje8@gmail.com
25 Nov 2015 05:31
Forum: mikroC PRO for PIC General
Topic: Reg:watchdog timer not working
Replies: 6
Views: 1961

Re: Reg:watchdog timer not working

Hi,
I will check it ASAP.

thanks
avinash
by aviraje8@gmail.com
23 Nov 2015 13:38
Forum: mikroC PRO for PIC General
Topic: Reg:watchdog timer not working
Replies: 6
Views: 1961

Re: Reg:watchdog timer not working

Hello, Here is my code,But it continues remains on,it never turns off if watchdog time times out. I Have written code for p16f913. I have disable WDT bit in configuration word. void main() { TRISB = 0; OPTION_REG = 0x0e; SWDTEN_bit = 1; PORTB = 0x00; Delay_ms(1000); while(1) { PORTB = 0x0F; Delay_ms...
by aviraje8@gmail.com
21 Nov 2015 06:12
Forum: mikroC PRO for PIC General
Topic: Reg:watchdog timer not working
Replies: 6
Views: 1961

Reg:watchdog timer not working

Hi, Currently I'm faced a problem with watchdog timer.I have made project for pic16f916 using microC also using proteus,but it is not working,plz help me,here is my code void main() { TRISB = 0; OPTION_REG = 0x0f; SWDTEN_bit = 1; while(1) { PORTB = 0x0F; Delay_ms(100); PORTB = 0x00; asm CLRWDT; Dela...
by aviraje8@gmail.com
06 Dec 2014 12:11
Forum: mikroC General
Topic: too many initializers error when writing own library
Replies: 1
Views: 2360

too many initializers error when writing own library

Hi, I am writing own library for lcd but occured some errors like "too many initializers" Here I'm posting project files My project.c #include<C:\Users\avin\Desktop\8051 164 lcd\lcd.h> void main() { lcd_init(); lcd_commands(0x80); string("ADC_VALUE"); } lcd.h #define lcd_display P0 sbit rs = P2^0; s...
by aviraje8@gmail.com
29 Nov 2014 07:05
Forum: mikroC PRO for 8051 General
Topic: ds1307 with 8051 can't write data to ds1307
Replies: 1
Views: 3304

ds1307 with 8051 can't write data to ds1307

unsigned int RTCModuleAddress, YearOffset; // RTC chip description variables // Software I2C connections sbit Soft_I2C_Scl at P2_3_bit; sbit Soft_I2C_Sda at P2_4_bit; // End Software I2C connections // LCD module connections sbit LCD_RS at P2_0_bit; sbit LCD_EN at P2_1_bit; sbit LCD_D4 at P0_4_bit; ...
by aviraje8@gmail.com
28 Nov 2014 10:27
Forum: mikroC General
Topic: DS1307 MikroC Library
Replies: 43
Views: 75974

Re: DS1307 MikroC Library

Hi am using mikroC compiler for 8051.In this compiler rtc interfacing with 8051 library is given.it works but it do not displays todays date & time value plz help me this is the code char seconds, minutes, hours, date, month; // Global date/time variables unsigned int year; unsigned int RTCModuleAdd...
by aviraje8@gmail.com
17 Nov 2014 06:39
Forum: mikroBasic PRO for PIC General
Topic: Very hard problem with Serial LCD/GLCD Adapter Board
Replies: 9
Views: 4378

Re: Very hard problem with Serial LCD/GLCD Adapter Board

hi this code is not working in proteus plz help me char *text = "mikroElektronika"; // Port Expander module connections sbit SPExpanderRST at P1_0_bit; sbit SPExpanderCS at P1_1_bit; // End Port Expander module connections char i; // Loop variable void Move_Delay() { // Function used for text moving...
by aviraje8@gmail.com
17 Nov 2014 06:26
Forum: User Projects
Topic: 8051 SPI [Urgent]
Replies: 6
Views: 5039

Re: 8051 SPI [Urgent]

hi milan can you share your proteus file & C code also
by aviraje8@gmail.com
01 Nov 2014 07:34
Forum: User Projects
Topic: Help me with AVR UART receive (Interrupt based)
Replies: 4
Views: 6169

Re: Help me with AVR UART receive (Interrupt based)

hi this is my code for avr uart interrupt for atmega16. bt not working plz help me sbit LCD_RS at PORTC0_bit; sbit LCD_EN at PORTC1_bit; sbit LCD_D4 at PORTC2_bit; sbit LCD_D5 at PORTC3_bit; sbit LCD_D6 at PORTC4_bit; sbit LCD_D7 at PORTC5_bit; sbit LCD_RS_Direction at DDC0_bit; sbit LCD_EN_Directio...
by aviraje8@gmail.com
25 Jul 2014 07:05
Forum: mikroC General
Topic: USART interrupt example
Replies: 23
Views: 73089

Re: USART interrupt example

hi these is my code.I am trying to send sms ON then LED blinks ON & when send sms OFF then LED blinks OFF but this happens only one time & i want it forever plz plz help me #include<C:\Documents and Settings\A TO Z\Desktop\NIRMITI FINAL\gsm.h> #include<C:\Documents and Settings\A TO Z\Desktop\NIRMIT...
by aviraje8@gmail.com
11 Jul 2014 06:49
Forum: mikroC PRO for AVR General
Topic: how to add our source and header file
Replies: 6
Views: 8422

Re: demo limit error

this is my project & it shows demo limit error plz help me
by aviraje8@gmail.com
28 Jun 2014 07:30
Forum: mikroC PRO for PIC General
Topic: push button/switch testing
Replies: 24
Views: 19012

Re: push button/switch testing

I want to use RA0 & RA1 pin as button & count display on glcd.... I have connected port B for data & RC0,RC1,RC2,RC5,RA4,RA3 for control signal output is not displaying. whats the problem..... plzzz help me......... // Glcd module connections char GLCD_DataPort at PORTB; sbit GLCD_CS1 at RC0_bit; sb...
by aviraje8@gmail.com
27 Jun 2014 06:41
Forum: mikroC PRO for PIC General
Topic: push button/switch testing
Replies: 24
Views: 19012

Re: push button/switch testing

I run button code using pic16 library for PORTB0 pin but unable to run for PORTA0 pin.why is this so??????????

Go to advanced search