Search found 288 matches

by Lord Grezington
Mon Feb 17, 2020 12:22 pm
Forum: General Programming
Topic: CLKOUT on the 18F66K80
Replies: 3
Views: 2938

Re: CLKOUT on the 18F66K80

Hi Martin Thanks for this. The project has some what progressed since writing the last post, I have now moved on to using the 33EP64MC206 for the addtional speed an IO. For this part the datasheet says it has a REFCLK0 that is remapable and easily set within the RECOCON register. I have never re-map...
by Lord Grezington
Sat Feb 15, 2020 9:09 pm
Forum: General Programming
Topic: CLKOUT on the 18F66K80
Replies: 3
Views: 2938

CLKOUT on the 18F66K80

Hi I want to run the 18F66K80 at full speed (64Mhz), preferably using an external Xtal (but could use the INTOSC if need be), but I also want a CLKOUT at preferably 5Mhz (but could possibly push all the way up to 16Mhz) to run a few external components in sync. Is this possible? I'm a little confuse...
by Lord Grezington
Wed Jan 29, 2020 8:05 pm
Forum: Flowcode V8
Topic: Interrupt seems to be affecting the Primary Clock
Replies: 3
Views: 1900

Re: Interrupt seems to be affecting the Primary Clock

Hi Ben The program in the first post was just a standard flasher program, and the timing is perfect. The C-code is needed to set the frequency up to 120Mhz. I have also disabled the interupt, and then repeated the flasher with no delays and observed a frequency (of the flash) of only just 30Khz. Tha...
by Lord Grezington
Wed Jan 29, 2020 6:31 pm
Forum: Flowcode V8
Topic: Interrupt seems to be affecting the Primary Clock
Replies: 3
Views: 1900

Re: Interrupt seems to be affecting the Primary Clock

Hi guys Any help on this? I have just tried setting up an external clock input into INT1, however it seems I cant get passed around 10Khz interrupt. My target at this point is to perform a few calculations every 60Khz fairly accuratly... Thanks EDIT: Just another note - I did a program on hardware t...
by Lord Grezington
Tue Jan 28, 2020 6:12 pm
Forum: Flowcode V8
Topic: Interrupt seems to be affecting the Primary Clock
Replies: 3
Views: 1900

Interrupt seems to be affecting the Primary Clock

Hello All I have a simple program, I am trying to use a timer interrupt (Tried all 1, 2, 3 & 5) at a high frequency as a fairly accurate timer. But whenever I change the frequency it seems to affect the primary clock on the crystal (even though the clock source for hte interrupt is set to the Intern...
by Lord Grezington
Thu Oct 17, 2019 3:06 pm
Forum: Bug Reports
Topic: Program no longer compiles (last compiled back in January)
Replies: 1
Views: 1701

Re: Program no longer compiles (last compiled back in January)

Sorry, My appologies for this...

It seems the original program was done in V6, not V8... Everything works fine when I recompile in V6...

Thanks
by Lord Grezington
Thu Oct 17, 2019 11:59 am
Forum: Bug Reports
Topic: Program no longer compiles (last compiled back in January)
Replies: 1
Views: 1701

Program no longer compiles (last compiled back in January)

Hi Everyone I have a program which needs to be modified which I originanly did back in January. However, it no longer compiles. I am using PIC16F1508 and changed the internal oscillator speed in the osccon register to 0x7A using a C-code component in the original version. Now compiling it gave me er...
by Lord Grezington
Tue Oct 08, 2019 3:47 pm
Forum: General Programming
Topic: Modbus slave RS485
Replies: 18
Views: 8777

Re: Modbus slave RS485

Hi Ben, sorry its taken so long to respond: This will largely depend on the micro your using and the speed the micro is running at. Typically the faster the micro is the harder it is to generate the slower baud rates. However, let me know your current setup and I'll investigate the code is being gen...
by Lord Grezington
Fri Sep 20, 2019 3:32 pm
Forum: General Programming
Topic: IOC dilema
Replies: 8
Views: 4899

Re: IOC dilema

Thanks Ben

I have stripped the program back to bare basics, I now no longer even have the input pulse but still getting a strange output. FC program is attached and the output is below.
IOC ADC Issue.png
(55.67 KiB) Downloaded 1873 times

Thanks
by Lord Grezington
Wed Sep 18, 2019 9:39 am
Forum: General Programming
Topic: Modbus slave RS485
Replies: 18
Views: 8777

Modbus slave RS485

Hello Everyone I have run a Modbus RS485 slave program a while back, and in general seems to work OK but I have found some problems (perhaps bugs) that I need resolved if possible. 1 - When I change the baud rate to below 9600 the communication breaks down. Works fine with all other baud rates I hav...
by Lord Grezington
Tue Sep 17, 2019 2:44 pm
Forum: General Programming
Topic: IOC dilema
Replies: 8
Views: 4899

Re: IOC dilema

Sorry to push

I have shown the ADC is the affecting the IOC, so how to I stop it from doing it?

Thanks
by Lord Grezington
Mon Sep 16, 2019 11:15 am
Forum: General Programming
Topic: IOC dilema
Replies: 8
Views: 4899

Re: IOC dilema

Thanks Ben & Stefan Yes, its looks to be the analogue input! How/Why is the analogue input affecting the IOC though when the analogue input is is the main program? Will the anlalogue input (RC4/AN20) still affect the IOC on RC2 just because its on the same port? I am guessing I need to change RC2 to...
by Lord Grezington
Fri Sep 13, 2019 2:54 pm
Forum: General Programming
Topic: IOC dilema
Replies: 8
Views: 4899

IOC dilema

Hello All There is a part of a program (in FC8) on a 16F18344 where all I am doing is using an IOC pin (C2) which just has few pulses coming in. All I am doing is duplication this pulse onto another pin A1. However, for some reason I am getting very short drops in the positive pulses, anyone have an...
by Lord Grezington
Fri Sep 13, 2019 2:44 pm
Forum: General Programming
Topic: Parity Check for SPI
Replies: 7
Views: 4738

Re: Parity Check for SPI

Thanks Martin
Worked great, implemented well in the SPI
by Lord Grezington
Mon Sep 02, 2019 12:59 pm
Forum: Flowcode V5 Issues
Topic: Flowcode V5 has stopped working
Replies: 6
Views: 6998

Re: Flowcode V5 has stopped working

Most probabbly the longest time I have ever waited for a windows update!!! but yeah, I did the .Net and then the additional optional updates and V5 now starts without a problem.
by Lord Grezington
Tue Aug 27, 2019 12:15 pm
Forum: Flowcode V5 Issues
Topic: Flowcode V5 has stopped working
Replies: 6
Views: 6998

Re: Flowcode V5 has stopped working

Hi Everyone

Same problem... I can open a new project without any issue, but when I try and open a project I did years ago it jsut closes down on me. Same as martin - been adapting V5 programs on this PC for at lease a few months with no issues.

Graham
by Lord Grezington
Fri Aug 16, 2019 11:30 am
Forum: General Programming
Topic: Parity Check for SPI
Replies: 7
Views: 4738

Re: Parity Check for SPI

Hello Martin

I apologise for not responding sooner - I was side tracked onto a different project.

I will take a look at your example later today

Thanks
by Lord Grezington
Wed Aug 14, 2019 3:05 pm
Forum: General Programming
Topic: Parity Check for SPI
Replies: 7
Views: 4738

Re: Parity Check for SPI

Hi Martin

Thanks for the responce.

I have gone through all the options, I think the best option would be the shift and add method. I am still confused however how this coule be implemented in flowcode - is it possible you could do a very quick example?

Thanks
by Lord Grezington
Wed Aug 14, 2019 1:54 pm
Forum: General Programming
Topic: Parity Check for SPI
Replies: 7
Views: 4738

Parity Check for SPI

Hello All If it have an int, say 113, this gives a binary value of 0b01110001. If we count the 1's we get an even number - but how do we impliment this in code? I currently have an address of 5bits (say 10110), a data length of 10bits (0b0001110001) and the last bit needs to be the parity (needs to ...
by Lord Grezington
Mon Jul 29, 2019 3:17 pm
Forum: General Programming
Topic: LCD display showing Japanese Characters
Replies: 10
Views: 6475

Re: LCD display showing Japanese Characters

Hi Ben

They were £10 each off Ebay... May be problematic, but was the only place I could find them at the time with the 16pins. I have now found some on RS components, I have ordered them. I will let you know if its resolved.

Graham
by Lord Grezington
Fri Jul 26, 2019 11:21 am
Forum: General Programming
Topic: LCD display showing Japanese Characters
Replies: 10
Views: 6475

Re: LCD display showing Japanese Characters

Hi Ben

Just to make sure...

Do you want me to change the F5 or the V8 RawSend .c file?

Then do I need to use the RawSend function on the LCD macro?

Thanks
by Lord Grezington
Fri Jul 26, 2019 9:45 am
Forum: General Programming
Topic: LCD display showing Japanese Characters
Replies: 10
Views: 6475

Re: LCD display showing Japanese Characters

Hi Ben

Sorry to push, but I need to try and get this resolved. Do you have any other idea's I can try? I am under a little bit of pressure to get this resolved.

Thanks
by Lord Grezington
Wed Jul 24, 2019 4:17 pm
Forum: General Programming
Topic: LCD display showing Japanese Characters
Replies: 10
Views: 6475

Re: LCD display showing Japanese Characters

Hi Ben Unfortunatly the Fix for V5 did not work, I still had the Japanese charactors. With V8, I did a hello world and then ran it on hardware on both display types. I have attached the program and below are the pictures. WhatsApp Image 2019-07-24 at 16.04.37.jpeg WhatsApp Image 2019-07-24 at 16.06....
by Lord Grezington
Wed Jul 24, 2019 3:30 pm
Forum: Flowcode V8
Topic: Maybe Issues with SPI update?
Replies: 3
Views: 2104

Re: Maybe Issues with SPI update?

Hi Ben

Switching to Channel 2 and re-mapping the pins seems to have worked. Not sure why channel 1 is not working.

Thanks for your help
by Lord Grezington
Wed Jul 24, 2019 1:40 pm
Forum: Flowcode V8
Topic: Maybe Issues with SPI update?
Replies: 3
Views: 2104

Re: Maybe Issues with SPI update?

Hi Ben

Thanks for the reply

I will try using channel 2 and remap the pins.

I dont think the SPI component starts the reset, I think it just prevents some of the other features working (like the flash on the pin)

Thanks