Search found 18 matches

by Sjors
24 Mar 2016 19:49
Forum: mikroBasic PRO for PIC General
Topic: upgrade problem
Replies: 1
Views: 1460

upgrade problem

Hi how can I upgrade from mikrobasic 6.4.0 to 6.6.3 : when I start mikrobasic it checks for updates but I get the message : Download error, Server connection problem.
I also get this error from Help, Check for updates
by Sjors
20 Dec 2014 23:56
Forum: mikroBasic PRO for PIC General
Topic: tm1637 - 4 digit 7 segment display
Replies: 0
Views: 2553

tm1637 - 4 digit 7 segment display

Hello, I've bought a tm1637 4 digit 7 segment display and attached it to a pic18f2525 and wrote the following simple program : I2C1_init(100000) I2C1_Start I2C1_Wr($84) 'set display mode while I2C1_Is_Idle = 0 nop wend ' I2C1_Stop I2C1_repeated_Start I2C1_Wr($44) 'set write data fixed address mode w...
by Sjors
07 Jan 2013 21:08
Forum: mikroBasic PRO for PIC General
Topic: mmc library makedir
Replies: 4
Views: 1908

Re: mmc library makedir

I just tested with another memory card :
1Gb SD kingston instead of
128 Mb MMC kingston
and now it works
by Sjors
05 Jan 2013 22:55
Forum: mikroBasic PRO for PIC General
Topic: mmc library makedir
Replies: 4
Views: 1908

Re: mmc library makedir

and with the next code I also get only 126 files in a folder program mmctest dim hlp as word dim filename as string[12] dim tmp as byte dim num as string[5] dim i as byte dim MMC_chip_select as sbit at RC2_bit dim MMC_chip_select_direction as sbit at TRISC2_bit main: SPI1_Init_Advanced(_SPI_MASTER_O...
by Sjors
05 Jan 2013 10:44
Forum: mikroBasic PRO for PIC General
Topic: mmc library makedir
Replies: 4
Views: 1908

Re: mmc library makedir

thanks for the reply I will test it like that. This is my code. I see the parameters for MakeDir and Assign are different program nmeammc3fat dim datain as byte[2500] dim fp as word dim ebyte1 as byte dim ebyte2 as byte dim received_byte as byte dim pc1 as word dim hlp as word dim j as byte dim pc4 ...
by Sjors
28 Dec 2012 23:17
Forum: mikroBasic PRO for PIC General
Topic: mmc library makedir
Replies: 4
Views: 1908

mmc library makedir

Hi,
I'm succesfully using this MMC library until I found out that there are only 126 files written to a folder on the mmc card. Fat_Assign for the 127th file does not succeed.
I thought fat16 had a max of 512 files per folder.
Is this a bug in mikrobasic or is it per design ?
regards
Sjors
by Sjors
19 Apr 2012 20:43
Forum: Libstock Discussion
Topic: Libstock exclusive: FAT32 and Network Ethernet Libraries
Replies: 63
Views: 720824

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

Hello
I would like to use the fat32 library.
How do I unpack or use the MPKG file ?
Sjors
by Sjors
26 Jan 2010 21:43
Forum: mikroBasic PRO for PIC General
Topic: one-wire
Replies: 1
Views: 1244

one-wire

using ds18b20 temp sensor pic18f2525 and nokia display following code used to work in mikrobasic 7002 : i = Ow_Reset(PORTA,4) ' OneWire reset signal if i = 0 then NOK_Out(0,0,"DS18B20 is er ") else NOK_Out(0,0,"Geen DS18B20 ") end if Ow_Write(PORTA,4,$CC) ' Issue command to DS1820 skip rom Ow_Write(...
by Sjors
26 Apr 2009 12:16
Forum: mikroBasic PRO for PIC General
Topic: WordToStrWithZeros
Replies: 4
Views: 2053

WordToStrWithZeros

in mb pro for pic next code does not work anymore : dim hlp as word dim num as string[5] hlp = 123 WordToStrWithzeroes(hlp,num) the result is not "00123" but "000123" documentation of 7002 says the string is 5 in length in pro the function is not in the documentation should we not use this anymore ?...
by Sjors
07 Sep 2006 22:41
Forum: mikroBasic General
Topic: mmc fat lib speed once again
Replies: 1
Views: 1287

mmc fat lib speed once again

this lib is very slow and not usable for datalogging according to other messages in the forum other people have the same issue I understand the osc/16 is used why not using the osc speed better have good performance with limited brands of mmc cards then no performance at all I am using mikrobasic 40...
by Sjors
27 Mar 2006 21:23
Forum: mikroBasic General
Topic: mmc fat library
Replies: 9
Views: 3799

Hello jaws369

I can try your suggestion but shouldn't it be :

clearbit(SSPCON1, SSPEN) ' Disable SPI port
CLEARbit(SSPCON1, SSPM0) ' Set the clock speed.
setbit(SSPCON1, SSPEN) ' Re-enable the SPI port.

???
by Sjors
22 Mar 2006 23:30
Forum: mikroBasic General
Topic: mmc fat library
Replies: 9
Views: 3799

hello,

what about changing the library from Fosc/16 to Fosc/4
then we gain up 4 times ?

regards
Sjors
by Sjors
17 Mar 2006 19:46
Forum: mikroBasic General
Topic: mmc fat library
Replies: 9
Views: 3799

solution

experimented a bit :

- changed the 4 MHz cristal to 10MHZ
- changed XT osc choice to HSPLL choice in the project
- changes speed definition in the project to 40MHz

now it is fast enough for me
by Sjors
16 Mar 2006 00:15
Forum: mikroBasic General
Topic: mmc fat library
Replies: 9
Views: 3799

mmc fat library

at last ... in v4 of mikrobasic the mmc fat lib does work the examples work etc (in previous versions only write sector did work) but assign, rewrite and write functions of the fat lib take nearly a second to complete I run a pic 18f252 xt crystal mode at 4 Mhz and have a 128 kingston rds mmc card a...
by Sjors
25 Feb 2006 18:09
Forum: mikroBasic General
Topic: ME QUESTION - 18F Chips with USB not MMC Library Compliant?
Replies: 7
Views: 5247

do the libraries also work with :
18f252
osc: 4 MHz
XT_OSC is on

I use kingston 128Mb mmc fat16

Go to advanced search