Search found 387 matches

by Jay Dee
Wed May 27, 2020 4:17 pm
Forum: Programming Tips & Tricks
Topic: Pulse & Frequency meter using CCP FC6
Replies: 3
Views: 7103

Re: Pulse & Frequency meter using CCP FC6

So... I may have just found a different route to the same result and uses the same register values but this worked for me. Changes in the CCP1 Interrupt component. Enable Code CCP1CON = 0x05; //capture on rising edge of CCP1 PIR1 = PIR1 & ~(1<<2); // Clear CCP1IF PIE1 = PIE1 | 0x04; // Set CCP1I...
by Jay Dee
Wed May 27, 2020 12:36 pm
Forum: Programming Tips & Tricks
Topic: Pulse & Frequency meter using CCP FC6
Replies: 3
Views: 7103

Re: Pulse & Frequency meter using CCP FC6

Hi, Looking to use this CCP method but in FC8, the sample FC does not compile correctly. With the change of compiler in FC8 (I think) could that be a part ofthe issue? the custom interupt sets register bits with a method i've not used before, is this still valid? ccp1con =0x05; //capture on rising e...
by Jay Dee
Tue May 19, 2020 10:00 am
Forum: Flowcode V8
Topic: PIC18F47Q10 ADC not working
Replies: 14
Views: 227

Re: PIC18F47Q10 ADC not working

Hi, I'm no expert but check for me would be.. Have you confirmed the PIC programs, responds and is at the correct clock rate by just running the flash test, I assume you have an LED on ouput D0? Confirm you have your input signal connected to PIN 2 (AN0) of the PIC Note, the UART is sending out a th...
by Jay Dee
Mon May 18, 2020 10:34 am
Forum: Flowcode V8
Topic: LIN Master - Simple Macros
Replies: 1
Views: 60

Re: LIN Master - Simple Macros

This is just a rough edited copy of some of my LIN Notes... supplied 'as is' No guarentees implied! 8) LIN. Good introductions to LIN https://www.csselectronics.com/screen/page/lin-bus-protocol-intro-basics/language/en https://www.ni.com/en-gb/innovations/white-papers/09/introduction-to-the-local-in...
by Jay Dee
Mon May 18, 2020 10:24 am
Forum: Flowcode V8
Topic: LIN Master - Simple Macros
Replies: 1
Views: 60

LIN Master - Simple Macros

Hi all, Attached is a FC containing two very basic but working LIN Master macros. The first just sends the header. The second sends header, data bytes and the checksum in either v1.x or 2.x versions. It utilises the PIC's embedded EUSART LIN features so not much use if your not using PIC's or your P...
by Jay Dee
Tue Apr 28, 2020 6:36 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Hi, Tried moving the C code to different positions as suggested but I could still induce the instability. Tried the alterate TMR reset value. I tried for both TMR0 and TMR1 in case there was a typo in the TMR0L suggestion. No improvment. :? Interestingly, to induce the instability, I need to use the...
by Jay Dee
Tue Apr 28, 2020 11:03 am
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Hi Ben, I've replicated the new problem using a spare ECIO on a EB061 base board. Trimmed down the FC to the base essentials, it does seem to be isolated to the servo Controller component. TECIV5_ServoSystem_Glitch2.fcfx To observe with a scope, I needed a minimum pulse width but anything above 1.5m...
by Jay Dee
Mon Apr 27, 2020 5:53 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Ahh bummer.
It now has another style of instability. Rather than the previous scatter gun changes to the pulse width;
Now a stable 2mS pulse, will randomly drop to 0.192mS...
I'll keep poking around, see if I can find a link to anything.
by Jay Dee
Mon Apr 27, 2020 2:24 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Thanks Ben, looks stable, I'd mark that as a solution! :D
J.
by Jay Dee
Mon Apr 27, 2020 1:56 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Ooooh.. I put that little C snippet into my original program and hardware, just before the main servo move. Looks stable so far, I'm going to leave it over lunch with the DSO monitoring for issues. fingers crossed. :)
by Jay Dee
Mon Apr 27, 2020 1:40 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Hi Ben, I'm keeping a constant Duty so I dont have a location in the FC to reset the timer counts. I'll try a few things in that direction though. I've moved the ECIO40P to a EB061 Board to removed any external hardware issues from CAN controllers etc. Edited down the FC to very little and still get...
by Jay Dee
Mon Apr 27, 2020 12:47 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Re: Servo Glitches - momentary pulse width change

Just working on this now... incrementally removing items from FC program untill is stabilises. Monitoiring the Servo Pulse with a DSO and persistance so I can catch any glitches. BTW, Running the Servo component on its only its own macros and with a constant value , a rock steady output. Hopefully I...
by Jay Dee
Sat Apr 25, 2020 12:19 pm
Forum: Flowcode V8
Topic: Servo Glitches - momentary pulse width change
Replies: 11
Views: 497

Servo Glitches - momentary pulse width change

Hi, I'm running ECIO40P with; Servo Component (1 channel only) CAN component (external, channel1) UART component (software, TX only) + a few basic inputs / outputs. The servo hardware is very responsive (too responsive!) it reacts to the slightest change is control pulse. Even if the servo position ...
by Jay Dee
Sat Apr 25, 2020 12:04 pm
Forum: Programming Tips & Tricks
Topic: Using Tera Term (open source) as a colour LCD Display
Replies: 4
Views: 2935

Re: Using Tera Term (open source) as a colour LCD Display

Thanks Martin, I've found this really useful. I was outputing general diagnositc data over UART but being able to write to specific locations on the screen has made it much easier. I tried the USB slave and it worked just fine but each time I sent a new FC to my ECIO, I would have to restart my Tera...
by Jay Dee
Wed Apr 22, 2020 3:51 pm
Forum: Flowcode V8
Topic: Software reset a PIC - ECIO40P
Replies: 2
Views: 291

Re: Software reset a PIC - ECIO40P

Thanks Ben,
Yeah, If I do! the devil is in the detail.
Just working on a reliable way to detect the fault locally...then I can apply the reset.
by Jay Dee
Wed Apr 22, 2020 3:41 pm
Forum: Flowcode V8
Topic: Software reset a PIC - ECIO40P
Replies: 2
Views: 291

Software reset a PIC - ECIO40P

Hi, I have a program using CAN and mostly runs OK but on occation the CAN transmitter starts to output Garbage. The main program seem to keep running fine. A) Can I software request a reset of the PIC ? Is there a propper way of doing this? Or would I need to assign an output to toggle the MCLR pin?...
by Jay Dee
Thu Apr 16, 2020 10:03 am
Forum: Flowcode V8
Topic: Learning Ghost
Replies: 6
Views: 938

Re: Learning Ghost

Hi, Trying to connect GHOST using flowkit2 with ECIO40P on a EB061 baseboard. Both programming USB connected and Flowkit pins D8,D9 are connected to the ICSP pins on the baseboard. D9 > B6 Clock D8 > B7 Data I enable the ICD, compile and send to chip. Press 'play' and I get the "The chip does n...
by Jay Dee
Thu Apr 16, 2020 9:37 am
Forum: Flowcode V8
Topic: Servo Assistance - Please
Replies: 4
Views: 346

Re: Servo Assistance - Please

Agreed, both the SAVOX SW 0231MG and DS 3218MG servos both need the full 500 to 2500 pulse period to achieve the stated 180 degree range. FYI, I've seen some odd behavior with the chinese DS3218 but the Savox (twice the price) has behaved flawlessly so far. I have noticed that for some servos if you...
by Jay Dee
Fri Apr 03, 2020 10:55 am
Forum: Feature Requests
Topic: Bring back the LIN components
Replies: 3
Views: 1294

Re: Bring back the LIN components

Had a poke about for LIN Master ICs during tea break, NXP SJA1124 Quad LIN Master Transceiver looks interesting, same way as with CAN, writing a whole protocol engine is a big job, maybe an external LIN Controller IC is the way forward. https://www.mouser.co.uk/Search/Refine?Ntk=P_MarCom&Ntt=155...
by Jay Dee
Fri Apr 03, 2020 10:23 am
Forum: Feature Requests
Topic: Bring back the LIN components
Replies: 3
Views: 1294

Re: Bring back the LIN components

Sorry to bump this old topic. Was there any progress with LIN and PICs ? I appreciate its no small task to get a fully working FC protocol. I've just been given a door lock and expect some HVAC vents for a low volume automotive project. Not critical but seemed a sensbile time to look at LIN options....
by Jay Dee
Tue Mar 31, 2020 7:36 pm
Forum: Bug Reports
Topic: 18F2580 I2C Hardware Channel1 not responding
Replies: 2
Views: 328

Re: 18F2580 I2C Hardware Channel1 not responding

Ahh...shoot. Yeah sorry Ben. Just tested on hardware and all works.
False Alert! :oops:
J.
by Jay Dee
Sun Mar 29, 2020 10:56 am
Forum: Flowcode V8
Topic: i2C UART SPI Hardware Software Bitbang & Initialising
Replies: 1
Views: 158

i2C UART SPI Hardware Software Bitbang & Initialising

Hi, I get on well with the ECIO28P & ECIO40P but Hardware i2C, UART and SPI channels share some pins. I know I could use the software (bit bang) version for some applications but where possible I've traditionally used the hardware output. A) am I just making my life hard by trying to always use ...
by Jay Dee
Fri Mar 27, 2020 9:15 pm
Forum: Bug Reports
Topic: 18F2580 I2C Hardware Channel1 not responding
Replies: 2
Views: 328

18F2580 I2C Hardware Channel1 not responding

Hi, Possible probem..checked it a few times and different ICs. FC v8.2.2.15 Working with PIC 18F2580, small test program using i2C (attached), program works fine using software mode, no output on hardware pins in 'channel 1' mode. Both modes using pins C4 SDA and C3 SCL. All other settings kept the ...
by Jay Dee
Fri Mar 27, 2020 8:46 pm
Forum: Flowcode V8
Topic: Program structure, Task Scheduler or Sequence
Replies: 1
Views: 136

Program structure, Task Scheduler or Sequence

Hi all, I'm still playing with my current project and getting to grips with some of the GHOST features....however I need to give my base program a better structure. Does anyone have a good simple example of a program structure where, I can schedule tasks? I'm thinking of a some tasks that run for ev...
by Jay Dee
Tue Mar 24, 2020 11:21 am
Forum: Flowcode V8
Topic: Learning Ghost
Replies: 6
Views: 938

Re: Learning Ghost

Hi Guys, I have recieved the Flowkit V2, I've had a read of most bits I can find on the datasheets and forum...but a couple of questioins A) for ICD ICT..which pins are used on the Flowkit to connect the the target's ICD Clock and Data. (typically for a basic PIC B6 & B7) B) To confirm, do I onl...