Search found 517 matches

by BarryP
08 May 2015 14:01
Forum: mikroBasic PRO for PIC General
Topic: const assignment to structure
Replies: 1
Views: 1202

const assignment to structure

Hi, In previous versions (6.0.1 ...) this worked as an alternative for enum . structure sAlign dim Right_ as byte dim Right_With_PadChr as Byte dim Left_ as byte dim Left_With_PadChr as byte dim Trim as Byte dim Trim_Center as Byte end structure const Align as sAlign = (0,1,2,3,4,5) I could then use...
by BarryP
26 Sep 2014 20:56
Forum: mikroBasic PRO for PIC General
Topic: P18F97J60.mbas errors
Replies: 2
Views: 1618

Re: P18F97J60.mbas errors

when referring to a MC that has one uart , dim ABDEN_bit as sbit at BAUDCON.B0 would be normal . when refereeing to a MC that has 2 uarts , dim ABDEN_bit as sbit at BAUDCON1.B0 would be normal , But probably shouldn't be declared at all for clarity. & dim ABDEN1_bit as sbit at BAUDCON1.B0 would be n...
by BarryP
26 Sep 2014 00:30
Forum: mikroBasic PRO for PIC General
Topic: P18F97J60.mbas errors
Replies: 2
Views: 1618

P18F97J60.mbas errors

don't know how many other configs are wrong but the first uart bits are referring to the second uart ! This is just some of the ones I have found/looked for when you have fixed this ... ASAP please post the real files here. ' BAUDCON2, BAUDCTL2 bits const ABDEN = 0 register dim ABDEN_bit as sbit at ...
by BarryP
23 Sep 2014 00:23
Forum: mikroBasic PRO for PIC General
Topic: Case Label must be unique
Replies: 3
Views: 1765

Re: Case Label must be unique

I've changed My Post to include all the code instead of a snippet.

What has changed between 6.0.1 & current version to make this fail ?
by BarryP
22 Sep 2014 01:12
Forum: mikroBasic PRO for PIC General
Topic: Case Label must be unique
Replies: 3
Views: 1765

Case Label must be unique

Hi, Have just installed MB on a new machine to update some code written a long time ago. It compiled ok on 6.0.1 on another machine, but the new version 6.4 complains . "Case Label must be unique" I've used this method a Lot to get specific values into a const structure . Here is an example of the p...
by BarryP
31 Jan 2014 19:56
Forum: mikroBasic PRO for PIC General
Topic: Ethernet demo : any /POST request sample please ?
Replies: 18
Views: 5823

Re: Ethernet demo : any /POST request sample please ?

All Good , Glad you resolved the problem.

Barry
by BarryP
30 Jan 2014 23:15
Forum: mikroBasic PRO for PIC General
Topic: Ethernet demo : any /POST request sample please ?
Replies: 18
Views: 5823

Re: Ethernet demo : any /POST request sample please ?

Hi, No, I would think that the lib will manage socket^.state you just need to manage the data associated with each call & save it somewhere if need be. As you are processing POST , you will probably need to create your own structure to keep some important info in. I did point you to the socckets ver...
by BarryP
30 Jan 2014 06:42
Forum: mikroBasic PRO for PIC General
Topic: Ethernet demo : any /POST request sample please ?
Replies: 18
Views: 5823

Re: Ethernet demo : any /POST request sample please ?

Hi,
I don't have any real world experience using it , but it's in the Libstock .
http://www.libstock.com/projects/view/1 ... et-library
by BarryP
29 Jan 2014 21:54
Forum: mikroBasic PRO for PIC General
Topic: Ethernet demo : any /POST request sample please ?
Replies: 18
Views: 5823

Re: Ethernet demo : any /POST request sample please ?

Hi, Recon you need to power up Wireshark & capture the transactions. when doing simple GET , the actual request will most likely fit inside one packet. You don't get to see the SYN/FIN housekeeping. A POST however , will most likely be broken into multiple packets that need to be managed . perhaps y...
by BarryP
06 Jan 2014 03:48
Forum: mikroBasic PRO for PIC General
Topic: Sending values via ethernet to PHP
Replies: 1
Views: 1372

Re: Sending values via ethernet to PHP

Hi,
You can't use the stock ethernet lib for "Client Connections"
Have a look at using the other ethernet lib at Libstock
http://www.libstock.com/projects/view/1 ... et-library
by BarryP
16 Nov 2013 00:37
Forum: mikroBasic PRO for PIC General
Topic: Braodcast message example
Replies: 7
Views: 2661

Re: Braodcast message example

???? SPI_Ethernet_sendUDP2(bcIP, bcIP, 10001,10001,32) MBPRO doesn't have SPI_Ethernet_sendUDP2 MicroC doesn't show it in the help file either when looking at the code in MicroC it implies this prototype has names like SPI_Ethernet_sendUDP2(destMAC,destIP,sourcePort,destPort,pktLen) In your example ...
by BarryP
09 Oct 2013 08:11
Forum: mikroBasic PRO for PIC General
Topic: Reading ENC28j60 record
Replies: 2
Views: 1720

Re: Reading ENC28j60 record

Hi Perhaps you Could try the Non Latching Bit It will give you the Current State , sub function Check_Link as boolean const PHSTAT1 = 0x01 '(Bit 2 ) Link Status LLSTAT Latching const PHSTAT2 = 0x11 '(Bit 10 ) Link Status LSTAT Non Latching const PHIR = 0x13 dim h,l as byte SPI_Ethernet_readPHY (PHST...
by BarryP
24 Jul 2013 08:00
Forum: mikroBasic PRO for PIC General
Topic: TFT MikroBasic Start ERROR
Replies: 2
Views: 1502

Re: TFT MikroBasic Start ERROR

I repeat is exactly like in the web page with the same microcontroller the (pic18F87J50) That link is to MicroC & there is no reference on that page to var TFT_16bit_RST_Direction as sbit at TRISH4_bit var TFT_16bit_RST_Direction as sbit at TRISH4_bit should be dim TFT_16bit_RST_Direction as sbit a...
by BarryP
18 Jul 2013 03:28
Forum: mikroBasic PRO for PIC General
Topic: Auto Complete.. Auto Turn ON
Replies: 1
Views: 1504

Auto Complete.. Auto Turn ON

Anyone else have a problem with auto-complete turning itself on each time the compiler starts ?
I.E.
Uncheck Auto-Complete
Close / Open MB
Auto Complete is On Again.
by BarryP
15 Jul 2013 03:09
Forum: mikroBasic PRO for PIC General
Topic: Float Help
Replies: 5
Views: 1878

Re: Float Help

Many thanks again Janni.
I'm Way to quick to blame others for my errors.

Go to advanced search