Geof i did it again , dont know why i didnt see that.
Thanks for your time
Regards
Search found 121 matches
- 14 Jun 2018 23:18
- Forum: mikroC PRO for PIC General
- Topic: Lcd_Char not working inside FOR loop
- Replies: 3
- Views: 1343
- 14 Jun 2018 22:44
- Forum: mikroC PRO for PIC General
- Topic: Lcd_Char not working inside FOR loop
- Replies: 3
- Views: 1343
Lcd_Char not working inside FOR loop
Hello I have a problem with this code: void main(){ Lcd_Init(); // Initialize Lcd Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off for (i=0;i>9;i++){ Lcd_Chr(1,1,i+47); delay_ms(500); } } After i run it it doesnt show any ASCII code on the LCD screen, but if i try this i...
- 21 Jan 2017 17:53
- Forum: mikroC PRO for PIC General
- Topic: Using a funtion in additional C file
- Replies: 3
- Views: 2815
Re: Using a funtion in additional C file
Thanks.
After i created the second file.c i tried to save as secondfile.h but i dont find it anywhere on the folder. Is the correct way to create the header file to just "Save as" .h? I did that but no header file was created. I dont know what im missing.
Thanks
After i created the second file.c i tried to save as secondfile.h but i dont find it anywhere on the folder. Is the correct way to create the header file to just "Save as" .h? I did that but no header file was created. I dont know what im missing.
Thanks
- 20 Jan 2017 19:56
- Forum: mikroC PRO for PIC General
- Topic: Using a funtion in additional C file
- Replies: 3
- Views: 2815
Using a funtion in additional C file
Hello, I created a new C file in my project and want to use a void function declared on it . Its seems strange that the compiles recognizes the funtion FunctionExample() when im writting it but when i compile it it show error saying Undeclared identifier "FuntionExample". Do i have to save file as h...
- 09 Jun 2012 17:38
- Forum: mikroPascal PRO for PIC General
- Topic: Watchdog
- Replies: 1
- Views: 1451
Watchdog
Hi, just a simple question:
Does MPPro support a watchdog clear function? like watchdog_clear();
I searched about it in the help file but i didnt find anything. i know how to do it in assembler using the PIC datacheet but it would be nice a PAscal function.
thanks
Does MPPro support a watchdog clear function? like watchdog_clear();
I searched about it in the help file but i didnt find anything. i know how to do it in assembler using the PIC datacheet but it would be nice a PAscal function.
thanks
- 04 Jun 2012 19:33
- Forum: mikroPascal PRO for PIC General
- Topic: Boolean type is not supported in MikroPascal PRO?
- Replies: 4
- Views: 2621
Re: Boolean type is not supported in MikroPascal PRO?
Thanks for the clarification jannie , but just to be a little more clear about it: if (var1 AND var2) =1 then... var1 and var 2 are bytes and both of them are only being assigned 1 or 0 as value, their are just flag variables. So when both are 1's i thought that a logical AND would give me a logical...
- 04 Jun 2012 17:32
- Forum: mikroPascal PRO for PIC General
- Topic: Boolean type is not supported in MikroPascal PRO?
- Replies: 4
- Views: 2621
Boolean type is not supported in MikroPascal PRO?
Hi, I just read a piece of help file that says the following: Boolean Operators Although mikroPascal PRO for PIC does not support boolean type, you have Boolean operators at your disposal for building complex conditional expressions. Also in the help file i dont see the boolena type in the list: Sim...
- 21 Oct 2011 19:22
- Forum: mikroPascal PRO for PIC General
- Topic: How can i detect when a file is first created at MMC card
- Replies: 8
- Views: 2754
Re: How can i detect when a file is first created at MMC car
:D Thanks Dany it seems a pretty creative way to handle this i will implement it to see what happens. :o Toley i wasnt aware of that (appereantly neither Filip ) thats exactly what i was looking for. I will download the 5.2v and do some programing BEst Regards and thank guys for taking time to answe...
- 21 Oct 2011 15:53
- Forum: mikroPascal PRO for PIC General
- Topic: How can i detect when a file is first created at MMC card
- Replies: 8
- Views: 2754
Re: How can i detect when a file is first created at MMC car
Mmc_Fat_Get_File_Date Prototype procedure Mmc_Fat_Get_File_Date(var year: word; var month: byte; var day: byte; var hours: byte; var mins: byte); Returns Nothing. Description Reads time/date attributes of the currently assigned file. Parameters: year: buffer to store year attribute to. Upon functio...
- 20 Oct 2011 17:21
- Forum: mikroPascal PRO for PIC General
- Topic: How can i detect when a file is first created at MMC card
- Replies: 8
- Views: 2754
Re: How can i detect when a file is first created at MMC car
Please, try this function: Mmc_Fat_Get_File_Date. You mean to compare dates? if the file doenst exist then it wont give me a date? or if it exist the i will get an older date? i dont have a realtime clock in the sistem, i get the date from a chain from the sensor. it would be nice creation file fla...
- 20 Oct 2011 01:15
- Forum: mikroPascal PRO for PIC General
- Topic: How can i detect when a file is first created at MMC card
- Replies: 8
- Views: 2754
How can i detect when a file is first created at MMC card
Hi, I am trying to make a code that can detect when its the first time a file is created. I want to do this because i need to write a default column name in a .csv file, but only the first time, after that the sensor data will be stored under those columns. Mmc_Fat_Assign Prototype function Mmc_Fat_...
- 09 Apr 2010 16:36
- Forum: mikroPascal PRO for PIC General
- Topic: Compiler odd problem
- Replies: 3
- Views: 1774
Re: Compiler odd problem
Hi Losic, thanks for caring I have programed exactly the lines of codes posted by you and i got the following result result: 1. If no card is present then the glcd shows "Insert card", when i insert the card nothing happens, the new text doesnt show. and the the PIC gets stucked, no more lines of co...
- 08 Apr 2010 23:21
- Forum: mikroPascal PRO for PIC General
- Topic: Compiler odd problem
- Replies: 3
- Views: 1774
Re: Compiler odd problem
Hi, i noticed a funny behaviur on this code within my program, i wonder if you could test it on your compiler? I am trying to make a MMC/SD card detection rutine: program error; var tmp : byte begin Spi1_Init_Advanced(_SPI_MASTER_OSC_DIV64,_SPI_DATA_SAMPLE_MIDDLE,_SPI_CLK_IDLE_LOW,_SPI_LOW_2_HIGH); ...
- 08 Apr 2010 16:46
- Forum: mikroPascal PRO for PIC General
- Topic: Compiler odd problem
- Replies: 3
- Views: 1774
Compiler odd problem
Hi, I am getting a little desesperate with this issue, i really dont know if its a programming error of my own so i will post it. I was perfectly working with a prototype, everything looked normal. Suddenly after i finished the "box" with all the electronics inside and programed the code into the PI...
- 23 Mar 2010 19:02
- Forum: mikroPascal PRO for PIC General
- Topic: MMC Fat16 question
- Replies: 4
- Views: 2467
Re: MMC Fat16 question
Thanks, that solved the problem, i just tried that attribute and the file was created and then modified by the program. I will leave a post here if anew problem emerges. I dont undestand very well the file attributes of Fat16 system.ISL_Dave wrote:
I use the file attribute (0x80)