Search found 19 matches

by memethemyn
29 Dec 2008 09:14
Forum: mikroBasic General
Topic: Limiting max and min value of an integer variable
Replies: 8
Views: 3119

Thanks to everybody..

but Raslan's way is the best choice for me..

I though that a syntax as dim i as integer min=0 max=4 may be in Basic..

Maybe i must add this syntax to wish list..

Thanks to everybody again and have a nice christmas :oops:
by memethemyn
28 Dec 2008 11:42
Forum: mikroBasic General
Topic: Limiting max and min value of an integer variable
Replies: 8
Views: 3119

Limiting max and min value of an integer variable

Hi everybody..

I need a variable which has a minimum limit 0 and maximum limit 5 as integer..

for example minimum value is 0 and when i increment it i want to limit the variable 4 then i increment it must return to 0 again..

how can i do this..

Thanks already..
by memethemyn
13 Dec 2008 17:10
Forum: mikroBasic Wish List
Topic: DS13xx library
Replies: 6
Views: 7758

The HW of DS1307 is ready but when the library support will be ready for it :?

Waiting much :oops:

Kind Regards..
by memethemyn
28 Nov 2008 14:43
Forum: mikroBasic General
Topic: 18F452 EEPROM write commands
Replies: 9
Views: 3917

but when i didn't use interrupt there was no problem :oops: There is a 500ms delay in the interrupt routine. That is a very long time, since interrupt routines should be as fast as possible... 8) hi again.. I completely canceled the delay in the interrupt sub procedure but the error occurs again:(((
by memethemyn
27 Nov 2008 12:20
Forum: mikroBasic General
Topic: 18F452 EEPROM write commands
Replies: 9
Views: 3917

Hi, do not forget to wait for at least 10 msecs after every "Eeprom_write" before issuing the next one to allow the eeprom write cycle to complete. :D You leave no time between write activities. i used delay ms 20 msec but the error occured again :( the simulator gives error about "EECON1" not modi...
by memethemyn
27 Nov 2008 08:16
Forum: mikroBasic General
Topic: 18F452 EEPROM write commands
Replies: 9
Views: 3917

here is my codes Raslan.. my easypic4 at service this time:( because of this i used simulation software.. program zamanrole20 dim MENU,i,j as integer PMM,BMM,PSS,BSS,OUT as BYTE PSST,PMMT,BSST,BMMT,OUTT as String[3] sub procedure Settings '--------kesme ayarları----------------- INTCON.GIE =1 INTCON...
by memethemyn
26 Nov 2008 15:57
Forum: mikroBasic General
Topic: 18F452 EEPROM write commands
Replies: 9
Views: 3917

What did you want to mean 'xx' :)
by memethemyn
26 Nov 2008 11:15
Forum: mikroBasic General
Topic: 18F452 EEPROM write commands
Replies: 9
Views: 3917

18F452 EEPROM write commands

Hi everybody.. for a project i want to use of the internal eeprom on 18f452.. but in simulation program gives me an alarm about 18f452 eeprom.. i use totally 5 eeprom write commands.. i use port b0 interrupt and when writing eeprom disable interrupt.. is there an extra register setup in 18f452.. whe...
by memethemyn
19 Sep 2008 12:30
Forum: mikroBasic General
Topic: mikroBasic interrupts newbee :(
Replies: 1
Views: 1711

mikroBasic interrupts newbee :(

hi everybory.. I'm new in PIC and mikrobasic.. and every day i learn new things about them.. the help file of mikroBasic and EasyPic4 development board teachs me lots of things but i couldn't found examples about interrupts and using the timers.. in forum there is no striking examples i didn't foun...
by memethemyn
03 Sep 2008 13:53
Forum: mikroBasic General
Topic: GLCD Display Formatting Help Need
Replies: 9
Views: 3690

Hi..

Try to use LVP=off..

Low voltage programming cause many matters when using GLCD..

Kind Regards..
by memethemyn
03 Sep 2008 08:56
Forum: mikroBasic General
Topic: Show mm:ss counter on LCD
Replies: 5
Views: 2416

I wrote this last year for PIC18.... might be helpful. It also compelled me to write a blistering fast divide-by-60 routine (sorry... top secret... :wink: ) Just pass a number: http://www.mikroe.com/forum/viewtopic.php?t=11323 Hi xor The codes given by you was all I ask :D but I'm using 16F877 :( I...
by memethemyn
01 Sep 2008 15:48
Forum: mikroBasic General
Topic: Show mm:ss counter on LCD
Replies: 5
Views: 2416

hi Dany.. your code is for mikroPascal:( but i tried to convert it to mikrobasic.. but the compiler alerts at the 4. line:( here is my codes please have a look :( sub procedure TrimLeft(dim S as string) dim I as byte dim Src, Dst as byte [b]while S[0] = " "[/b] Dst = @S Src = @S + 1 for I = 0 to Len...
by memethemyn
01 Sep 2008 10:18
Forum: mikroBasic General
Topic: Show mm:ss counter on LCD
Replies: 5
Views: 2416

Show mm:ss counter on LCD

Hi folks.. For a project i have to make a counter as 4 digit like MM:SS (using 16F877) MM shows minutes and SS shows seconds.. and i use 2 buttons.. when i press the first button the counter increments and press the second button the counter decrements... but i have problem about the conversations.....
by memethemyn
27 Aug 2008 20:55
Forum: mikroBasic Wish List
Topic: DS13xx library
Replies: 6
Views: 7758

DS13xx library

hi folks..

i wish that mikrobasic will contain DS13XX library at the next version..
it will be very usefull for the projects where we need real time operations..

thanks already..
by memethemyn
19 Aug 2008 09:42
Forum: mikroBasic General
Topic: Using LCD on PortA
Replies: 1
Views: 1413

Using LCD on PortA

Hi.. For a project i must use 2x16 character LCD on portA :? in the past i used portb and portd for driving LCD many times but now i don't know what i must do:( i want to use Lcd_config command but Lcd_config for 7 bits. however LCD use only 6 bits when 4 bit mode.. example Lcd_Config(PORTD,3,2,1,0...

Go to advanced search