Search found 52 matches
- Wed Feb 03, 2021 7:28 pm
- Forum: Flowcode V8
- Topic: PIC18F46K22 UART Interrupt problem
- Replies: 5
- Views: 3747
Re: PIC18F46K22 UART Interrupt problem
Hi Martin Flowcode file attached. Background info. One PCB (remote) with 4 buttons. RS232 to this PCB with 4 LEDs. Message format is "MBx<carriage return><line feed> Where MB stands for 'Message' 'Buttons' and x is the button data from 0 to 15 to show which buttons have been pressed. What I'm t...
- Wed Feb 03, 2021 6:34 pm
- Forum: Flowcode V8
- Topic: PIC18F46K22 UART Interrupt problem
- Replies: 5
- Views: 3747
Re: PIC18F46K22 UART Interrupt problem
Hi kersing Although the program compiles Ok now, I cannot get the receive interrupt to work. The interrupt routine just sets a Flag "RxFlag = 1". However, when running the program in a loop and sending RS232 data to the PIC (from a terminal program on the PC via a RS232 to USB dongle) RxFl...
- Tue Feb 02, 2021 8:30 pm
- Forum: Flowcode V8
- Topic: PIC18F46K22 UART Interrupt problem
- Replies: 5
- Views: 3747
Re: PIC18F46K22 UART Interrupt problem
Hi kersing
I have removed the display functions in the interrupt routine and now it compliles without errors.
Looks like you've solved it - thank you
I'll double check that everything is working OK tomorrow, but this is a big step forwards.
Cheers
Clive
I have removed the display functions in the interrupt routine and now it compliles without errors.
Looks like you've solved it - thank you
I'll double check that everything is working OK tomorrow, but this is a big step forwards.
Cheers
Clive
- Tue Feb 02, 2021 7:44 pm
- Forum: Flowcode V8
- Topic: PIC18F46K22 UART Interrupt problem
- Replies: 5
- Views: 3747
PIC18F46K22 UART Interrupt problem
Hi I'm using a PIC18F46K22 to send and receive RS232 with Flowcode 8. I have a compiler problem on receive when trying to use the circular buffer. After failing to find the problem on my own code, I have downloaded UART_test.fcfx from this forum (published by chipfryer on the 9th April 2020) and get...
- Fri Dec 18, 2020 12:27 am
- Forum: Flowcode V8
- Topic: Sitronix ST7586
- Replies: 6
- Views: 3790
Re: Sitronix ST7586
I guess I'm on my own on this one? No help seems to be forthcoming.
- Mon Dec 07, 2020 4:47 pm
- Forum: Flowcode V8
- Topic: Sitronix ST7586
- Replies: 6
- Views: 3790
Re: Sitronix ST7586
Hi Ben
The A0 signal should latch data on the 8th rising edge of SCL (see attached ST7586 datasheet excerpt).
Screenshot of oscilloscope trace shows in practice it only moves every 3 bytes.
Hope this is helpful info.
Regards
Clive
The A0 signal should latch data on the 8th rising edge of SCL (see attached ST7586 datasheet excerpt).
Screenshot of oscilloscope trace shows in practice it only moves every 3 bytes.
Hope this is helpful info.
Regards
Clive
- Mon Dec 07, 2020 4:43 pm
- Forum: Flowcode V8
- Topic: Sitronix ST7586
- Replies: 6
- Views: 3790
Re: Sitronix ST7586
Hi Ben I have proven an SPI Interface from a PIC18F46K22 (3V3) to an ILI9341 display - see attached photo. However, when I recompile it using the Flowcode ST7567, as you suggested, the GLCD just stays blank. I have checked all the SPI signals with an oscilloscope and all the levels are good. Any hel...
- Mon Nov 30, 2020 6:14 pm
- Forum: Flowcode V8
- Topic: Sitronix ST7586
- Replies: 6
- Views: 3790
Re: Sitronix ST7586
Hi Ben The ST7567 seems to be limited to a resolution of 65x132 =8580 bits. The display I have is the Midas MDCOG240064E6W-FPTLW which uses the ST7585 driver and has a resolution of 240x64 = 15,360 bits. It's bigger brother, the MDCOG240128B6W-FPTLW has a resolution of 240x128! So, I don't think the...
- Thu Nov 26, 2020 7:32 pm
- Forum: Flowcode V8
- Topic: Sitronix ST7586
- Replies: 6
- Views: 3790
Sitronix ST7586
Hi
I have a graphic LCD which uses the Sitronix ST7585 driver. Is there anyway I can use Flowcode 8 to control this display?
I am not worried if I have to use a serial or parallel interface.
Regards
Clive
I have a graphic LCD which uses the Sitronix ST7585 driver. Is there anyway I can use Flowcode 8 to control this display?
I am not worried if I have to use a serial or parallel interface.
Regards
Clive
- Thu Nov 19, 2020 7:13 pm
- Forum: Flowcode V8
- Topic: Cannot configure Internal Oscillator
- Replies: 7
- Views: 4317
Re: Cannot configure Internal Oscillator
Hi Martin
Sory I've taken so long to get back to you!
That works - thanks for your help. Much appreciated.
Clive
Sory I've taken so long to get back to you!
That works - thanks for your help. Much appreciated.
Clive
- Fri Oct 30, 2020 4:29 pm
- Forum: Flowcode V8
- Topic: Cannot configure Internal Oscillator
- Replies: 7
- Views: 4317
Re: Cannot configure Internal Oscillator
Thanks Martin
I'll try what you suggested and let you know the results!
Cheers
Clive
I'll try what you suggested and let you know the results!
Cheers
Clive
- Wed Oct 28, 2020 8:31 pm
- Forum: Flowcode V8
- Topic: Cannot configure Internal Oscillator
- Replies: 7
- Views: 4317
Re: Cannot configure Internal Oscillator
Hi chipfryer27 and QMESAR Thanks for your help and advice. I've spent some time 'playing' this afternoon and these are the results - In all Tests below, The Oscillator Selection Bits (In the Configure tab) is set to "Internal Oscillator block, CLKOUT function on RA6, port function on RA7 TEST N...
- Wed Oct 28, 2020 2:34 pm
- Forum: Flowcode V8
- Topic: Cannot configure Internal Oscillator
- Replies: 7
- Views: 4317
Cannot configure Internal Oscillator
Hi I've had trouble getting a graphics LCD ILI9341 to work on SPI. I'm using a PIC18F45K22 with the internal RC Oscillator. When I run the '1 second test' it is 8 x slow. i.e. 8 seconds up, 8 seconds down instead of 1 second up, 1 second down. I have attached some screen shots. What am I doing wrong...
- Tue Oct 13, 2020 7:43 pm
- Forum: Flowcode V8
- Topic: Converting a byte to ASCII
- Replies: 1
- Views: 1451
Converting a byte to ASCII
Hi I'm reading the internal part number number of a device over I2C. The part number is in the form HDL12345678 and it is transmitted character by character as ASCII ie H = 72, D = 68, L =76 etc I want to store this in a string variable 11 characters long. i.e. StringVar = StringVar + ASCII(byte) So...
- Tue Sep 01, 2020 2:00 pm
- Forum: Flowcode V8
- Topic: Cannot add variable to the Simulation Debugger window
- Replies: 3
- Views: 1815
Re: Cannot add variable to the Simulation Debugger window
Hi Steve
A Windows reboot and then re starting Flowcode has fixed it.
I should have thought of that myself.
Thanks for your help
Clive
A Windows reboot and then re starting Flowcode has fixed it.
I should have thought of that myself.
Thanks for your help
Clive
- Mon Aug 31, 2020 6:07 pm
- Forum: Flowcode V8
- Topic: Cannot add variable to the Simulation Debugger window
- Replies: 3
- Views: 1815
Cannot add variable to the Simulation Debugger window
Hi
I've just downloaded Flowcode 8 on a 30 day trial.
Problem - I cannot see how to add variables to the simulation debugger window.
I do not have the 'Expression' and 'Value' tabs mentioned in the Flowcode help.
Please see attached screenshot
Any help gratefully received!
Clive
I've just downloaded Flowcode 8 on a 30 day trial.
Problem - I cannot see how to add variables to the simulation debugger window.
I do not have the 'Expression' and 'Value' tabs mentioned in the Flowcode help.
Please see attached screenshot
Any help gratefully received!
Clive
- Fri Aug 28, 2020 6:39 pm
- Forum: Flowcode V6
- Topic: I2C eating memory
- Replies: 2
- Views: 6812
I2C eating memory
Hi I'm using Flowcode 6 on a PIC16F1827 to read the temperture on an LM75 via I2C. Just writing a simple routine using the I2C Master has 'eaten 4355 words of memory, but the PIC16F1827 only has 4096. So it doesn't have enough memory to complile to hex. Has anyone else seen this? Am I missing someth...
- Thu Jan 29, 2015 7:23 pm
- Forum: Flowcode V5
- Topic: Problem programming PIC18F8490 wirh Pickit2
- Replies: 5
- Views: 5632
Re: Problem programming PIC18F8490 wirh Pickit2
Hi Ben I'm certain there is a bug in the way Flowcode handles the PIC18F8490. I had tried two separate identical PCBs with the 8490. No joy. After a couple of days trying to get Port F to work as an input I unsoldered the the 8490 and replaced it with a PIC18F8722 on both PCBs Wham. Perfect - with n...
- Tue Jan 27, 2015 11:25 am
- Forum: Flowcode V5
- Topic: Problem programming PIC18F8490 wirh Pickit2
- Replies: 5
- Views: 5632
Re: Problem programming PIC18F8490 wirh Pickit2
Whoops - a bit premature there when i said I'd cracked it! Compiler error has gone away but Port F still not functioning correctly. Set a loop to read port F and display result on LCD. 'walking' along pin F pins with a probe connected to +5V pins 0,1,2 and 7 read OK (1,2,4,128 respectively) Pins 3,4...
- Mon Jan 26, 2015 7:25 pm
- Forum: Flowcode V5
- Topic: Problem programming PIC18F8490 wirh Pickit2
- Replies: 5
- Views: 5632
Re: Problem programming PIC18F8490 wirh Pickit2
OK, cracked it.
Address 300004 relates to 'external 8bit or 16 bit bus'
This is configurable in Flowcode/Build/Project options/Configure menu but there is no mention of this on the PIC18F8490 datasheet!
Setting bit 38 to 'external 16 bit bus' cured the problem.
Address 300004 relates to 'external 8bit or 16 bit bus'
This is configurable in Flowcode/Build/Project options/Configure menu but there is no mention of this on the PIC18F8490 datasheet!
Setting bit 38 to 'external 16 bit bus' cured the problem.
- Mon Jan 26, 2015 5:51 pm
- Forum: Flowcode V5
- Topic: Problem programming PIC18F8490 wirh Pickit2
- Replies: 5
- Views: 5632
Problem programming PIC18F8490 wirh Pickit2
Hi Flowcode V5.5.2.1, PICKIT 2 V2.61, PIC18F8490 Compiles OK but I get the following error message when trying to program the chip "PICkit 2 Program Report 26-Jan-2015, 16:41:24 Device Type: PIC18F8490 Configuration Memory Errors Address Good Bad 300004 008103 0081C3 Return code = 34 Flowcode w...
- Tue Oct 15, 2013 9:06 am
- Forum: Flowcode V6
- Topic: System Panel on V6
- Replies: 3
- Views: 4012
Re: System Panel on V6
Thanks Martin and Jonny - I will give V6 another go.
Clive
Clive
- Mon Oct 14, 2013 6:09 pm
- Forum: Flowcode V6
- Topic: System Panel on V6
- Replies: 3
- Views: 4012
System Panel on V6
Hi I've just started trying to use V6 by loading an existing V5 program which needed a quick and simple mod. The V5 Panel components have been imported into the V6 System Panel but with no text. I know I can edit/amend this but they are tiny and I cannot find how to zoom into them. Only option seems...
- Thu Jun 28, 2012 12:16 pm
- Forum: Flowcode V5
- Topic: PIC18F4520 and RC5
- Replies: 9
- Views: 6886
Re: PIC18F4520 and RC5
Hi Ben
Yes, that's fixed it! Great job - thank you.
Clive
Yes, that's fixed it! Great job - thank you.
Clive
- Tue Jun 26, 2012 6:47 pm
- Forum: Flowcode V5
- Topic: PIC18F4520 and RC5
- Replies: 9
- Views: 6886
PIC18F4520 and RC5
Hi After some problems trying to implement an RC5 infra red remote controller on a PIC16F887 which were attributed to possible stack overflow in the PIC I thought I'd try a PIC18F4520 which is pin compatible but has 31 levels of stack as opposed to 8 in PIC16F887. However even the most simple flowch...