Search found 398 matches

by Jay Dee
Sun Mar 10, 2019 1:04 pm
Forum: Flowcode V8
Topic: Force a Fixed Memory location for Variable
Replies: 7
Views: 4299

Re: Force a Fixed Memory location for Variable

Ah yeah.. the compiler. Forgot that step.. could be kinda hard to work around that. Currently I have a tool that allows me to read values stored at a specific address and that works in my testing so far. So the tricky bit of reading the data back from the PIC over USB Serial is basically sorted. The...
by Jay Dee
Sun Mar 10, 2019 12:06 pm
Forum: Flowcode V8
Topic: Force a Fixed Memory location for Variable
Replies: 7
Views: 4299

Force a Fixed Memory location for Variable

Hi, Is there a way to force FC to store a variable in a specific memory location? Why I'm looking to simplify how an external program accesses variables from a PIC via USB serial. If I could force a variable to save to a specific address location, I could then always use this location in future FC p...
by Jay Dee
Fri Mar 08, 2019 7:18 pm
Forum: Feature Requests
Topic: (cheap), Long range module (node to node) RFM95?
Replies: 15
Views: 9505

Re: (cheap), Long range module (node to node) RFM95?

Hi, Bit late on this one... but I've also used various versions of the the RF Solutions LoRa tranciever modules (Gamma). Through trees and varying countryside terrain I achieved a very reliable 1Km connection. Beat any other small low power RF tansmitter I've tested by a long way. In its simpliest f...
by Jay Dee
Fri Mar 08, 2019 3:20 pm
Forum: Flowcode V8
Topic: ECIO28 USB Serial - will not compile.
Replies: 2
Views: 2084

Re: ECIO28 USB Serial - will not compile. - Solved

Hi. Odd...that USB folder was locating the the CAL\PIC\ directory. It was however an early install of V8 and it was not liking the update feature. So I borrowed a better network connection and downloaded the latest release, removed and re-installed FC8. All seems fine now. Thanks for support, lucky ...
by Jay Dee
Thu Mar 07, 2019 11:16 pm
Forum: Flowcode V8
Topic: ECIO28 USB Serial - will not compile.
Replies: 2
Views: 2084

ECIO28 USB Serial - will not compile.

Hi, just put FC8 on a spare machine, win10 and installed PIC toolchain. A ran a basic flash program, this loaded to the ECIO28 fine. If i place the USB Serial component into FC, it throws an error when trying to compile. I've been on other projects most of last year so quite behind with FC8, are the...
by Jay Dee
Fri Oct 05, 2018 12:00 pm
Forum: Programming Tips & Tricks
Topic: Working with Registers
Replies: 10
Views: 13221

Re: Working with Registers

Can someone confirm this is a sensbile way to do the following! :) I wish to over write the lower 4 bits of a 8 bit register....so I think my process should be 7 6 5 4 3 2 1 0 Bit Number 1 0 1 0 1 0 1 0 This is the Original Register Value 1 1 1 1 0 0 0 0 AND by this mask to clear lower four bits 1 0...
by Jay Dee
Mon Sep 24, 2018 7:26 pm
Forum: Programming Tips & Tricks
Topic: Working with Registers
Replies: 10
Views: 13221

Re: Working with Registers

Great stuff! suggestions added into original doc. Thanks Guys.
by Jay Dee
Sat Sep 22, 2018 1:03 pm
Forum: Programming Tips & Tricks
Topic: Working with Registers
Replies: 10
Views: 13221

Re: Working with Registers

Thanks Kersing!
Yep, my mistake. Original post now updated.
Its good to have online proof reading! :)
by Jay Dee
Sat Sep 22, 2018 10:57 am
Forum: Programming Tips & Tricks
Topic: Working with Registers
Replies: 10
Views: 13221

Working with Registers

Working With Registers. Hi Guys, as someone who drops in and out of Flowcode I often forget things so I started to write some of it down. Working with registers is something that took a little while for me to get my head around, so the following may help others who are new on the path to knowledge! ...
by Jay Dee
Sun Sep 02, 2018 8:00 pm
Forum: Flowcode V8
Topic: Simple Pulse Duration measurement using Int0 Pin
Replies: 6
Views: 3851

Re: Simple Pulse Duration measurement using Int0 Pin

Ah...So if I was to use the CCP module, each module can only be set to detect either the rising or falling edge.
So you need two CCP modules, one to detect the rising edge and one to detect the falling edge.
Unfortunately the chip in use the lower pin count PIC18F2580 only has one CCP module.
by Jay Dee
Sun Sep 02, 2018 7:28 pm
Forum: Flowcode V8
Topic: Simple Pulse Duration measurement using Int0 Pin
Replies: 6
Views: 3851

Re: Simple Pulse Duration measurement using Int0 Pin

Yeah, I agree it certainly is a clunky way to do the task. I'll have a read of the Microchip App note on the CCP and see if I can make sense of it.
Thanks J.
by Jay Dee
Sun Sep 02, 2018 6:00 pm
Forum: Flowcode V8
Topic: Simple Pulse Duration measurement using Int0 Pin
Replies: 6
Views: 3851

Simple Pulse Duration measurement using Int0 Pin

Hi, If I wished to measure a pulse duration, can I.... Trigger on INT0 Rising edge. Start timer Tmr2 and index a counter, on each tick. Trigger on INT0 Falling edge. Read Timer value and reset counter. I've been playing with FC in simulation only and I dont seem to be able to get sensible behavior t...
by Jay Dee
Tue Aug 14, 2018 7:41 pm
Forum: 8-Bit PIC
Topic: How to Create a variable frequency output
Replies: 4
Views: 6256

Re: How to Create a variable frequency output

Thanks for the alternate PWM method Martin,
FYI, I previously posted the wrong file, swapped for correct one, which has also been tweaked to improve stability.
Its based on a PIC 18F2580 with 20Mhz Crystall so would need relevant tweaks if anyone wanted to use it on a alternate chip or clock freq. J.
by Jay Dee
Tue Aug 14, 2018 2:54 pm
Forum: 8-Bit PIC
Topic: How to Create a variable frequency output
Replies: 4
Views: 6256

Re: How to Create a variable frequency output

Hi Martin, Thanks for that, I did not follow all of it ! :D but it certainly triggered an idea for the use of interrupts, which was a great shout. For anyone else playing along, attached is a very simple Interrupt based fixed-frequency output signal. An interrupt macro counts up to a rollover value,...
by Jay Dee
Mon Aug 13, 2018 7:56 pm
Forum: 8-Bit PIC
Topic: How to Create a variable frequency output
Replies: 4
Views: 6256

How to Create a variable frequency output

Hi Guys, Anyone got any good tricks for creating a variable frequency output from a 18F Pic. I would like to have a range of frequencies between 500Hz to 3kHz, I dont need any specific values, just a range of steps. I also after about 50% duty but anything close will do. The PWM module only allow yo...
by Jay Dee
Sun Aug 12, 2018 11:54 am
Forum: Flowcode V8
Topic: Problem Programming 18F2580
Replies: 7
Views: 4824

Re: Problem Programming 18F2580

So.. I can program the 18F2580 ICs with the PCIKIT3 and flash test works as expected. But.. I still cant program a chip plugged directly into an EB006 Programmer. Once the program is sent the previous program must have been erased since the flash test stops working. Ive now tried both FC8 / FC7 and ...
by Jay Dee
Sat Jul 21, 2018 2:24 pm
Forum: Flowcode V8
Topic: Problem Programming 18F2580
Replies: 7
Views: 4824

Re: Problem Programming 18F2580

Programming issue still remains, but the custom hardware which kicked this off, found the Stupid hardware problem. Blocking diode between the MCLR pin and 5V rail was wrong was around. CAN tranciever's sleep pin was connected to LVP programming pin, pulling it high and putting the chip into Low Volt...
by Jay Dee
Sat Jul 21, 2018 12:06 pm
Forum: Flowcode V8
Topic: Problem Programming 18F2580
Replies: 7
Views: 4824

Re: Problem Programming 18F2580

Hi, Done a bit more testing, I think I've got some buggy behaviour. (still waiting to find something stupid!) With an EB006 and FC8 updated. I programmed an 18F1220 with a basic flash file to confirm the basic setup was working. Chip: PIC18F1220 / EB006 J12,J13,J14: USB / Config: Oscillator - HS mLo...
by Jay Dee
Sun Jul 08, 2018 4:22 pm
Forum: Flowcode V8
Topic: Problem Programming 18F2580
Replies: 7
Views: 4824

Re: Problem Programming 18F2580

Hi Ben, Sadly the chip is a SOIC type so I cant plug it into the programmer directly. A) I'll try shorter leads as suggested when I get back to the UK workshop (couple of weeks!) B) I may also try using a PICKIT3 as I can then make the leads very short. C) I'll also scope at the IC's pins and see th...
by Jay Dee
Wed Jul 04, 2018 11:49 am
Forum: Flowcode V8
Topic: Problem Programming 18F2580
Replies: 7
Views: 4824

Problem Programming 18F2580

Hi, I have a new install of FC8. (8.0.0.0.6) with mLoader 4.0.0.1 and an original EB006 (007) programmer. I'm trying to program a PIC18F2580 using ICSP using short (100mm) jump leads from the EB006 The EB006 does not require any firmware upgrade I assume ?? I have to ask, are there any other known i...
by Jay Dee
Tue May 29, 2018 3:30 pm
Forum: Flowcode V8
Topic: FC8
Replies: 6
Views: 5125

Re: FC8

With every new 'paid for' release of (any) software, I always need to justify if the new features are of value to me. To fully upgrade my FC7 to FC8 is around 350GBP. I use FC in a mix of personal and some small commercial applications so I appreciate my position is different to some pure hobby user...
by Jay Dee
Sun May 27, 2018 12:31 pm
Forum: 8-Bit PIC
Topic: LEAD ACID BATTERY CAPACITY MONITOR
Replies: 3
Views: 4362

Re: LEAD ACID BATTERY CAPACITY MONITOR

HI, Just to throw a simple idea in... When I've needed to do a quick and dirty measurement of 12v supply to a PIC project, Use the 10 bit ADC reading in integer values ( as per Martins suggestion) I used a very simple 4:1 voltage divider on the input, (using high value resistors to minimize input lo...
by Jay Dee
Sat Apr 21, 2018 3:37 pm
Forum: Flowcode V7
Topic: Flowcode 7 - Updates Since 7.3 - Questions
Replies: 6
Views: 5248

Re: Flowcode 7 - Updates Since 7.3 - Questions

Hi Guys, I'm away from my FC PC's with work, so cant pull up the Device list. Is there a current document that lists all supported devices? (maybe across all platforms, PIC,AVR,ARM) I'm looking at a small side project that the newer PIC16F series would be very good for but just wanted to check compa...
by Jay Dee
Fri Apr 20, 2018 3:27 pm
Forum: 16-Bit PIC
Topic: CAN bus speed on dsPIC33EP512GM710
Replies: 6
Views: 8248

Re: CAN bus speed on dsPIC33EP512GM710

Hi, with the ECIO40P16 (dsPIC33EP256MU806) some time ago I had an issue setting the CAN baud rate. "Using standard setting the CAN transmits at half the required speed. To make it work on the bench I changed Register CxCTRL1 from 0x0800 to 0x0000 bit 11 = 0 //FCAN is equal to Fp, For that specific P...