Search found 274 matches

by Lord Grezington
Wed Jul 01, 2020 4:50 pm
Forum: General Programming
Topic: Gyro_L3GD20
Replies: 4
Views: 220

Re: Gyro_L3GD20

Hi Ben I have the SPI MAster connected to the same pins as the SPI Gyro (MOSI, MISO, CLK) but with different SS for another component. The program compiles fine, but when I test it on hardware the it freezes. When I then set the Gyro to software mode it does not freeze. Is it possible to use the sam...
by Lord Grezington
Wed Jul 01, 2020 4:40 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Thanks Ben

All seems to be working fine so far...
by Lord Grezington
Thu Jun 18, 2020 5:13 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben I have copied the file in into the the stated folder, re-started flowcode and even cleared the cache. I have tried multiple channels of the PWM, saved the program under a differnet version number, re-compiled but unfotuantly it still does not seem to be working. Do you think maybe its got som...
by Lord Grezington
Wed Jun 17, 2020 4:56 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Thanks Ben
by Lord Grezington
Tue Jun 16, 2020 9:12 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben

I have tested the "#define MX_TIMERSELECT0"

Unfortuntalty I still dont get anything when compiling on any of the PWM channels.

I measured all the pins just to be sure

UART still works fine

Thanks
by Lord Grezington
Thu Jun 11, 2020 4:56 pm
Forum: Bug Reports
Topic: Serial EEPROM 24C32
Replies: 2
Views: 69

Re: Serial EEPROM 24C32

Hi Stefan I am fairly sure the dsPIC33EP32MC204 device does have two hardware I2C channels. I only need one channel (channel 2) using B5 & B6. I can not change these pins as the design is on a PCB. The 24C32 works perfectly when I use software B5 and B6, but as soon as I switch to the hardware optio...
by Lord Grezington
Thu Jun 11, 2020 12:21 pm
Forum: Bug Reports
Topic: Serial EEPROM 24C32
Replies: 2
Views: 69

Serial EEPROM 24C32

Hi All

I am using the dsPIC33EP32MC204 with a external EEPROM 24C32.

The 24C32 works perfectaly when I use software mode, but I get no I2C when I use hardware mode channel 2 (SDA on B5 and SCL on B6).

Can anyone help with a fix?

Thanks
by Lord Grezington
Thu Jun 11, 2020 10:25 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Morning Ben

Do you think you might have a chance to take a look at this today? The new assembled PCB's should be arriving any minute now and it would be good if I can complete the project this week.

Thanks
by Lord Grezington
Wed Jun 10, 2020 1:57 pm
Forum: General Programming
Topic: RS485 - Driver Enable/Reciever Enable
Replies: 3
Views: 457

Re: RS485 - Driver Enable/Reciever Enable

Hi Leigh

Yes, it does work. However I still needed to add a 200us delay before re-setting the time and sending the data packet. Still better than software though...

Is it possible to edit the UART hardware component to add this option rather than using the timer?

Thanks
by Lord Grezington
Wed Jun 10, 2020 12:51 pm
Forum: General Programming
Topic: RS485 - Driver Enable/Reciever Enable
Replies: 3
Views: 457

Re: RS485 - Driver Enable/Reciever Enable

Yeah, I can see that working...

The timer will need to be different every time as I have a different number of data packets, but definitely worth giving a go.

Thanks Leigh
by Lord Grezington
Wed Jun 10, 2020 11:28 am
Forum: General Programming
Topic: RS485 - Driver Enable/Reciever Enable
Replies: 3
Views: 457

RS485 - Driver Enable/Reciever Enable

Hi Guys I have now moved on in the project to get the RS485 working. Issue I am having is I would like to keep the UART based in hardware rather than software. As the RS485 IC's use a NOT RE and a DE. I tie these two pins together and just use them as a single write enable pin (I have attached the d...
by Lord Grezington
Wed Jun 10, 2020 8:55 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben

If you send a program I will be happy to test and report my results.

The program I am using to test is attached.

Graham
by Lord Grezington
Tue Jun 09, 2020 4:20 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben

I have just ran this on hardware, I have tried using multiple PWM channels and timers. Unfortunatly it still does not seem to work.

I ran the updates and restarted.
The PWM works in simulation

Thanks
by Lord Grezington
Mon Jun 08, 2020 2:27 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi ben

Sorry to bump, but I have new hardware coming in this week for this and I really need the PWM and ADC's working. Have you managed to find time to make any progress?

Thanks
Graham
by Lord Grezington
Tue Jun 02, 2020 5:11 pm
Forum: General Programming
Topic: SSD1322
Replies: 15
Views: 844

Re: SSD1322

Hi Leigh

The datasheet does say to take it low, however taking it high did work :idea: perhaps I am just miss reading it... But it does now work
OLED Schematic.png
(283.94 KiB) Downloaded 57 times
Thanks
by Lord Grezington
Tue Jun 02, 2020 5:04 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben OK, so if I have a basic program and test with a blinker program (just for sanity check): If I had a PWM macro on channel 1, enable it then add a loop with setting the duty cycle to 100 - Nothing happens If I add a timer interrupt on timer 2 with the HFINTOSC source, 1/128 prescaler, 1-16 pos...
by Lord Grezington
Tue Jun 02, 2020 3:34 pm
Forum: General Programming
Topic: SSD1322
Replies: 15
Views: 844

Re: SSD1322

Hi Ben The PIC no longer locks up :D However Im not getting anything on the display. I have simplified the program to just have the OLED and attached it. The blinker on there is just a verification that the program is running. I have tried swapping the address. I have also attached the schematic for...
by Lord Grezington
Tue Jun 02, 2020 11:20 am
Forum: General Programming
Topic: Gyro_L3GD20
Replies: 4
Views: 220

Re: Gyro_L3GD20

Thanks Ben, again I will update and give it a go
by Lord Grezington
Tue Jun 02, 2020 11:19 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Thanks Ben, I will update and give it a go
by Lord Grezington
Tue Jun 02, 2020 10:13 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Thanks Steve
by Lord Grezington
Mon Jun 01, 2020 9:41 am
Forum: Freelance Embedded Engineers
Topic: SST39SF010A programming
Replies: 2
Views: 252

SST39SF010A programming

Hello I need someone who can write the flowcode program to write and read variables into the SST39SF010A. It needs to be proven to work on hardware, I am happy to send some devices to you if you cant sourse them. Project is urgent, so a fast turn around time would be required. Please send me a PM wi...
by Lord Grezington
Thu May 28, 2020 4:19 pm
Forum: General Programming
Topic: Gyro_L3GD20
Replies: 4
Views: 220

Gyro_L3GD20

Hi Everyone I am trying to use the Gyro L3GD20 in SPI mode, but it seems I cant re-map the pins even if I try software channel. If I use a standard SPI master it allows me to re-map the pins. I am using the 18F24Q10 Thanks Note - I also seem to be having problems compiling when the gyro is added to ...
by Lord Grezington
Thu May 28, 2020 4:01 pm
Forum: General Programming
Topic: SSD1322
Replies: 15
Views: 844

Re: SSD1322

Thanks Martin

I will check this when my correct cables come in.
by Lord Grezington
Thu May 28, 2020 2:10 pm
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 28
Views: 987

Re: PIC18F47Q10 ADC not working

Hi Ben I have the same problem with the 18F24Q10. I have got 5 ADC's (AN0,4,5,7 & 18) that dont seem to be working (but work fine in simulation). Is it possible for you to send an update for the Q10 parts so all the additional C-code is not needed? Thanks EDIT - additional note. When testing the PWM...
by Lord Grezington
Thu May 28, 2020 12:53 pm
Forum: General Programming
Topic: SSD1322
Replies: 15
Views: 844

Re: SSD1322

Hi Martin With the SSD1306, it compiles fine with no warnings. However, when I put it into hardware I start getting issues... As soon as I initialise the SSD1306, the program no longer works. I have just used a simple blinker program to test, I am running on the HFINTOSC HFFRQ = 64Mhz. I have attach...