Search found 41 matches

by randomrichard
Thu Mar 13, 2014 10:18 pm
Forum: Programming Tips & Tricks
Topic: Programming dsPIC33's with F6 and EB064
Replies: 2
Views: 5207

Re: Programming dsPIC33's with F6 and EB064

Hello Ben I have attached the Flowcode 6 file I was using. The EB085 maps to port BL with the jumper on Patch, with wires connecting CS to pin1 (inexplicably labelled 0 on the board!), MISO to pin5 (labelled 4) and SCK to pin4 (labelled 3). I have checked the outputs with my Picoscope and all works ...
by randomrichard
Wed Mar 12, 2014 6:22 pm
Forum: Programming Tips & Tricks
Topic: Programming dsPIC33's with F6 and EB064
Replies: 2
Views: 5207

Programming dsPIC33's with F6 and EB064

With the EB085 DSP input board on socket BL of EB064 I have found that the only way to program the PIC easily is to disconnect the Chip Select (RB0) connection between the chip and the input board. The program is then installed on the first or second try every time. Otherwise it is necessary to clos...
by randomrichard
Sun Mar 09, 2014 8:37 pm
Forum: Flowcode V6
Topic: Programming dsPIC33's with F6 and EB064
Replies: 3
Views: 2809

Re: Programming dsPIC33's with F6 and EB064

pps I've worked out (I think!) that I need to use a PICKit 3 to upload code written with the help of Flowcode 6 to extend the range of dsPIC chips I can test on the EB064 to that encompassed by F6. Old blokes like me who design and make new kit read manuals. I wish Flowcode had one that covered vita...
by randomrichard
Sun Mar 09, 2014 9:12 am
Forum: Flowcode V6
Topic: Programming dsPIC33's with F6 and EB064
Replies: 3
Views: 2809

Re: Programming dsPIC33's with F6 and EB064

ps To get the speed mentioned previously, set the SPI clock to Fosc/4 and the (software) baud to 460800. 921600 also works but is no faster, with Realterm.
by randomrichard
Sat Mar 08, 2014 9:54 pm
Forum: Flowcode V6
Topic: Programming dsPIC33's with F6 and EB064
Replies: 3
Views: 2809

Programming dsPIC33's with F6 and EB064

ADCto33FJDSP.fcfx I have been writing code for dsPIC33FJ128GP802 installed with EB055 (BL) and EB039 (BH) on EB064 and getting a nearly-adequate 16,000 lines/sec of 16 bit ADC data to my PC, where it arrives a little scrambled, but no matter (code attached). I was hoping to increase this using the ...
by randomrichard
Mon Dec 23, 2013 11:44 am
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

I think the problem with Flowcode 6 and the PIC24FJ64GB002's USB is that unlike the 18F2455, whose USB works (see previous post) and has +3.3V on pin VUSB (14), the 24FJ has only +1.7V on pin VUSB (23) - it should have +3.3V too - so the PC doesn't recognise it. The datsheet describes various means ...
by randomrichard
Sat Dec 21, 2013 11:17 pm
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

I have been unable to test EB085 with F6 on an 8bit PIC (no licence). However, here is a Flowcode5 program for testing it with a 18F2455. In the course of developing this code I have discovered that the SPI uses non-volatile memory (NVM) to store data and this requires that both the ADC's bar CS pin...
by randomrichard
Wed Dec 18, 2013 5:24 pm
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

Kersing Thanks for the advice. Not wanting to look a complete idiot I have spent some time working out what's wrong. I used my Flowcode 5 licence to check an MM USB test file on a PIC18F2455 on the EB006 and the test worked perfectly. I have also check in detail the driver files produced by F5 and F...
by randomrichard
Wed Dec 18, 2013 12:05 am
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

inf_file.JPG Kersing I have tried installing the driver as you suggest and Windows 7 assures me it has done so but the device remains "unknown". The F6 program I am trying to set up is attached. It is a F6 translation of MM's example from their USB serial collection. I have tried many times to crea...
by randomrichard
Tue Dec 17, 2013 9:33 pm
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

To complete the story I have used MM's "basic USB comms." teaching aid and converted the fcf file to an fcfx file for F6 (I only have a PIC16bit licence) using the same PIC24FJ as above. I also opened the fcf file in F5 for 8 bit PICs and had no difficulty generating a driver file. I now realize tha...
by randomrichard
Tue Dec 17, 2013 5:05 pm
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Re: Compatibility of EB055 with 28pin PIC24FJ64GB002?

Hi I have hooked up the EB055 to EB064 carrying a PIC24FJ64GB002, connecting a D9 plug to the D+, D- and VUSB pins of the A patch (to D9 pins 3,4,5 = B10, B11, B13/VUSB). My PC recognises the USB serial connection but won't accept the driver file generated by Flowcode 6, attached as a text file. How...
by randomrichard
Tue Dec 17, 2013 2:07 pm
Forum: E-blocks
Topic: Compatibility of EB055 with 28pin PIC24FJ64GB002?
Replies: 8
Views: 8532

Compatibility of EB055 with 28pin PIC24FJ64GB002?

Hi I have just received some PIC24 chips and now realize that the EB055 I have may not be compatible with the D9 ports on the EB064 that I use for programming. I have written but not tested code (attached) for testing the EB085 and sending data to my PC terminal software. However, the D+,D- pins on ...
by randomrichard
Fri Dec 13, 2013 3:00 pm
Forum: Flowcode V6
Topic: EB085 and Flowcode6 for dsPIC: upgrade urgently needed
Replies: 3
Views: 4056

Re: EB085 and Flowcode6 for dsPIC: upgrade urgently needed

I have attached a short Flowcode 6 file for accepting signals from the EB085 by the dsPIC33FJ128GP802, obviously based closely on MM's F5/6 example (I don't have a PIC licence for F6). I hope it helps others confused by the plethora of options! The program delivers a 16 bit word "signal" at a 20 kHz...
by randomrichard
Fri Dec 13, 2013 12:00 am
Forum: Flowcode V6
Topic: EB085 and Flowcode6 for dsPIC: upgrade urgently needed
Replies: 3
Views: 4056

Re: EB085 and Flowcode6 for dsPIC: upgrade urgently needed

Benj Thank you for your patience and advice. It just never occurred to me that I should change to "channel 1". I see now that the default setting; "software" was specifically for your example on the 877A. I'm aware that all processors can do DSP - my desktop does, using routines from Smith's book. T...
by randomrichard
Thu Dec 12, 2013 4:56 pm
Forum: Flowcode V6
Topic: EB085 and Flowcode6 for dsPIC: upgrade urgently needed
Replies: 3
Views: 4056

EB085 and Flowcode6 for dsPIC: upgrade urgently needed

Hi It appears that the EB085 cannot easily be used with dsPIC's on the EB064 board. Setting up the SPI link is not possible because the pin assignments revert to "Port C" pins which don't exist on dsPIC's. I have filed a bug report. Just for fun I hooked the EB085 up to my Arduino Due and got it cra...
by randomrichard
Wed Dec 11, 2013 12:48 am
Forum: E-blocks
Topic: EB085 DSP input board
Replies: 9
Views: 11511

Re: EB085 DSP input board

Hello Thanks for the code. The EB085 works remarkably well. The code has given me access to the type of manipulations necessary for DSP operations. I plan to use Flowcode 6 and the dsPIC33FJ128GP802 to build my sonar system based on the newly-arrived EB064, which is intended to process chirp signals...
by randomrichard
Sat Dec 07, 2013 6:14 pm
Forum: E-blocks
Topic: EB085 DSP input board
Replies: 9
Views: 11511

EB085 DSP input board

Hiyah!

I seem to be the first person to try out your EB085 board judging by the lack of discussion in the forum. I would be grateful if you would direct me to the test file DSP_Input.hex mentioned in the board's document. Meanwhile I shall try to do my own test...
Richard
by randomrichard
Thu Dec 05, 2013 5:39 pm
Forum: Flowcode V5
Topic: Pic DSP Bandpass filter
Replies: 5
Views: 5411

Re: Pic DSP Bandpass filter

Hi Nico No, I've only just started - I have converted Smith's (very) Basic code into VB.NET to see how it works and now have a working simple spectral analyser (his tables 8.2 and 8.3) on my PC using test files from an Arduino saved in Excel. My aim is to use a 12bit ADC, say on the dsPIC30F2011 and...
by randomrichard
Sat Nov 30, 2013 6:08 pm
Forum: Flowcode V5
Topic: Pic DSP Bandpass filter
Replies: 5
Views: 5411

Re: Pic DSP Bandpass filter

Hi I am halfway through a book by Steven Smith (http://www.dspguide.com/editions.htm). It has taken me up to DSP, discrete signal processing, and through convolution/deconvolution and simple filters without maths and with clear understanding: - marvellous diagrams. I think the old edition is availab...
by randomrichard
Tue Feb 26, 2013 10:44 pm
Forum: Flowcode V5 Issues
Topic: 18F2553 to slow to use fast 16bit ADC AD977
Replies: 8
Views: 7697

Re: 18F2553 to slow to use fast 16bit ADC AD977

Jac Thanks for the interrupt code which, however, I was unable to get working. I don't really understand how the interrupt affects program flow but it seems to disable the Pulse output from the PIC to R/barC to start the ADC. Nothing seems to be output from the ADC as a consequence. I have been able...
by randomrichard
Mon Feb 25, 2013 12:55 pm
Forum: Flowcode V5 Issues
Topic: 18F2553 to slow to use fast 16bit ADC AD977
Replies: 8
Views: 7697

Re: 18F2553 to slow to use fast 16bit ADC AD977

Jac I have modified the flowcode as you suggested, and have included USB this time. The USB shows a stream of zeroes/cr at the correct rate of about 1ksps. The oscilloscope shows that the ADC's timing is OK and that a good if noisy 16bit number is output. I don't understand what .pval is and althoug...
by randomrichard
Sun Feb 24, 2013 12:44 am
Forum: Flowcode V5 Issues
Topic: 18F2553 to slow to use fast 16bit ADC AD977
Replies: 8
Views: 7697

Re: 18F2553 too slow to use fast 16bit ADC AD977

Jac I'm beginning to hope the miserable weather here will last all next week so I can give what you have suggested a good try. I have attached a typical .fcf file from which the USB has been removed in a search for a faster repetition of the R/barC pulse on RC7. I had been fiddling with the timing w...
by randomrichard
Sat Feb 23, 2013 7:52 pm
Forum: Flowcode V5 Issues
Topic: 18F2553 to slow to use fast 16bit ADC AD977
Replies: 8
Views: 7697

Re: 18F2553 to slow to use fast 16bit ADC AD977

Jac Thanks for the tip about using the ADC clock as interrupt trigger. That might well work. I wonder if I can do that using the PIC's spi registers on the SDI pin. I see what you are saying. I have tried with both external (PIC as master) and internal clock modes (PIC essentially as slave). There i...
by randomrichard
Sat Feb 23, 2013 12:30 pm
Forum: Flowcode V5 Issues
Topic: 18F2553 to slow to use fast 16bit ADC AD977
Replies: 8
Views: 7697

18F2553 to slow to use fast 16bit ADC AD977

Hello I was going to ask for SPI slave mode to be added to Flowcode5 to take advantage of the fast clock in the AD977. However, by using an oscilloscope and triggering the ADC via its R/barC pin with barCS tied low the fastest the PIC is able to send a trigger is about every 700microsec after cyclin...
by randomrichard
Thu Feb 21, 2013 11:54 pm
Forum: Flowcode V5 Issues
Topic: String function help
Replies: 0
Views: 2376

String function help

Tiny error in Help: In "string manipulation functions" the function is written string = ToStr$(x) instead of ToString$(x)