Search found 78 matches

by bobspencerr
02 Nov 2015 03:13
Forum: mikroBasic PRO for PIC General
Topic: Advice on using ASM in a unit
Replies: 6
Views: 2223

Re: Advice on using ASM in a unit

Thanks again Janni

I can see all of the variables in there.
Very cool.

Thanks very much for the help.
by bobspencerr
02 Nov 2015 01:32
Forum: mikroBasic PRO for PIC General
Topic: Advice on using ASM in a unit
Replies: 6
Views: 2223

Re: Advice on using ASM in a unit

I found a reference to them in the debugger Variables dropdown.
Is this the best place to get the list from for each chip I may use?
by bobspencerr
01 Nov 2015 23:35
Forum: mikroBasic PRO for PIC General
Topic: Advice on using ASM in a unit
Replies: 6
Views: 2223

Re: Advice on using ASM in a unit

Thank you Janni I can see that you are far more advanced in the ASM than I am at this time. I am going to tale a day or two and really look at the code you sent and learn from you. Can you tell me please where you got the list of available variables such as R0 and R1?? I have read and re-read the ma...
by bobspencerr
01 Nov 2015 14:13
Forum: mikroBasic PRO for PIC General
Topic: Combination of ASM and Mikrobasic
Replies: 6
Views: 2049

Re: Combination of ASM and Mikrobasic

Thanks for your help people.
I have this sorted and working now.
:D
by bobspencerr
01 Nov 2015 14:11
Forum: mikroBasic PRO for PIC General
Topic: Advice on using ASM in a unit
Replies: 6
Views: 2223

Advice on using ASM in a unit

Hi all, I wrote the following procedure using the code below in the main module of my program and it worked fine and as expected. However, I decided to move it to another unit in the same project to allow me to reuse it better in other projects. Unfortunately everything changed when I did. The count...
by bobspencerr
30 Oct 2015 03:04
Forum: mikroBasic PRO for PIC General
Topic: Combination of ASM and Mikrobasic
Replies: 6
Views: 2049

Re: Combination of ASM and Mikrobasic

Ive got the data starting at 0x200 in the actual code. I wrote this example quickly between meetings at work. Im using the name of the array to find the base address because in MikroBasic you don't have to specify the location. Yes I saw your typing about the refences to the variable but I am yet to...
by bobspencerr
30 Oct 2015 02:24
Forum: mikroBasic PRO for PIC General
Topic: Combination of ASM and Mikrobasic
Replies: 6
Views: 2049

Re: Combination of ASM and Mikrobasic

Hi Jani

Yes I should have mention that the processor im using is the Pic 18F4550
Im not finding the link you sent me very clear about the naming convention for local variables but ill keep trying

Thanks again
by bobspencerr
30 Oct 2015 00:05
Forum: mikroBasic PRO for PIC General
Topic: Combination of ASM and Mikrobasic
Replies: 6
Views: 2049

Combination of ASM and Mikrobasic

HI all I am writing some code that for speed requirements needs to be partly ASM. In the code I use an array of Longint as shown here Now, I need to be able to access this array from inside my ASM code and am getting stuck Can anyone tell me how to address the array from inside ASM? MyArray as longi...
by bobspencerr
26 Oct 2015 05:43
Forum: mikroBasic PRO for PIC General
Topic: Driving an RGB LED strip with 18f4550
Replies: 2
Views: 1944

Re: Driving an RGB LED strip with 18f4550

Soooooo I ended up opting away from using the SPI function and wrote an asm function to do this and now it works. After a lot of trial and error in the NOP sections to make the time closer to the specs I have it working mostly. Timing is definitely the issue for me here and this is what I have concl...
by bobspencerr
23 Oct 2015 02:50
Forum: mikroBasic PRO for PIC General
Topic: Driving an RGB LED strip with 18f4550
Replies: 2
Views: 1944

Re: Driving an RGB LED strip with 18f4550

Ok, so to add to this. I have just read the data sheet again and the LEDs I have are using the WS2812 Chips and the sample from the LibStock page uses the WS2811 Chips. The web search results suggest that they are more sensitive and I should add a min 100uF cap on the power lines to the LEDs and a 1...
by bobspencerr
22 Oct 2015 23:46
Forum: mikroBasic PRO for PIC General
Topic: Driving an RGB LED strip with 18f4550
Replies: 2
Views: 1944

Driving an RGB LED strip with 18f4550

Hi Does anyone have any samples or help with driving a RGB Led strip from a 18F4550? I have tried modifying the code form the Libstock demo which uses the p18f46k22. From what I can see, the chip is run with PLL enabled and has the internal clock running at 64MHz They use SPI_Advanced and divide the...
by bobspencerr
10 Jun 2015 02:56
Forum: mikroPascal PRO for PIC32 General
Topic: USB Data Transfer Question
Replies: 2
Views: 3439

Re: USB Data Transfer Question

Thank you for your responce Marina You have confirmed what I thought I already had learned. I will definitely learn more aboiut the protocols available. I think that I will remain using the HID protocol for the reasons you have stated and I will just modify my processes to hide the delays from the u...
by bobspencerr
09 Jun 2015 01:25
Forum: mikroPascal PRO for PIC32 General
Topic: USB Data Transfer Question
Replies: 2
Views: 3439

USB Data Transfer Question

So :shock: :shock: After yet another week trying to read as much as possible on the net about USB data transfer I am now even more confused. I have data collected in a pic32 (10,000 bytes) and want to know the fastest way to transfer this to an App running on my pc without the use of the HID and its...
by bobspencerr
07 Jun 2015 09:02
Forum: mikroPascal PRO for PIC General
Topic: USB Mass transfer from Pic32 to Delphi
Replies: 1
Views: 1857

USB Mass transfer from Pic32 to Delphi

Ok so after as lot of reading and searching I am now officially confused. My project collects bulk data into a pic32 and then I need to transfer it in bulk to a Delphi application via USB. I have read what I can on CDC, MSC and HID protocols. Oh and I forgot to mention that I don't want the chip to ...
by bobspencerr
06 Jun 2015 16:02
Forum: mikroPascal PRO for PIC32 General
Topic: USB CDC Delphi7 Example
Replies: 1
Views: 3165

USB CDC Delphi7 Example

Hi all I am trying to start a project that uses USB to transfer bulk data from a PIC32 to a windows app written in Delphi 7 Can anyone show me a basic sample for both ends of this? To date I have been using the HID setup but this is way too slow for my application. I am hoping that someone can show ...

Go to advanced search